View previous topic :: View next topic
|
Author |
Message |
rakesh17684
New User
Joined: 08 Oct 2006 Posts: 61 Location: San Diego
|
|
|
|
hi,
I have coded a easytrieve program inside JCL which compiles and executes it. I have coded the some dsn as &ssid.db2.load in the JCL where the value of &ssid is hardcoded inside a member of PDS.
the above code works fine but when i want the &ssid to be used inside the Easytrieve the value is not replaced.i do not know whether it is possible to code like that ,if u guys think it can be,plz pass on the changes i have to do in my code.
regrds
Rakesh |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Please post your jcl and that part of the ezt code where you are trying to handle the symbolic. |
|
Back to top |
|
|
rakesh17684
New User
Joined: 08 Oct 2006 Posts: 61 Location: San Diego
|
|
|
|
JCL:
Code: |
// JCLLIB ORDER=(THIS.IS.PROCLIB)
//SETS INCLUDE MEMBER=PROC
//JOBLIB DD DSN=&HLQWDD..DB2.DSNLOAD,DISP=SHR
// DD DSN=CJ1P.IMI.LOADLIB,DISP=SHR
//SYSIN DD *
|
DATA:
Code: |
PARM BIND (DYNAMIC) +
SSID(&HLQWDD) ********************************************************
*** EZTRIEVE SOURCE PROGRAM***
********************************************************
|
PROC:
Code: |
//PROC SET HLQWDD=SSI1
|
here
//JOBLIB DD DSN=&HLQWDD..DB2.DSNLOAD,DISP=SHR
gets replaced by:
//JOBLIB DD DSN=SSI1.DB2.DSNLOAD,DISP=SHR
but:
SSID(&HLQWDD)
doesn't get replaced as SSID(SSI1) |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Rakesh,
Please look at your eztrieve jcl and program code. In the jcl you need a parm on the EXEC statement and additonal code in the eztrieve program. From what you've posted so far, i don't see either.
Please post the jcl for this step and the eztrieve code. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
rakesh17684 wrote: |
here
//JOBLIB DD DSN=&HLQWDD..DB2.DSNLOAD,DISP=SHR
gets replaced by:
//JOBLIB DD DSN=SSI1.DB2.DSNLOAD,DISP=SHR
but:
SSID(&HLQWDD)
doesn't get replaced as SSID(SSI1) |
How can it? JCL variables, such as &HLQWDD, which you properly defined by using the SET statement, only apply to JCL. They have no value when used as data, as you are attempting to do. As Dick as already pointed out, a JCL variable needs to be passed via a PARM statement, which keeps it within the JCL and allows for proper substitution. |
|
Back to top |
|
|
|