InterviewSolution
Saved Bookmarks
| 1. |
A dataset contains 2500 records. How can the last 1500 records copied to an output file? |
|
Answer» In the SORT/ICETOOL program, SKIPREC = n can be used, which skips the first n records and then copies the rest to the output file. //JSTEP020 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT = * //DFSMSG DD SYSOUT = * //IN1 DD DSN = MYDATA.URMI.SKIPREC,DISP=SHR //OUT1 DD SYSOUT = *//TOOLIN DD * COPY FROM(IN1) TO(OUT1) USING(CTL1) /*//CTL1CNTL DD * SORT FIELDS = COPY SKIPREC = 1000 /* |
|