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
 

 

Splitby of DFSORT with output into diff mems of same PDS.

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

New User


Joined: 14 May 2010
Posts: 14
Location: hyd

PostPosted: Mon May 17, 2010 3:43 pm    Post subject: Splitby of DFSORT with output into diff mems of same PDS.
Reply with quote

Hi,

I don’t understand why spilt by works differently with different kinds of outputs.

Consider the JCL below:

//SORT11 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DISP=SHR,DSN=xxxx.PDS.FILE(MEM1)
//OUT1 DD DISP=OLD,DSN=xxxx.PDS.FILE3(MEM7)
//OUT2 DD DISP=OLD,DSN=xxxx.PDS.FILE4(MEM8)
//SYSIN DD *
SORT FIELDS=(1,5,CH,A)
OUTFIL FNAMES=(OUT1,OUT2),SPLITBY=3
/*
//

The input is:

FILE0 MEM1
FILE4 MEM2
FILE5 MEM3
FILE3 MEM4
FILE2 MEM5
FILE2 MEM6
FILE2 MEM7
FILE2 MEM8
FILE2 MEM9
FILE2 MEM10
FILE2 MEM11
FILE2 MEM12
FILE2 MEM13
FILE2 MEM14
FILE2 MEM15
FILE2 MEM16

The corresponding output is

xxxx.PDS.FILE3(MEM7):

FILE0 MEM1
FILE2 MEM6
FILE2 MEM7
FILE2 MEM11
FILE2 MEM12
FILE2 MEM13
FILE2 MEM5
FILE3 MEM4
FILE4 MEM2

The corresponding output is

xxxx.PDS.FILE4(MEM8):

FILE2 MEM8
FILE2 MEM9
FILE2 MEM10
FILE2 MEM14
FILE2 MEM15
FILE2 MEM16
FILE5 MEM3

Now when I change the pds output to be different members of same PDS then I get the below output:

JCL:

//SORT11 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DISP=SHR,DSN=XXXXXX.PDS.FILE(MEM1)
//OUT1 DD DISP=OLD,DSN=XXXXXX.PDS.FILE4(MEM7)
//OUT2 DD DISP=OLD,DSN=XXXXXX.PDS.FILE4(MEM8)
//SYSIN DD *
SORT FIELDS=(1,5,CH,A)
OUTFIL FNAMES=(OUT1,OUT2),SPLITBY=3
/*
//

XXXXXX.PDS.FILE4(MEM7):

FILE2 MEM8
FILE2 MEM9
FILE2 MEM10
FILE2 MEM14
FILE2 MEM15
FILE2 MEM16
FILE5 MEM3

XXXXXX.PDS.FILE4(MEM8):

FILE2 MEM8
FILE2 MEM9
FILE2 MEM10
FILE2 MEM14
FILE2 MEM15
FILE2 MEM16
FILE5 MEM3

Is there a way in which we can split a file into different members of same PDS?
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Mon May 17, 2010 3:55 pm    Post subject: Reply to: Splitby of DFSORT with output into diff mems of sa
Reply with quote

See this previous topic.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon May 17, 2010 3:57 pm    Post subject:
Reply with quote

Please also be aware that you may experience abends when attempting to open numerous members of a PDS from within the same address space.
Back to top
View user's profile Send private message
k_rajesh

New User


Joined: 14 May 2010
Posts: 14
Location: hyd

PostPosted: Tue May 18, 2010 9:42 pm    Post subject: Splitby of DFSORT with output into diff mems of same PDS.
Reply with quote

Hi Frens,

Thanks for your reply. I got a clear understanding with your replies.

Regards,

Rajesh.
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 Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm


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