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 |
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Can we move X(9) to 9(9). If yes what are the ways for doing this?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
Write the syntax of a two dimensional array?
what is call by value and call by reference ?
3 Answers Infosys, ITC Indian Tobacco Company,
IF there 5 to 6 files in a JCL and there is some space abends, how can we identify which file has space abend and what can be done to get off that abend or rectify that abend.
u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?
If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??
What is a scope terminator give example?
diffrence between z(2) and z9(2)
how to transfer the file from pc to mainframe??