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: 1353
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top