is it possible to declare index in cobol program?
if it is not why its tell me pls
Answers were Sorted based on User's Feedback
Answer / amjith pillai
No need to 'Declare' Index in working Storage section.since
Index is internally represented by 'Index Register' which
is Full-Word binary.
Yes, you can directly mention Index in Occurs clause and
can increment and re-positioning the index variable
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / kiran
yes it is possible
ex PERFORM TEST AFTER VARYING WS-INDEX FROM
1 BY 1 UNTIL WS-INDEX = 10
DISPLAY "WS-INDEX is now equal to " WS-INDEX
END-PERFORM
| Is This Answer Correct ? | 0 Yes | 6 No |
What is the difference between external and global variables in COBOL?
what is scope terminator
Why we are using comp and comp-3 in real time projects?
how many divisions are there in cobol
What is the maximum size of a 01 level item in COBOL I? in COBOL II?
what is ASRA, AEY9?
i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS
how do you move only numeric data from A to B 01 A pic x(10) value 'a1b2c34d5e'. 01 B pic x(5).
The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?
consider the following two IF statements: IF X AND NOT Y MOVE A TO B IF Z=1 OR 9 MOVE A TO B select one of the following data divusion entries which gives identical results for both the above IF statements a.01 Z PIC 9 88 X VALUE 1.9 88 Y VALUE 0.2 THRU 8 b.01 Z PIC 9 88 X VALUE 0.2 THRU 8 Y VALUE 1.9 c.01 Z PIC 9 88 X VALUE 1.9 88 NOT-Y VALUE 0.2 THRU 1.9 d.none of yhe above
i WANT ALL ERROR codes IN CICS and DB2
What is ASKTIME, SUSPEND