If you were passing a table via linkage, which is
preferable - a subscript or an index?
Answers were Sorted based on User's Feedback
Answer / rama krishna
Since, index is not part of Working-Storage section, you
can not pass the value of index via linkage section. Hence,
you have to always use subscripts...
Is This Answer Correct ? | 18 Yes | 1 No |
Will the variable POS in the following code have a value of 2 or not? 01 POS PIC S9(4) COMP VALUE 2. 01 FIRST-NAME PIC X(10) VALUE 'ABC'. 01 LAST-NAME PIC X(10) VALUE 'XYZ'. 01 NAME PIC X(20) VALUE SPACES. STRING FIRST-NAME DELIMITED BY SPACES ' ' DELIMITED BY SIZE LAST-NAME DELIMITED BY SPACES INTO NAME WITH POINTER POS
. How do we cast a variable in COBOL
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
Is this allowed? 01 WS-TABLE. 03 FILLER-X PIC X(5) VALUE 'AAAAA'. 03 WS-EX REDEFINES FILLER-X OCCURS 5 TIMES PIC X(1). can redefines clause be used with occurs clause?
How to read a record from bottom of a file which is indexed by 'A'.
what are the limitations of Inline Perform?
How do you set a return code to the JCL from a COBOL program?
What the difference is between continue and next sentence?
How may divisions are there in JCL-COBOL?
What is the difference between comp and comp-3?
how many maximum no of variables can be declared in linkage section ?
can we declare occurs in 01 level?