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

REXX RC=0 but actually doesnt write anything in the file


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Huzefa

New User


Joined: 05 Dec 2006
Posts: 83
Location: Bangalore

PostPosted: Wed Feb 21, 2007 6:25 pm
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: 2358
Location: Israel

PostPosted: Wed Feb 21, 2007 6:51 pm
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: 3156
Location: Tucson AZ

PostPosted: Wed Feb 21, 2007 6:51 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top