Is posible merge files with unknown name?

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Is posible merge files with unknown name?

Postby ottoelflaco » Thu Mar 06, 2014 3:03 pm

First of all, sorry my english..

I would like to know...Is posible merge different files like the next example?:
//SORT    EXEC PGM=SORT                                     
//SORTOUT  DD  DSN=TSSDN.DATA.CONCATD4,                     
//             DISP=(NEW,CATLG,DELETE),                     
//             STORCLAS=MFI,                                 
//             SPACE=(TRK,5),                               
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PS)
//SYSOUT   DD  SYSOUT=*                                     
//SYSIN    DD  *                                             

XXXXX is unknown for me, this value change in each execution of jcl...

I think this is hard..but maybe exists any solution?

Thx! ;)
Posts: 36
Joined: Fri Sep 21, 2012 2:33 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Is posible merge files with unknown name?

Postby NicC » Thu Mar 06, 2014 3:12 pm

You can either use a symbolic parameter (see the JCL reference manual) changing the value each time or use a program to generate the JCL and submit it via the internal reader. even this would require the setting of a symbolic parameter to the program unless you can write something that can extract the required dataset names from the catalog.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 3026
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Is posible merge files with unknown name?

Postby BillyBoyo » Thu Mar 06, 2014 3:16 pm

Or look at using a GDG.
Global moderator
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Is posible merge files with unknown name?

Postby dick scherrer » Thu Mar 06, 2014 10:10 pm


But one would still need to resolve the XXXXX.

Personally, i'd use the symbolic parameter.

When does the value for XXXXX become known?
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Return to JCL


  • Related topics
    Last post