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

What this CMDEXEC do in the below JCL


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

New User


Joined: 21 Apr 2007
Posts: 23
Location: Chennai

PostPosted: Mon Aug 27, 2007 2:37 pm
Reply with quote

Hi

I got the following single lined step in my JCL.

//*Some steps here...
//PAP6 EXEC PGM=CMDEXEC,PARM='S CVSCPAP6'
//


Can anyone tell me what this CMDEXEC do?

Also the parm value CVSCPAP6..

FYIThis parm value is defined/ used no where in the JCL.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Aug 27, 2007 3:04 pm
Reply with quote

Take a look here.

O.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Aug 27, 2007 3:08 pm
Reply with quote

CMDEXEC is a program at your site. You must find it and determine what it does.

The parm is 'S CVSCPAP6' and not 'CVSCPAP6' and is used by the pgm CMDEXEC. If a COBOL pgm, it is accessed in the programs linkage section via PROCEDURE DIVISION USING clause. HLASM and C pgms have their own syntax.

Moderators - this qualifies as an interview question for rookies.
Back to top
View user's profile Send private message
Madhanlal
Currently Banned

New User


Joined: 21 Apr 2007
Posts: 23
Location: Chennai

PostPosted: Mon Aug 27, 2007 3:24 pm
Reply with quote

CMDEXEC - A PROGRAM WHICH TAKES OPERATOR COMMANDS
AS EXECUTE PARMS ISSUES THEM VIA SVC34 .
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Mon Aug 27, 2007 3:31 pm
Reply with quote

Quote:
CMDEXEC - A PROGRAM WHICH TAKES OPERATOR COMMANDS
AS EXECUTE PARMS ISSUES THEM VIA SVC34


the above explanation is taken from www.bsp-gmbh.com/turnkey/cookbook/cbt249.html.
This must be that shop specific and maynot find else where.
Back to top
View user's profile Send private message
Madhanlal
Currently Banned

New User


Joined: 21 Apr 2007
Posts: 23
Location: Chennai

PostPosted: Mon Aug 27, 2007 3:36 pm
Reply with quote

Hmm.. S.. U r rite...

But still cant undestand the Usage of CMDEXEC icon_sad.gif


dbzTHEdinosauer,
Its not user written program i believe... Cud nt find it in PDS (both Steplib & Loadlib)
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Aug 27, 2007 4:36 pm
Reply with quote

Madhan,

First, you have to establish whether the executable module CMDEXEC is indeed the one from the CBT TAPE. If indeed it is, then there may or may not be security issues here (whether or not you are authorized to issue Operator Commands and/or the particular command S something)
you have two keywords here:
  1. OPERATOR COMMANDS
  2. SVC34
I personnally am not interested in finding out exactly what the command 'S something' accomplishes.

now if you want to see what a SVC34 is you can look at it here . This is a list of all the SVC routines and their descriptions.

if you want to see the 'S' command (which if it is an Operator command) then the doc for the Start command is here

In case it has something to do with BDT (Bulk Data Transfer), you can look here

And as far as this not being a USER written program, there are many, many loadlibs in your system. Some are for IBM, some are for the third party products your shop may have, and some are for the programs that your shop's systems programmers have written. Some of these loadlibs are APF libraries -if you go playing in these, you may receive a visit from your security people, more than likely they are RACF protected and you can not access them anyway.

As far as IBM is concerned, if they did not write the program then some user did.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Aug 27, 2007 4:44 pm
Reply with quote

and you could also look for 'CVSCPAP6'. If CMDEXEC is what we assume it is, then CVSCPAP6 is probably JCL for a Started Task. You might just find it in SDSF, otherwise search your system JCL & Started Tasks libraries - most of which, if your shop has any level of professionalism at all, will be RACF protected and you will not have access authority. Be advised that attempting to access some of these libraries may also initiate a visit from the security boys.

I would start with SDSF, but it may not be there today.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Aug 27, 2007 4:46 pm
Reply with quote

I would always 'BROWSE' these types of libraries.
VIEW will allow you to copy/create and your shop may not like that.
Back to top
View user's profile Send private message
Madhanlal
Currently Banned

New User


Joined: 21 Apr 2007
Posts: 23
Location: Chennai

PostPosted: Tue Aug 28, 2007 1:32 pm
Reply with quote

Thanks Dick
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

 


Search our Forums:

Back to Top