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
 

 

AUTOMATIC PLAN CREATION IN REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: AUTOMATIC PLAN CREATION IN REXX
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

Senior Member


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

PostPosted: Thu Sep 20, 2012 11:30 am    Post subject:
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    Post subject:
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    Post subject:
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: 1787
Location: UK

PostPosted: Thu Sep 20, 2012 12:46 pm    Post subject:
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    Post subject:
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: 6967
Location: porcelain throne

PostPosted: Thu Sep 20, 2012 4:48 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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