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 the LINKAGE SECTION used in COBOL?

0 Answers   UGC Corporation,


perform I from 0 by 1 until I=5?How maney times it will executes

8 Answers  


wirte a pgm in using files in which we hav 10 ,20,30 40...100 records in inputfile and i want them to be send to outputfile in reverse order. PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..

5 Answers   iGate,


What is the meaning of 'Eject' verb in cobol?

2 Answers   TCS, Wipro,


How can you pass values from COBOL program to non-COBOL programs?

2 Answers  






How to resolve the soc4 and soc7 errors?

5 Answers   IBM, RBS,


What are the different types of condition in cobol and write their forms.

0 Answers  


what is call by value and call by reference ?

3 Answers   Infosys, ITC Indian Tobacco Company,


study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10

4 Answers   TCS,


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

0 Answers  


input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.

1 Answers  


)what is retrieve?

1 Answers   IBM,


Categories