What is the difference between subscript and index?
Subscripts are programmer-defined variables, of numeric type--used to reference an array.
Example:
77 WS-SUB PIC 9(04) COMP.
01 WS-TABLE.
05 WS-TABLE-ENTRY OCCURS 5 Times PIC X(80).
In PROCEDURE DIVISION:
MOVE WS-TABLE-ENTRY(WS-SUB) TO...
Indexes are defined by the programmer, but the PICTURE clause is omitted.
Example:
01 WS-TABLE.
05 WS-TABLE-ENTRY OCCURS 5 TIMES INDEXED BY WS-IDX.
10 FILLER PIC X(80).
In PROCEDURE DIVISION:
MOVE WS-TABLE-ENTRY(WS-IDX) TO...
Is This Answer Correct ? | 0 Yes | 0 No |
Program A calls program B. Will the working storage variables declared in program B be initialized every time it is called by program A or will the values be retained until the end of program A?
There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?
wht do u mean by (*,intrdr) wht is * used for ?
If there are two files one with 100 records and other with 101 records. we have to find out the one record that is the odd man out . What are the steps to do it
is this below syntax correct? CALL 'subprg' using A,B Please help
wht is structured cobol pgm and non structred cobol pgm ?
what is scope terminator
what is the diff b/w select stsmt and cursor ?
if a dataset is already created with fixed length but after that i want to change fixed length to variable length then how is it possible
What is tne need to use sub programs in Cobol?
01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ?
what is the difference between perform varying and perform until