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
 

 

Using ISPF commands in REXX program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Using ISPF commands in REXX program
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

Moderator Team Head


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

PostPosted: Tue Jun 06, 2006 6:10 pm    Post subject: Re: Using ISPF commands in REXX program
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: 1232
Location: Israel

PostPosted: Tue Jun 06, 2006 8:32 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm


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