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
 

 

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: 4648
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 IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am


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