View previous topic :: View next topic
|
Author |
Message |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
HI,
I tried to open a member in a pds using the following code.
/* REXX */
DSN = DEV2.RK.JCL(ALLDUPS)
"ISPEXEC BROWSE DATASET('"DSN"')"
But it is throwing the error
2 +++ DSN = DEV2.RK.JCL(ALLDUPS)
IRX0043I Error running SAMPLE, line 2: Routine not found
***
Any one please help me to solve this
Regards
R KARTHIK |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
How about trying
DSN = "DEV2.RK.JCL(ALLDUPS)"
DEV2.RK.JCL(ALLDUPS) almost looks like a function call. |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Thanks for ur immediate reply....
Its working now..... |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Hold on a minute, I knew something about this didn't seem right.
When you reviewed the original code in Edit, didn't it look odd to you:
/* REXX */
DSN = DEV2.RK.JCL(ALLDUPS)
"ISPEXEC BROWSE DATASET('"DSN"')"
instead of how the syntactically correct code should look:
/* REXX */
DSN = "DEV2.RK.JCL(ALLDUPS)"
"ISPEXEC BROWSE DATASET('"DSN"')" |
|
Back to top |
|
|
|