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

Writing record in file through REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 1788
Location: Bloomington, IL

PostPosted: Tue Apr 17, 2012 4:18 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 8
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top