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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm


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