Interview Helper
Translate Page To German Tranlate Page To Spanish Translate Page To French Translate Page To Italian Translate Page To Japanese Translate Page To Korean Translate Page To Portuguese Translate Page To Chinese
  Number Times Read : 43      
  Go To Article# :  1 2 3 4 5 6  
Categories

Campus Interviews (99)
Career Helper (6)
Certification Dumps (9)
Code Samples (8)
Competitive Exams (49)
Interview Questions (349)
Walkin Interviews (20)
 
Stats
Total Articles: 566
Total Authors: 120
Total Downloads: 92869


Newest Member
Gagan Deep Sharma
 


   

Cobol Interview Questions 4

By : Nisha Sahni    29 or more times read
Submitted 2008-08-29 12:06:20 [Valid RSS feed]



31.What do you do to resolve SOC-7 error?


Basically you need to correcting the offending data.


Many times the reason for SOC7 is an un-initialized numeric item. Examine that possibility first.


Many installations provide you a dump for run time abends ( it can be generated also by calling some subroutines or OS services thru assembly language). These dumps provide the offset of the last instruction at which the abend occurred. Examine the compilation output XREF listing to get the verb and the line number of the source code at this offset. Then you can look at the source code to find the bug. To get capture the runtime dumps, you will have to define some datasets (SYSABOUT etc ) in the JCL.


If none of these are helpful, use judgement and DISPLAY to localize the source of error.


Some installtion might have batch program debugging tools. Use them.


32.How is sign stored in Packed Decimal fields and Zoned Decimal fields?


Packed Decimal fields: Sign is stored as a hex value in the last nibble (4 bits ) of the storage.


Zoned Decimal fields: As a default, sign is over punched with the numeric value stored in the last bite.


33.How is sign stored in a comp-3 field?


It is stored in the last nibble. For example if your number is +100, it stores hex 0C in the last byte, hex 1C if your number is 101, hex 2C if your number is 102, hex 1D if the number is -101, hex 2D if the number is -102 etc...


34.How is sign stored in a COMP field ?


In the most significant bit. Bit is on if -ve, off if +ve.


35.What is the difference between COMP & COMP-3 ?


COMP is a binary storage format while COMP-3 is packed decimal format.


36.What is COMP-1? COMP-2?


COMP-1 - Single precision floating point. Uses 4 bytes.


COMP-2 - Double precision floating point. Uses 8 bytes.


37.How do you define a variable of COMP-1? COMP-2?


No picture clause to be given. Example 01 WS-VAR USAGE COMP-1.


38.    How many bytes does a S9(7) COMP-3 field occupy ?


Will take 4 bytes. Sign is stored as hex value in the last nibble.


General formula is INT((n/2) + 1)), where n=7 in this example.


39.How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy ?


Will occupy 8 bytes (one extra byte for sign).


40.How many bytes will a S9(8) COMP field occupy ?


4 bytes.



Author Resource:-
Article From Interview Helper
New Members
select
Sign up
select
learn more
Affiliate Sign in
Affiliate Sign In
 
Nav Menu
Home
Login
Submit Articles
Submission Guidelines
Top Articles
Link Directory
About Us
Contact Us
Privacy Policy
RSS Feeds

Actions
Print This Article
Add To Favorites

 
Sponsors

 

 

All Rights Reserved Interview Helper