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

Creating multiple output files from multiple input files.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Phoenix

New User


Joined: 27 Feb 2007
Posts: 20
Location: Chennai

PostPosted: Mon Jan 14, 2008 1:05 pm
Reply with quote

Hi,

I am using SYNCSORT for copying 4 files to 4 seperate files in the same order with no editing or sorting in a single step.

For e.g.

Inputfiles are suppose: A , B, C, D, ......

and outpput files are suppose : P, Q, R, S, .......

i want to copy A to P, B to Q, C to R, and so on in a single SYNCSORT step

But i am not able to get the exact syntax for it, in DFSORT it can be done by using seperate controlcards for each input file. Like this:

SORT FIELDS=COPY,EQUALS
COPY FROM(SORTIN01) TO(SORT01) USING(CTL1)
COPY FROM(SORTIN02) TO(SORT02) USING(CTL2)
COPY FROM(SORTIN03) TO(SORT03) USING(CTL3)
COPY FROM(SORTIN04) TO(SORT04) USING(CTL4)

But i need the corrosponding syntax for SYNCSORT.

Any help would be appreciated.

Cheers.
phoenix.
[/code]
Back to top
View user's profile Send private message
jaspal

New User


Joined: 22 May 2007
Posts: 68
Location: mumbai

PostPosted: Mon Jan 14, 2008 2:49 pm
Reply with quote

HI ,
i thing this will help you



Code:

//JS010    EXEC PGM=MULTIGEN,
//         PARM='NOOV',
//         REGION=1024K
//*
//SYSUT1   DD DSN=A,DISP=SHR
//SYSUT2   DD DSN=P,
//            DISP=(NEW,CATLG,DELETE),                                 
//            DATACLAS=HUGE,                                           
//            RECFM=FB,                                                 
//            LRECL=1866,                                               
//            BLKSIZE=0,                                               
//            UNIT=SYSDA                                               
//SYSUT3   DD DSN=B,DISP=SHR
//SYSUT4   DD DSN=Q,
//            DISP=(NEW,CATLG,DELETE),                                 
//            DATACLAS=HUGE,                                           
//            RECFM=FB,                                                 
//            LRECL=1866,                                               
//            BLKSIZE=0,                                               
//            UNIT=SYSDA                                               
//SYSUT5   DD DSN=C,DISP=SHR
//SYSUT6   DD DSN=R,
//            DISP=(NEW,CATLG,DELETE),                                 
//            DATACLAS=HUGE,                                           
//            RECFM=FB,                                                 
//            LRECL=1866,                                               
//            BLKSIZE=0,                                               
//            UNIT=SYSDA                                               
//SYSOUT   DD SYSOUT=*                                                 
//*       
Back to top
View user's profile Send private message
Phoenix

New User


Joined: 27 Feb 2007
Posts: 20
Location: Chennai

PostPosted: Mon Jan 14, 2008 3:08 pm
Reply with quote

Hi,

In our shop we do not use this utiility. icon_sad.gif

Code:
//JS010    EXEC PGM=MULTIGEN,


So if you can suggest something in SYNCSORT or somthing general it might be helpful.

Thanks.

Cheers,
Phoenix.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Jan 14, 2008 10:41 pm
Reply with quote

Quote:
in DFSORT it can be done by using seperate controlcards for each input file. Like this:

SORT FIELDS=COPY,EQUALS
COPY FROM(SORTIN01) TO(SORT01) USING(CTL1)
COPY FROM(SORTIN02) TO(SORT02) USING(CTL2)
COPY FROM(SORTIN03) TO(SORT03) USING(CTL3)
COPY FROM(SORTIN04) TO(SORT04) USING(CTL4)


For the record, the syntax shown is more complex than it needs to be for DFSORT's ICETOOL. You could use:

Code:

COPY FROM(SORTIN01) TO(SORT01)
COPY FROM(SORTIN02) TO(SORT02) 
COPY FROM(SORTIN03) TO(SORT03) 
COPY FROM(SORTIN04) TO(SORT04) 
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top