Page 1 of 2

TWS and Load JCL

PostPosted: Fri Sep 07, 2012 1:15 pm
by samb01
Hello,

i have two PO dataset :

1) wsal.efr.jcl

2) dsal.dfr.jcl

and there is the same member name in each datatset :

wsal.efr.jcl(member01)

and

dsal.dfr.jcl(member01)

But the content of each member is different.

I would like to choose the PDS wiche TWS wille load thirst. I explain :

I have two applications :

WSAL with de jcl : member01 (jcl of wsal.efr.jcl(member01))

and i have an other application :

DSAL wich contain the jcl member01 (jcl of dsal.dfr.jcl(member01)

(I can't change the member name)

How can i do to tell TWS to load the jcl wsal.efr.jcl(member01) for the application : WSAL

and load the jcl dsal.dfr.jcl(member01) for the application : DSAL

Sorry for ma bad english, i think you guessed is not my thisrt language...

Thank's for your help.

Re: TWS and Load JCL

PostPosted: Fri Sep 07, 2012 6:54 pm
by dick scherrer
Hello,

(I can't change the member name)
And what is the Business reason for this?

Many places have a memb01a and a memb01b for 2 processes that are quite similar but not exactly the same.

How is the JCL library specified at run time if there is only 1 JCL library?

Depending on just what you have, there may be alternatives.

Posting the run JCL and PROC (if there is one) may help someone help you.

Re: TWS and Load JCL

PostPosted: Fri Sep 07, 2012 7:09 pm
by samb01
Hello,

i can't change de member name because the difference between the 2 jcl is the version.

On is the old version and the other is the current version of the jcl.

And sometimes, we need to ru the old version or the current version. So we can't change the name of the jcl.

Re: TWS and Load JCL

PostPosted: Fri Sep 07, 2012 8:28 pm
by NicC
I suspect you can. Presumably you have 2 versions of the application on TWS and select which one to use - old or new. Simply amend the jobname in either one to match with a rename of the member.

Re: TWS and Load JCL

PostPosted: Mon Sep 10, 2012 5:44 pm
by Blackthorn
Surely you just need to use variable substitution in the appropriate part of the dataset name -

DSN= &OADID..DFR.JCL

or am I missing something?

Re: TWS and Load JCL

PostPosted: Mon Sep 10, 2012 7:28 pm
by dick scherrer
Hello,

or am I missing something?
We don't know . . . :?

TS has not posted the jcl for us to review and make suggestions . . .

Re: TWS and Load JCL

PostPosted: Wed Sep 12, 2012 5:18 pm
by samb01
Sorry, it's difficult to me to know how you need exactly.

I don't anderstand why you need the jcl ...
It's a simple jcl.

I just want to know if i can user, for example, a worksation UTCA to call the jcl (member01) from the PDS : wsal.efr.jcl

and

use an other Workstation UTCB to call the jcl (member01) from the PDS : dsal.dfr.jcl


because the two jcl has got the same name but not the same content.

the first jcl is dsal.dfr.jcl(member01) :


//COPYPROC EXEC PGM=IEBCOPY                                                   
//SYSPRINT DD  SYSOUT=*                                                       
//I1       DD DSN=BNIZA.BNUTSAB.CNTL,DISP=SHR                                 
//O1       DD DSN=BNIZA.BNUTSAB.CNTL1,DISP=SHR                                 
//SYSIN     DD *                                                               
 COPY INDD=((I1,R)),OUTDD=O1           


the second jcl is wsal.efr.jcl(member01) :

//ALLOC    EXEC PGM=IEFBR14                                             
//DDA      DD   DSN=OPSSTU1.JCL.CNTL,DISP=(,CATLG,DELETE),             
//             UNIT=SYSDA,DSNTYPE=LIBRARY,SPACE=(TRK,(1,1,1)),         
//             LRECL=80,RECFM=FB,BLKSIZE=0                             



thank's for your help.

Re: TWS and Load JCL

PostPosted: Wed Sep 12, 2012 6:26 pm
by NicC
So you have 2 OPC applications - one for the old and oner for the new. I presume, but do not know, that you can specify the job library for each application. If not then you need to revamp one or other of the applications with new job names. And saying that you acnnot may not be an option.

Re: TWS and Load JCL

PostPosted: Wed Sep 12, 2012 7:24 pm
by samb01
Hello,

i can't change the jobname and the difficulty is here....
and i can't specify a joblibrary for each application....

Re: TWS and Load JCL

PostPosted: Wed Sep 12, 2012 7:38 pm
by NicC
Then that is that. Nothing can be done. If something MUST be done then change the ADs in OPC