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

MVS command through JCL


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

New User


Joined: 30 Aug 2014
Posts: 24
Location: UK

PostPosted: Sun Sep 14, 2014 2:34 pm
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 Member


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

PostPosted: Sun Sep 14, 2014 3:43 pm
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: 24
Location: UK

PostPosted: Sun Sep 14, 2014 4:37 pm
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 Member


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

PostPosted: Mon Sep 15, 2014 12:07 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Mon Sep 15, 2014 11:13 am
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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts USAGE parameter of RACDCERT CONNECT c... All Other Mainframe Topics 2
No new posts creat new line command in front of Me... TSO/ISPF 4
No new posts c all command JCL & VSAM 11
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Help needed in automation cics transa... CLIST & REXX 1
Search our Forums:


Back to Top