How can i write a comp-3 variable into a sequential file
should i declara the field in the file description as comp-
3?
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 |
What do you understand by passing by reference and passing by content?
What does the IS NUMERIC clause establish ?
WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR LRECL OF FIXED ONE AS 80 AND 2ND RECORD AS 132. WHAT WE NEED TO DECLEAR LRECL FOR THOSE 2 FILES IN JCL?
i want to learn mainframes. i completed MCA ,whats the future of mainframes
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
How much salary you are expecting? If they ask in an interview, what we have to tell?
6 Answers Tech Mahindra, Wipro,
What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
if a file has 1000 recods how copy the records from 1 to 100 records using sort
how can u pass the values into db2 values from cobol ?
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