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: 7225

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 High CPU consumption Job using IAM fi... aswinir JCL & VSAM 8 Thu Dec 01, 2016 8:28 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm


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