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

Using ISPF commands in REXX program


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kalais

New User


Joined: 18 Apr 2006
Posts: 22

PostPosted: Tue Jun 06, 2006 4:29 pm
Reply with quote

I WANT COMPRESS A PDS IN MY REXX PROGRAM.
HI HOW CAN I USE THE FOLLOWING ISPF COMMANDS IN MY REXX PROGRAM?

Code:

"ISPEXEC LMINIT DATAID(ID) DATASET('"DSN"') ENQ(EXCLU)"     
"ISPEXEC LMCOMP DATAID("ID")"                               
"ISPEXEC LMFREE DATAID("ID")"


When i am embedding it in my program it gives RC=20.
how i can fix that?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jun 06, 2006 6:10 pm
Reply with quote

An RC of 20 for an ISPF Services call is a Severe Error. Without knowing more, I can only speculate that, for a Server Error to occur, ISPF has not been started prior to using these services, or is just not available/not installed.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1356
Location: Israel

PostPosted: Tue Jun 06, 2006 8:32 pm
Reply with quote

Can you display the values of ZERRSM and ZERRLM when you receive the return code of 20?
These are system variables and maybe there's something there.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Trouble using REXX SDSF interface to ... CLIST & REXX 3
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Instream REXX? JCL & VSAM 13
No new posts CEMT using Rexx? Help please CLIST & REXX 3
No new posts get submitted JCL from SDSF with REXX... CLIST & REXX 2
Search our Forums:


Back to Top