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 All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Trouble using REXX SDSF interface to ... CLIST & REXX 3
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
Search our Forums:


Back to Top