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 next sentence and continue in cobol programing language?
I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.
01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ?
record length in spool?
How many bytes do a s9 (7) comp-3 field occupy?
2)Where the Plan is located in CICS-DB2?
there is a file whose ORGANISATION is INDEXED.you want to read the records from the file in RANDOM fashion as well as sequentially.then which of the access mode would you specify? a.SEQUENTIAL b.RANDOM c.DYNAMIC D.ACCESS MODE has nothing to do with it
when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?
What is file status 39 ?
IF I mention stop run in CICS what happens?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
How can I tell if a module is being called DYNAMICALLY or STATICALLY?