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
 

 

Writing record in file through REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Tue Apr 17, 2012 4:14 pm    Post subject: Writing record in file through REXX
Reply with quote

Hi ,

I am trying to write new record in PS file through REXX and for same I have written below code.

It's executing correctly however when I am checking dataset ..the record is not added.

SDSN = "USBD948.LIQUID.UPDATE"

WREC = "ashish"

" ALLOC DA('"SDSN"') F(WREC) SHR REUSE
" EXECIO *DISKW WREC (FINIS STEM WREC."
"FREE FI(WREC)"
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1770
Location: Bloomington, IL

PostPosted: Tue Apr 17, 2012 4:18 pm    Post subject:
Reply with quote

Note that there is a difference between WREC, a scalar variable, and WREC., a stem; the dot is significant. Your second line should be:
Code:
WREC.1 = "ashish"
Back to top
View user's profile Send private message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Tue Apr 17, 2012 7:37 pm    Post subject:
Reply with quote

Akatsukami wrote:
Note that there is a difference between WREC, a scalar variable, and WREC., a stem; the dot is significant. Your second line should be:
Code:
WREC.1 = "ashish"


Thanks It's working now !!
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am


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