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 |
what is the use of keep and pass in disp
how do you move only numeric data from A to B 01 A pic x(10) value 'a1b2c34d5e'. 01 B pic x(5).
I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.
What is an in-line perform ?
What is the use of EVALUATE statement?
if we have a 10 steps how to override the 4th step in jcl?
can we use variable picture clause as xx.99 in cobol.
What are the various section in data division and briefly explain them.
How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the field which caused that how do u know the record which caused that if it is in production env? (dumb) Ok let us assume that we got to know that 100th record caused that and I wanted to skip only 100th record from the file and process from 101th. How to do that in JCL using SORT? (tried with STOPAFT but ended up dumb when he said smthing else is ther)
what is internal sort and external sort ? which is preferable ?
we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?
what is the difference between Plan & package?