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

Accessing symbolic parameters


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vinay N.G

New User


Joined: 15 Sep 2008
Posts: 36
Location: Bangalore

PostPosted: Thu Jan 29, 2009 10:35 am
Reply with quote

Part of DB2 unload JCL using BMC utility is pasted below, Here i am trying to get the value of opfle and TBNAME from keyboard during runtime through rexx.
Job completes with maxcc=0, but the output file is not getting created. I guess the value of OPFLE i.e SYSREC is not being passed to UNLDDS.
But after job completion we can see that the entered file name will be assigned to SYSREC.

Could anyone please let me know the reason for this.


// SET SYSREC=&OPFLE
//*SET CRITER=CIBCORP
//*
//UTIL0001 EXEC D2IBMCUP,
// CNTL='DUMMY,',
// SUBSYS=DB2T,
// UID=&SYSUID..TABLE,
//* RESTART='TERM',
// UNLDDS=&SYSREC.,
// DATACLS=HUGE
//SYSIN DD *
UNLOAD SELECT * FROM &TBNAME.


Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Jan 29, 2009 11:12 am
Reply with quote

Hello,

Do you have a set of JCL and control statements that work correctly when submitted from tso/ispf? If not, i would complete testing a batch stream that works correctly.

After the controlled test was successful, i would then look into working in rexx to finish the requirement.

How does this PROC expand?
Back to top
View user's profile Send private message
Vinay N.G

New User


Joined: 15 Sep 2008
Posts: 36
Location: Bangalore

PostPosted: Thu Jan 29, 2009 11:28 am
Reply with quote

Hi dick,
I have not pasted the complete JCL, its just a part of unload JCL.
Ofcource i mention the proc library in the beginning of the step.

As u said it works fine if i sumbit JCL directly without invoking it through REXX.

In that case i ll associate my PS to SYSREC which will be passed to the proc D2IBMCUP.

eg:// SET SYSREC=user.abcd.efgh

But if the same PS is accepted from keyboard during run time through rexx, its not being passed to the PROC i guess and hence the file is not getting created.


Please let me know what can be done for this.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Jan 30, 2009 1:49 am
Reply with quote

Hello,

It may help if you post the rexx that receives the value from the user and show what is then generated in the jcl that gets submitted.

You might want to run that part of the code with the trace to see what happens.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts Accessing ABENDCC in JCL JCL & VSAM 6
No new posts pass data as symbolic parameter from ... CLIST & REXX 2
Search our Forums:

Back to Top