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
 

 

Creating multiple output files from multiple input files.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Creating multiple output files from multiple input files.
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    Post subject: Re: Creating multiple output files from multiple input files
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    Post subject: Reply to: Creating multiple output files from multiple input
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 Moderator


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

PostPosted: Mon Jan 14, 2008 10:41 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm


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