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

replacing the parms in a easytrieve program


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

New User


Joined: 08 Oct 2006
Posts: 61
Location: San Diego

PostPosted: Tue Feb 13, 2007 8:29 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Feb 14, 2007 12:49 am
Reply with quote

Hello,

Please post your jcl and that part of the ezt code where you are trying to handle the symbolic.
Back to top
View user's profile Send private message
rakesh17684

New User


Joined: 08 Oct 2006
Posts: 61
Location: San Diego

PostPosted: Wed Feb 14, 2007 8:48 am
Reply with quote

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
icon_smile.gif

but:
SSID(&HLQWDD)
doesn't get replaced as SSID(SSI1)
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Thu Feb 15, 2007 2:11 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Feb 15, 2007 2:23 am
Reply with quote

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
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts After newcopy the CICS program user f... CICS 7
No new posts Starting a CICS Transaction from a Th... CICS 0
No new posts Problem moving a cobol program into E... COBOL Programming 3
No new posts Overwriting SSN Digits in Easytrieve ... CA Products 0
Search our Forums:


Back to Top