what is qualification on occurs clause?
Answers were Sorted based on User's Feedback
Answer / kanika
Occurs clause is used in case of table ,when one number is
used many times as in case of array.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / reshma
If a data-name with the occurs clause requires any
qualification by its higher level, the subscripts to be
written after the last qualified name. For ex,
01 INCOME-TAX-RATE
02 TAX-RATE PIC 99 OCCURS 10 TIMES.
if TAX-RATE should be qualified, it must appear as TAX-RATE
OF INCOME-TAX-RATE(I) and not as TAX-RATE(I) OF INCOME-TAX-
RATE
| Is This Answer Correct ? | 4 Yes | 1 No |
What compiler option would you use for dynamic linking?
How to delete a front spaces in a data-name/variable in cobol Example:- 01 data-name-1 PIC x(20) value " cobol language". 01 data-name-2 PIC x(20). MOVE data-name-1 to data-name-2. would like the value of data-name-2 is "cobol language".
i need a small 3d program using inline and outline.
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
If i have a variable A pic 9(2) value 10 Compute A = a - 100 what will be the value of A and will there be any error becoz of the Negative value
Which is not true about evaluate statement
01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?
how will u find out 3rd week's 2nd day using occurs ?
01 A pic 9(100) find record length of it
what is the difference between Plan & package?
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
How to pass return codes from cobol to jcl?