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

Model DD resolution in ESP scheduler


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 68

PostPosted: Wed Oct 11, 2006 11:59 am
Reply with quote

Hi Shiva,

I came to know that you are expert in ESP. I have one quesiton for you.

In one of our job, a Model DD step is used. In the proc, the step is normal like other steps, and in that step, we are copying a file to another file by using file aid utility. One of the file will be created monthly by a daily job.
The proc contains,

//DD01 DD DSN=DUMMY.FILE,DISP=SHR.

The DUMMY.FILE is an empty file.

In the JCL we have,

//STEP01.DD01 DD
// DD DSN=PQR.XYZ.Axxxxrr, disp=shr #0 1

When ESP loads this job, it puts the model DD resolution step in this job. The dataset PQR.XYZ.Axxxxrr is created monthly by the job PQRAX which is a daily job. If the dataset PQR.XYZ.Axxxxrr is present then it should resolve the cycle code and replace xxxxrr with the cycle code, if its not present, then that line should be commented out.

Can you please tell me how its possible.

Thanks,
Ravi
Back to top
View user's profile Send private message
siva_pris

New User


Joined: 14 Apr 2006
Posts: 4

PostPosted: Thu Oct 19, 2006 1:38 pm
Reply with quote

Ravi,
I assume that the value for "xxxxrr" will be recieved from the variable.

So u can use the %INCLUDE condition in the JCL

%INCLUDE IF ('%CYBA_CYCLE'?='')
//STepname DD
%ENDINCL

The DD statement will be available only when the cycle value is available.

Regards,
Siva
Back to top
View user's profile Send private message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 68

PostPosted: Thu Oct 19, 2006 2:15 pm
Reply with quote

Thanks shiva,

The value for xxxxrr is resolved by the ESP. The dataset PQR.XYZ.Axxxxrr is created monthly by a daily job. I think by your solution, the job will pick the cycle code of that job, and hence it will again give JCL error for rest of the days.

In the DD statement

//STEP01.DD01 DD
// DD DSN=PQR.XYZ.Axxxxrr, disp=shr #0 1

#0 means, minimum 0 cycles and 1 means maximum 1 cycle. When this job is submitted, ESP puts a model DD resolution step, ESPPRMDD. This program will check for # and it resolves the cycle code accordingly.

My requirement is, the line should get commented all the days, except only when the dataset PQR.XYZ.A121006 (121006 is a cycle code just for an example) is catologed.


Waiting for your reply.
Back to top
View user's profile Send private message
siva_pris

New User


Joined: 14 Apr 2006
Posts: 4

PostPosted: Wed Nov 01, 2006 8:43 pm
Reply with quote

Ravi,
This u cannot do it in ESP.

U can put a JCL step and check whether the PS is cataloged.
Give a JCL IF conition with the RC value as the condition and include or exclude the DD statement. I assume this should work. If not please correct me
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts OPCP scheduler questio IBM Tools 0
No new posts How can I select certain file dependi... JCL & VSAM 12
This topic is locked: you cannot edit posts or make replies. How can I select certain file dependi... Compuware & Other Tools 1
No new posts Extract all the TWS scheduler informa... IBM Tools 1
No new posts Panel variable model line TSO/ISPF 3
Search our Forums:

Back to Top