01rec1.
05 a pic 999v99 value 123.12
05 b pic 99v9 value 45.9
02 rec2.
05 x pic 999v99
05 y pic 99v99
05 z pic x(3) value 'abc'
if rec1 is moved to rec2 then what is the value of rec2?
Answers were Sorted based on User's Feedback
Answer / praveen
REC2 will just contain 12312459 , the code was tested
Is This Answer Correct ? | 2 Yes | 1 No |
what is internal sort and external sort ? which is preferable ?
what happens when a copybook variables are declared using include statement ?
Why occurs can not be used in 01 level ?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?
What should be the sorting order for SEARCH ALL?
If my program receives input feed from program in other system.. if the receiving field size is less than the sending field.. what abend will be happening.
how to submit a jcl by cobol program. clear me with an example.
have in 100 records in a flat file i want to move records like 1,3,5,7,9,11,.. to Output file1 and 2,4,6,8,10,12,14 .. records moved to Output file2..Pls Provide real time answer..
How to open and see copy book ?
What are the differences between COBOL and COBOL II?
how will you define vsam file in select clause?