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
 

 

Model DD resolution in ESP scheduler

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 64

PostPosted: Wed Oct 11, 2006 11:59 am    Post subject: Model DD resolution in ESP scheduler
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    Post subject: Re: Model DD resolution in ESP scheduler
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: 64

PostPosted: Thu Oct 19, 2006 2:15 pm    Post subject: Re: Model DD resolution in ESP scheduler
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    Post subject: Re: Model DD resolution in ESP scheduler
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Daily report to be extracted from CA ... polymathtarun DFSORT/ICETOOL 5 Mon Jul 11, 2016 4:33 pm
No new posts Syntax for running batch history repo... polymathtarun CA Products 1 Tue Jun 21, 2016 1:51 pm
No new posts ESP Scheduler -Endpoint URL changes shanmugaraj Rathinam CA Products 2 Fri Apr 22, 2016 10:42 am
No new posts To read from Zeke scheduler p.anbuselvan CLIST & REXX 5 Thu Mar 31, 2016 1:13 am
No new posts TIVOLI workload scheduler tvinodkumar7 IBM Tools 2 Thu Jan 22, 2015 5:34 pm


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