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: 4649
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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am


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