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: 1722
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: 6966
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. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


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