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 value and call by reference ?

3 Answers   Infosys, ITC Indian Tobacco Company,


I have the file which is having the extension no as records. sample file will look like below. 2310 3410 3256 4350 3781 5408 I need to replace the record which is starting with 3 to 5 (i.e) 3410 to 5410. How can we do it through cobol and cobol-db2 program? I need the possible logic?

5 Answers   RBS,


give the examples of strings in cobol

1 Answers   IBM,


What are the cobol coding sheets?

0 Answers  


What is Static,Dynamic linking ?

2 Answers  






what is the difference b/w level no.01 & level no.77?

3 Answers   HCL,


Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb

1 Answers  


In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?

1 Answers   CSC,


How do you define a table/array in COBOL?

5 Answers   Hexaware,


) How do you access the migrate the data from production region to development region

1 Answers   IBM,


If my file contains 100,000 records and job abended at 55,000th records processing then how can i restart job from that record onward by ignoring that record. I can not edit the file as file size is big and it is getting browse substituted?

5 Answers   TCS,


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

0 Answers  


Categories