Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Open a member in a PDS....

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 158
Location: Chennai

PostPosted: Thu May 29, 2008 11:26 am    Post subject: Open a member in a PDS....
Reply with quote

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
View user's profile Send private message
References
PostPosted: Thu May 29, 2008 11:26 am    Post subject: Re: Open a member in a PDS.... Reply with quote

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3172
Location: Charlotte,NC USA

PostPosted: Thu May 29, 2008 11:29 am    Post subject: Reply to: Open a member in a PDS....
Reply with quote

How about trying

DSN = "DEV2.RK.JCL(ALLDUPS)"

DEV2.RK.JCL(ALLDUPS) almost looks like a function call.
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 158
Location: Chennai

PostPosted: Thu May 29, 2008 11:33 am    Post subject: Reply to: Open a member in a PDS....
Reply with quote

Thanks for ur immediate reply....

Its working now.....
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3172
Location: Charlotte,NC USA

PostPosted: Thu May 29, 2008 2:23 pm    Post subject: Reply to: Open a member in a PDS....
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1