View previous topic :: View next topic
|
Author |
Message |
thangavels
New User
Joined: 03 May 2009 Posts: 6 Location: Chennai
|
|
|
|
Hi,
Is there any way in ICETOOL to copy from 'n' record to 'm' record. (ie.. i need only from 10th record to 20 th record from the input file)
Thanks,
Vels |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
thangavels
New User
Joined: 03 May 2009 Posts: 6 Location: Chennai
|
|
|
|
Thanks lot... |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Here are two ways to do what you asked for:
SUBSET
Code: |
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=... input file
//OUT DD DSN=... output file
//TOOLIN DD *
SUBSET FROM(IN) TO(OUT) KEEP INPUT RRN(10,20)
|
SKIPREC and STOPAFT
Code: |
//S2 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY,SKIPREC=9,STOPAFT=11
/*
|
|
|
Back to top |
|
|
thangavels
New User
Joined: 03 May 2009 Posts: 6 Location: Chennai
|
|
|
|
Thanks Frank... |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Thanks Frank... |
|
Back to top |
|
|
|