Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Split Files using SORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Wed Oct 03, 2012 9:59 pm    Post subject: Split Files using SORT
Reply with quote

I have a requirement to Split the copy the input file into 2 splits
Input Record Length 10
Heading
XAAAAAAAAA
YAAAAAAAAA
AAAAAAAAAA

Output 1 - Record Length 10
Heading

Output 2 - Record Length 10
XAAAAAAAAA
YAAAAAAAAA
AAAAAAAAAA

I tried using
SORT FIELDS=COPY
OUTFIL FILES=01,STOPAFT=1
OUTFIL FILES=02,SKIPREC=1

The Job is failing
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Oct 03, 2012 10:01 pm    Post subject:
Reply with quote

Quote:
The Job is failing

so is your description!

what are your dd statements for the output files?
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Wed Oct 03, 2012 10:03 pm    Post subject:
Reply with quote

I have used PGM=SORT for executing the job
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Oct 03, 2012 10:07 pm    Post subject:
Reply with quote

what are your dd statements for the output files?
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Wed Oct 03, 2012 10:09 pm    Post subject:
Reply with quote

SORTOF01 & SORTOF02
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Wed Oct 03, 2012 10:12 pm    Post subject: Reply to: Split Files using SORT
Reply with quote

Teeth-pulling time.

You want the first record on one file and all the others on the other file?

What are you getting? If any failure, show the full sysout for the step, please.

Have you tried with INCLUDE for the first record? You could then use SAVE for the second file.
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Wed Oct 03, 2012 10:15 pm    Post subject:
Reply with quote

Getting RC of S000-U0213
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Oct 03, 2012 10:25 pm    Post subject:
Reply with quote

I imagine it will take Bill a little time
to wade thru
the overwhelming amount of information that you have provided.

as the java course tells you,
go get yourself a cup and don't hold your breath.
Back to top
View user's profile Send private message
Skolusu

Senior Member


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

PostPosted: Wed Oct 03, 2012 10:44 pm    Post subject:
Reply with quote

Elixir,

Please post the entire JCL you used and complete sysout.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us