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

AUTOMATIC PLAN CREATION IN REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
AADHAV KRISHNA

New User


Joined: 07 Aug 2012
Posts: 6
Location: India

PostPosted: Thu Sep 20, 2012 10:53 am
Reply with quote

Hi All,

Actually am trying to automate the process of plan creation in rexx, for example, say there is a driver module, when the macro is executed on it, the plan of that driver module should be created with packages of its submodules. I have developed the logic but the problem am facing is as follows,

am using EXECIO to scan the driver module, whenever am executing the macro on a member residing in my personal dataset( i.e my userid will be the high level qualifier) it works as intended but on generalized dataset, my userid is being appended as HLQ automatically to execio call. so that am getting dataset not being catalogued error message! can anybody suggest me how to overcome this? am not getting relevent information on search engines!!!!!!!
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Sep 20, 2012 11:30 am
Reply with quote

Perhaps you're missing the quotes? Have you run the TRACE?

It'd be nice, if you can show us the snippet of your code.
Back to top
View user's profile Send private message
AADHAV KRISHNA

New User


Joined: 07 Aug 2012
Posts: 6
Location: India

PostPosted: Thu Sep 20, 2012 12:38 pm
Reply with quote

Hi,

The code snippet is as follows,

"ISREDIT (currdsn) = DATASET"
"ISREDIT (currmem) = MEMBER"
IF LENGTH(currmem) <> 0 THEN
INPUT = currdsn||COPIES("(",1)||currmem||COPIES(")",1)
ELSE
INPUT = currdsn

"Alloc F(in) DS("INPUT") shr"
"Execio * Diskr in (finis stem in."
"Free F(in)"
Back to top
View user's profile Send private message
AADHAV KRISHNA

New User


Joined: 07 Aug 2012
Posts: 6
Location: India

PostPosted: Thu Sep 20, 2012 12:44 pm
Reply with quote

Hi Anuj,

I have tried giving quotes also as,
"Alloc F(in) DS('"INPUT"') shr"
but getting the same issue!!!!!!!!
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Sep 20, 2012 12:46 pm
Reply with quote

You know that TSO prepends your userid to dataset names unless they are quoted. It is not just within ISPF that this happens but also execs that you run in foreground - in background use JCL to allocate your datasets and refer to the DDNAMES in your code.

Edit - your response re quotes crossed with my posting. But...you still have not shown your trace.
Back to top
View user's profile Send private message
AADHAV KRISHNA

New User


Joined: 07 Aug 2012
Posts: 6
Location: India

PostPosted: Thu Sep 20, 2012 1:29 pm
Reply with quote

sorry! actually after seeing anuj's response i tried with quotes but due to typo error i got the error message! now it is working fine!!!!!!!
thanks nic for the explanation.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Sep 20, 2012 4:48 pm
Reply with quote

AADHAV KRISHNA,

using the TRACE in your script allows helps you to debug.

I personnally use TRACE ?R
the ? is documented here
and the R is described here
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top