View previous topic :: View next topic
|
Author |
Message |
AADHAV KRISHNA
New User
Joined: 07 Aug 2012 Posts: 6 Location: India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
AADHAV KRISHNA
New User
Joined: 07 Aug 2012 Posts: 6 Location: India
|
|
|
|
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 |
|
|
AADHAV KRISHNA
New User
Joined: 07 Aug 2012 Posts: 6 Location: India
|
|
|
|
Hi Anuj,
I have tried giving quotes also as,
"Alloc F(in) DS('"INPUT"') shr"
but getting the same issue!!!!!!!! |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
AADHAV KRISHNA
New User
Joined: 07 Aug 2012 Posts: 6 Location: India
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
|