HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?
Answer Posted / 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 |
Post New Answer View All Answers
How can you get the ksds file records into your cobol program?
How do you define a variable of comp-1 and comp-2?
What is the difference between comp and comp-3?
how to refer the data field?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
In COBOL, what is the different between index and subscript?
What are the different types of condition in cobol and write their forms.
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Why did you choose to work with ibm mainframe cobol programming?
What is the difference between next sentence and continue in cobol programing language?
What is the difference between Global and External Variables?
How to print 10 to 1 if the input have only 10 digit number?