Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 24
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 Member


Joined: 30 Nov 2013
Posts: 574
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: 24
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 Member


Joined: 30 Nov 2013
Posts: 574
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: 10326
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 MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us