View previous topic :: View next topic
|
Author |
Message |
kapil27
New User
Joined: 05 Aug 2014 Posts: 1 Location: INDIA
|
|
|
|
Hi I want to use Dynamic Name while creating the dataset in BMP triggered JCL.
For Instance, I want to create dataset as
userid.report
I have userid stored in a file, but how to use while creating dataset. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
Unless there is any better way, you will have to write a program to create dynamic file name and formulate your JCL in the same program and use INTRDR to trigger that JOB. Or check with Scheduling team if they have something they can help with. |
|
Back to top |
|
|
rajesh1183
New User
Joined: 07 Jan 2008 Posts: 98 Location: Hyderabad
|
|
|
|
Can you try the below:
Code: |
// SET ID=ABCD
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SET ID=EFGH
/*
//*
//STEP2 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//FILENAME DD DSN=&ID..FILE.NAME,
// DISP=(NEW,CATLG,DELETE),
// LRECL=80,RECFM=FB,
// SPACE=(TRKS,(10,10),RLSE)
|
|
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
Rajesh, TS has a file in the input with many userids. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Also, the &ID is resolved at job submission time not as each step is executed.
You could, perhaps, try dynamic allocation using BPXWDYN. Search forum, documentation, Google for examples. |
|
Back to top |
|
|
|