Answer Posted / dimpy19
I know we can do it by reading all records into an array....
Then read records in reverse order by using subscript or index
but can any body give me the exact code.
--read the record in index and access it backward using index or subscript
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the purpose of dd dummy statement?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
Describe the various parameters utilized in the creation of a gdg?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
Is condition checking possible in jcl?
how can the same proc be re-used and called by many jobs?
How jcl is used for testing batch programs?
what is use of space parameter in dd statement?
Which dd parameters are required?
Mention the types of job control statements?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
how do you access an uncataloged dataset in a jcl?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*