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

Not able to write in member


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

New User


Joined: 03 Dec 2007
Posts: 61
Location: Bangalore

PostPosted: Mon Dec 03, 2007 4:47 pm
Reply with quote

I need to write lines into a member which is already existing in the same pds. I queued the lines using 'queue' command:

queue '.......'
queue '.......'
...
"execio "queued()" diskw membername (finis"
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Dec 03, 2007 5:16 pm
Reply with quote

and...?
Back to top
View user's profile Send private message
Sikkandhar

New User


Joined: 03 Dec 2007
Posts: 61
Location: Bangalore

PostPosted: Mon Dec 03, 2007 5:17 pm
Reply with quote

am not able to write anything into the file.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Dec 03, 2007 8:35 pm
Reply with quote

The error is certainly in the EXECIO.

In this example, the member will be replaced by the new data:
Code:
queue '.......'
queue '.......'
...
"execio "queued()" diskw FILEW (finis"

Unfortunately, there is no APPEND function. The book says (somewhere):
Quote:
"To append information to a member of a PDS, rewrite the member with the additional records added."

To do so, you must first read the member and place the line in stack, then add your own lines then rewrite everything:
Code:

"execio * diskr FILEW (finis"
queue '.......'
queue '.......'
...
"execio "queued()" diskw FILEW (finis"
Back to top
View user's profile Send private message
Sikkandhar

New User


Joined: 03 Dec 2007
Posts: 61
Location: Bangalore

PostPosted: Tue Dec 04, 2007 8:46 am
Reply with quote

THANKS MAN
ITS NOT WORKING STILL
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Dec 04, 2007 4:10 pm
Reply with quote

Then how about posted your runtime TRACE output.
Back to top
View user's profile Send private message
Sikkandhar

New User


Joined: 03 Dec 2007
Posts: 61
Location: Bangalore

PostPosted: Tue Dec 04, 2007 4:10 pm
Reply with quote

thanx maxro..its workin now..am able to write now..
i used stem to store the lines i need to write n used
execio * diskw filew (stem var.
and then i closed the flat file
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 Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top