can we print comp 3 stmts how ?

Answers were Sorted based on User's Feedback



can we print comp 3 stmts how ?..

Answer / kaarthik


1. Redefine the comp-3 with a numeric field and then move
the numeric value to an Alphanumeric value and then Display
it.

Regards,
Kaarthik

Is This Answer Correct ?    7 Yes 1 No

can we print comp 3 stmts how ?..

Answer / amarnadh reddy

Another way is,

Use File-Aid, we can possible to see comp 3 stmts.

Ex: open File-Aid, 1st option means browse option. give
data set name and copy book layout and open F mode.

Is This Answer Correct ?    5 Yes 3 No

can we print comp 3 stmts how ?..

Answer / saravana

Move it to other x() or 9() variable and display that variable

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?

2 Answers   TCS,


DATAONLY, MAPONLY functionality?

1 Answers   IBM,


wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?

2 Answers   EDS,


77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......

8 Answers  


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

0 Answers  






How many bytes S(8) comp field occupy and its maximum value?

0 Answers  


I have put two write operations in a single para for two different conditions.Will that lead to an abend or run successfully and write two records?

1 Answers   CTS,


01 x pic s9(8) comp. How will the following value be internally allocated '18787'

4 Answers   Steria,


SIGN TRAILING SEPARATE field occupy ?

3 Answers  


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

0 Answers  


which is better either static call or dynamic call? and why?

5 Answers   HCL,


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

6 Answers   ABC, HCL, TCS,


Categories