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 |
u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?
How can we increase the size of an existing PDS to include more no. of modules.
A s9(4). B v9(4) value 0.21 can i move this?
COMP field occupy ?
i have two file, each file having : file1 is having 2 fields field1 field2 file2 is having 3 fields field1 field2 field3 my req is to make it one file like: field1 field2 field1 field2 field3 if anyone know please send me syntax, i tried this with DFSORT but could not succeed.
Where the Plan is located in CICS-DB2
how to transfer the file from pc to mainframe??
01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??
What are 77 levels used for?
What is the LINKAGE SECTION used in COBOL?
What is diff between vsam and db2?what is advantage of db2 over vsam?which is best suited one?
Which division and paragraphs are mandatory for a COBOL program?