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
 
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: 4650
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 it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Hardcoded negative sign value in output scdinesh SYNCSORT 8 Fri Sep 08, 2017 5:28 am
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm

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