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

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


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

Global Moderator


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

PostPosted: Mon May 17, 2010 3:55 pm
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: 8797
Location: Welsh Wales

PostPosted: Mon May 17, 2010 3:57 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
Search our Forums:

Back to Top