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

Split Files using SORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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
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
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
Reply with quote

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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Oct 03, 2012 10:12 pm
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top