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
 

 

MVS command through JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
farhad_evan

New User


Joined: 30 Aug 2014
Posts: 9
Location: UK

PostPosted: Sun Sep 14, 2014 2:34 pm    Post subject: MVS command through JCL
Reply with quote

hi all
i run this JCL to execute simple MVS command through JCL
Code:

//TEST EXEC PGM=IEBGENER         
//SYSPRINT DD SYSOUT=*           
//SYSIN DD DUMMY                 
//SYSUT2 DD SYSOUT=*             
//SYSUT1 DD DATA,DLM='$$'         
/*$VS,'/D T'                       
$$                               


max_rc is 0 but where is output ?
thanks
Back to top
View user's profile Send private message

steve-myers

Active User


Joined: 30 Nov 2013
Posts: 462
Location: The Universe

PostPosted: Sun Sep 14, 2014 3:43 pm    Post subject:
Reply with quote

Assuming you are authorized to submit the JES2 $VS command, the output is where you would expect the output for a console command to be displayed.

By the way, /D is not a valid operator command.

I strongly recommend you study the COMMAND Statement chapter in MVS JCL Reference for your z/OS release.
Back to top
View user's profile Send private message
farhad_evan

New User


Joined: 30 Aug 2014
Posts: 9
Location: UK

PostPosted: Sun Sep 14, 2014 4:37 pm    Post subject:
Reply with quote

thanks steve
i study COMMAND Statement and use it
Code:
//  COMMAND  'D T'

it's work but request reply from operator
how i run command without reply request ?

thanks
Back to top
View user's profile Send private message
steve-myers

Active User


Joined: 30 Nov 2013
Posts: 462
Location: The Universe

PostPosted: Mon Sep 15, 2014 12:07 am    Post subject:
Reply with quote

It has been many years since I was authorized to run commands through JCL, either through /*$VS or // COMMAND; much of my memory of that period has been blotted out

Look up the message issued in response to the // COMMAND statement. The manual may provide a clue as to how to avoid the message. For all I know the JCL Reference manual may offer a clue. When I researched my previous reply I only found the chapter for you to consult; I didn't actually look at it!
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Sep 15, 2014 11:13 am    Post subject: Reply to: MVS command through JCL
Reply with quote

the answer is in the JES manuals ...
when defining the internal readers options
the command capability has three choices ,
allow, deny, ask for confirmation
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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm


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