Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Receiving error trying to allocate a ps dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Receiving error trying to allocate a ps dataset
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: 1288
Location: Chennai, India

PostPosted: Thu Sep 27, 2007 12:38 pm    Post subject: Reply to: receiving error while trying to read ps file
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

Moderator Team Head


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

PostPosted: Thu Sep 27, 2007 5:02 pm    Post subject: Reply to: receiving error while trying to read ps file
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us