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
 

 

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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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