HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?
Answers were Sorted based on User's Feedback
Answer / anilgajmal86
TO PASS RECORD FROM FILE TO AN ARRAY, WE HAVE USE SOME VARIABLE WITH THE HELP OF PERFORM LOOP.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / piyush mani
to pass a value we always need a variable..
so using rread command store value in var1 and then use move command 2 send it to array..
like move var1 to var2(i)..
u have to use perform command..
giv ur feedback
Is This Answer Correct ? | 1 Yes | 0 No |
COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error
What is the difference between Call and a Link?
SIGN TRAILING SEPARATE field occupy ?
What is difference between comp & comp-4?
I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?
What the difference is between continue and next sentence?
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?
i WANT ALL ERROR codes IN CICS and DB2
what are the limitations of Inline Perform?
Differentiate COBOL and COBOL-II?
I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.
If we use GO BACK instead of STOP RUN in cobol?