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
 
REXX RC=0 but actually doesnt write anything in the file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Huzefa

New User


Joined: 05 Dec 2006
Posts: 85
Location: Bangalore

PostPosted: Wed Feb 21, 2007 6:25 pm    Post subject: REXX RC=0 but actually doesnt write anything in the file
Reply with quote

I am trying to insert a record in the file in ISPF mode.
When I execute the code it gives me a rc of 0 but actually doesnot write anything in the file

Code:

/* REXX */
TRACE("?")
ADDRESS ISPEXEC
HI = 'HELLO'
"LMINIT DATAID(LSTID1) DATASET('NBDNN9J.FILE2.DATASETS') ENQ(MOD)"
SAY RC
"LMOPEN DATAID("LSTID1") OPTION(OUTPUT)"
SAY RC
"LMPUT DATAID("LSTID1") MODE(INVAR) DATALOC(HI) DATALEN(80)"
SAY RC
EXIT


Is my code correct...
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Feb 21, 2007 6:51 pm    Post subject:
Reply with quote

Have you tried running this with dialog trace (option 7)?

O.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Feb 21, 2007 6:51 pm    Post subject:
Reply with quote

Is there an LMCLOSE?
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts attchmvs from rexx subroutine that re... harisukumaran CLIST & REXX 1 Fri Jan 19, 2018 5:29 am
No new posts Can we create REXX ouput in an Excel ... upendrasri CLIST & REXX 3 Wed Jan 17, 2018 8:19 pm
No new posts Need to obtain VTOC information via R... djeffbland CLIST & REXX 10 Thu Jan 11, 2018 4:13 am
No new posts REXX contest sergeyken CLIST & REXX 2 Tue Jan 09, 2018 1:55 am
No new posts COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm

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