Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us