RC(-3) while executing VGET in REXX

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
CDJCV
Member
Posts: 3
Joined: Thu May 17, 2012 10:04 pm

RC(-3) while executing VGET in REXX

Post by CDJCV » Mon May 20, 2013 3:59 pm

Hi

I am submitting a rexx code using a jCL, in the rexx VGET command is giving below return code .

ADDRESS ISPEXEC
"VGET (C2NDVSYS)"

Error in job spool:
23 *-* "VGET (C2NDVSYS)"
+++ RC(-3) +++

If i use the same command in Rexx and execute with out JCL , the command is running fine.

Please let me know if anyone aware of this issue.

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Mon May 20, 2013 4:42 pm

You have supplied the ISPF datasets in your JCL, haven't you? If not then start reading manuals and searching forums.
Regards
Nic

CDJCV
Member
Posts: 3
Joined: Thu May 17, 2012 10:04 pm

Post by CDJCV » Mon May 20, 2013 6:14 pm

Hi Nic,

I am using the below JCL
//XXXXX JOB XXX,'ENDEVOR ',CLASS=L,MSGCLASS=A,
// NOTIFY=&SYSUID
//***********************************************
// SET INPUT='XXXX.YYYY'
//***********************************************
//PS050 EXEC PGM=IKJEFT01,PARM='RSUBJCL &INPUT'
//SYSEXEC DD DSN=XXX.PROCLIB,DISP=SHR
//SYSTSPRT DD SYSOUT=A
//SYSTSIN DD DUMMY
/*

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Mon May 20, 2013 9:42 pm

Now you need to re-read what Nic posted and make sure you have the needed datasets available as well as ensuring you are running in ISPF (not just TSO).

There are multiple examples in the forum, so using the Search above should help.

Someone will be here if you get stuck.
Have a good one

CDJCV
Member
Posts: 3
Joined: Thu May 17, 2012 10:04 pm

Post by CDJCV » Mon May 27, 2013 11:29 am

The datasets looks available for me and not able to figure out the issue, i tried to search and could not get the details.

Could you please help me to find out the cause of the RC-3) ?

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Mon May 27, 2013 5:19 pm

I'll give you a clue - you are using ISPF facilities (VGET) but you have not specified the ISPF datasets in your JCL. As I said before, start reading the manuals and searching the forums.
Regards
Nic

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Re: RC(-3) while executing VGET in REXX

Post by MrSpock » Mon May 27, 2013 9:42 pm

CDJCV wrote:Hi

I am submitting a rexx code using a jCL, in the rexx VGET command is giving below return code .

ADDRESS ISPEXEC
"VGET (C2NDVSYS)"

Error in job spool:
23 *-* "VGET (C2NDVSYS)"
+++ RC(-3) +++

If i use the same command in Rexx and execute with out JCL , the command is running fine.
I find that statement a little hard to believe since REXX works pretty much the same in native TSO, whether it's run in the foreground or in the background. From the JCL code you posted, I see no evidence that you've issued the command to start ISPF or that you've, as has already been mentioned, allocated all of the necessary ISPF libraries to support an ISPF environment.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others