IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Open a member in a PDS....


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Thu May 29, 2008 11:26 am
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
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu May 29, 2008 11:29 am
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: 235
Location: Chennai

PostPosted: Thu May 29, 2008 11:33 am
Reply with quote

Thanks for ur immediate reply....

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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu May 29, 2008 2:23 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Calling an Open C library function in... CICS 1
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
Search our Forums:

Back to Top