hi, there
I need check some records stored in tape file, but I just want get the records from No.800 to 1800 in File-aid, how to do that, thank you.
can I get the record from NO. 800 to 1800
-
- Posts: 1
- Joined: Tue Dec 30, 2008 12:14 am
- Skillset: DB2, filaid,rexx, jcl,
- Referer: from IBM Forum
Re: can I get the record from NO. 800 to 1800
Check out the IN= parameter to position yourself, then the OUT= to limit the number of records
Something like this
$$dd01 in=800
$$dd01 list out=1000
Note the two $dd01. the first "positions" you in the file, the second one processes the LIST function from the current position.
Something like this
$$dd01 in=800
$$dd01 list out=1000
Note the two $dd01. the first "positions" you in the file, the second one processes the LIST function from the current position.
-
- Posts: 279
- Joined: Fri Jul 18, 2008 7:46 pm
- Skillset: JCL,COBOL,DB2,IMS/DB,CICS,VSAM
- Referer: I was banned by superk in main forum so I am here
Re: can I get the record from NO. 800 to 1800
Hello, This is what you should try out........
HTH.
Code: Select all
//STEP0001 EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//DD01 DD DSN=INPUT.FILE.NAME,
// DISP=SHR
//DD01O DD DSN=OUTPUT.FILE.NAME,
// DISP=SHR
//SYSIN DD *
$$DD01 SPACE IN=800
$$DD01 COPY OUT=1000
END
//*
HTH.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Copy partial record after a string in a record using SORT.
by Esmayeelhusen » Thu May 04, 2023 3:03 pm » in DFSORT/ICETOOL/ICEGENER - 16
- 4306
-
by Esmayeelhusen
View the latest post
Mon May 22, 2023 3:50 pm
-
-
- 2
- 1409
-
by PRDVCF
View the latest post
Thu Nov 17, 2022 9:58 pm
-
-
compare substring in the same record
by samb01 » Mon Jun 12, 2023 1:08 pm » in DFSORT/ICETOOL/ICEGENER - 10
- 2918
-
by sergeyken
View the latest post
Tue Jun 13, 2023 11:04 pm
-
-
-
Extract first record from multiple files
by Prasanna G » Wed Jan 13, 2021 2:14 pm » in DFSORT/ICETOOL/ICEGENER - 5
- 1774
-
by Prasanna G
View the latest post
Wed Jan 13, 2021 11:16 pm
-
-
-
Splice JCL into one record for DD statement parms
by phcribb » Thu Nov 05, 2020 9:31 pm » in CLIST & REXX - 3
- 1967
-
by phcribb
View the latest post
Fri Nov 06, 2020 8:06 pm
-