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

Receiving error trying to allocate a ps dataset


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

New User


Joined: 30 May 2007
Posts: 1
Location: chennai

PostPosted: Thu Sep 27, 2007 12:00 pm
Reply with quote

if i try to execute this code,
**************
ADDRESS TSO "ALLOC DA('"SERMAH.REXX.PDS(DATEPGM)"') F(FNAME) SHR REUSE"
'EXECIO * DISKR FNAME (STEM LINES. FINIS'
***************

i am receiving an error like

******************
3 +++ ADDRESS TSO "ALLOC DA('"SERMAH.REXX.PDS(DATEPGM)"') F(FNAME) SHR REU
SE"
IRX0043I Error running FILES, line 3: Routine not found
********************
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Sep 27, 2007 12:38 pm
Reply with quote

Use the below code if your requirement is to read the contents of a PDS member into a stem variable

Code:

FILENME = 'HLQ.XYZ.CNTL(ABCD)'                               
ADDRESS TSO "ALLOC DA('"FILENME"') F(FNAME) SHR REUSE"       
"EXECIO * DISKR FNAME (STEM LINES. FINIS"                     
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 Sep 27, 2007 5:02 pm
Reply with quote

The number of quotes on the TSO command doesn't look right.

Doesn't it work better thus:

ADDRESS TSO "ALLOC DA('SERMAH.REXX.PDS(DATEPGM)') F(FNAME) SHR REUSE"
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
Search our Forums:

Back to Top