The following entries appear in the WORKING-STORAGE SECTION:
01 DATE-TODAY.
05 YY PIC XX VALUE "90".
05 MM PIC XX VALUE "12".
05 DD PIC XX VALUE :31".
01 DATE-EDIT PIC XX/XX/XX.
MOVE DATE-TODAY TO DATE-EDIT.
(a) 901231
(b) 90/12/31
(c) 31/12/90
(d) 311290
Answers were Sorted based on User's Feedback
If i initialize the 01 level variable in array, will it initialize all the array elements (occurs)?
what is internal sort and external sort ? which is preferable ?
How is sign stored in a COMP field ?
Can JUSTIFIED be used for all the data types?
Can the OCCURS clause be at the 01 level?
where do u use low-value and high value in cobol
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is the difference between external and global variables in COBOL?
What is binary search?
What are differences between Static Call and Dynamic Call?
10 Answers IBM, KBC, Keane India Ltd, Verizon,
How to replace the GOTO statement in COBOL without changing the structure of program. e.g. consider following code... I.D. E.D. D.D. P.D. compute C = A + B. GOTO para 100-display. compute D = C - D. GOTO 200-display. some other logic...... ........ GOTO 300-para. ...... ...... GOTO 400-para. Now I want to replacce all GOTO statements without changing the structure and otput of program.