Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6968
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: 6968
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: 7315

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: 6968
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us