Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
replacing the parms in a easytrieve program

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

New User


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

PostPosted: Tue Feb 13, 2007 8:29 pm    Post subject: replacing the parms in a easytrieve program
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

Site Director


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

PostPosted: Wed Feb 14, 2007 12:49 am    Post subject:
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: 60
Location: San Diego

PostPosted: Wed Feb 14, 2007 8:48 am    Post subject:
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

Site Director


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

PostPosted: Thu Feb 15, 2007 2:11 am    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Feb 15, 2007 2:23 am    Post subject:
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    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 The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us