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
 
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: 1932
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: 6970
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
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am

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