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                                     
//SORTIN   DD  DSN=TSSDN.DATA.CONCATD1.HXXXXX,DISP=SHR             
//         DD  DSN=TSSDN.DATA.CONCATD1.HXXXXX,DISP=SHR             
//         DD  DSN=TSSDN.DATA.CONCATD1.HXXXXX,DISP=SHR             
//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  *                                             
  SORT FIELDS=COPY
//*               


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

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

Thx! ;)
ottoelflaco
 
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?

 

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.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Is posible merge files with unknown name?

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

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

Re: Is posible merge files with unknown name?

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

Hello,

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,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post