IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sort entire file then only want the first 100 in one step


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Marty Johnson

New User


Joined: 03 Oct 2008
Posts: 11
Location: Boston

PostPosted: Fri Dec 12, 2008 10:45 pm
Reply with quote

STOPAFT= only addresses the input file I believe.
Would like 1 step but will use 2 if I have too.
and Thanks ! :D
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Fri Dec 12, 2008 11:39 pm
Reply with quote

Marty Johnson,

You don't need a second step. you can use ENDREC on OUTFIL to limit your records.

Code:

//SYSIN    DD *           
  SORT FIELDS=(....)
  OUTFIL ENDREC=100
/*
Back to top
View user's profile Send private message
Marty Johnson

New User


Joined: 03 Oct 2008
Posts: 11
Location: Boston

PostPosted: Sat Dec 13, 2008 1:35 am
Reply with quote

Awesome Blossom ! I will share this with the boys. Thanks again.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top