How can i write a comp-3 variable into a sequential file
should i declara the field in the file description as comp-
3?



How can i write a comp-3 variable into a sequential file should i declara the field in the file de..

Answer / suresh kumar

Hi,

Define the field, which u r going to write, as Comp-3 in
the File description and write it to the output file.

Thanks,
Suresh

Is This Answer Correct ?    5 Yes 5 No

Post New Answer

More COBOL Interview Questions

What is "Call by content" and "call by reference"?

4 Answers   ADP, Syntel,


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

6 Answers   ABC, HCL, TCS,


01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?

3 Answers   Mind Tree,


How to print 10 to 1 if the input have only 10 digit number?

0 Answers  


How to resolve the soc4 and soc7 errors?

5 Answers   IBM, RBS,






What are differences between COBOL and java ? why we are giving more preference to COBOL ?

3 Answers   TCS,


What will happen if we generate GDG (+2) version without generating (+1) version?

2 Answers   IBM, T systems,


how to transfer the file from pc to mainframe??

4 Answers  


What are all the divisions of a COBOL program?

0 Answers  


What is SDSF?

13 Answers   IBM,


we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?

1 Answers  


Why we should use cursor ?

3 Answers  


Categories