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

Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be

7 Answers   TCS,


HOW TO MOVE REDEFINES CLAUSE FROM INPUT TO OUTPUT ?

1 Answers  


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

2 Answers   IBM, T systems,


can we use full outer join with cursors declared in cobol program?

2 Answers  


What is the difference between subscript and index?

1 Answers  






How arrays can be defined in COBOL?

0 Answers  


how to move the records from file to array table. give with code example

0 Answers   ADP, Syntel,


What is the difference between Global and External Variables?

0 Answers  


Difference between ps, esds

3 Answers  


what is the size of W-REC in the following 01 W-REC 05 A PIC 9(4)V99 05 B READLINES A 10 C PIC XX 10 D PIC S9(4) 05 E OCCURS 7 PIC ZZ.ZZ 05 F OCCURS 5 10 G PIC ZZ.ZZZ99 10 H OCCURS 3 15 J PIC 9(3) 15 K PIC V99

2 Answers   TCS,


u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?

2 Answers   IBM,


Why occurs can not be used in 01 level ?

2 Answers   TCS,


Categories