Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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: 859
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: 859
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

Senior Member


Joined: 14 Mar 2007
Posts: 10700
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 VSAM Alter Command - Cylinder Extent ... Need2Know JCL & VSAM 2 Tue Sep 22, 2020 3:02 pm
No new posts Am I missing something on "FREE ... rodferrn CLIST & REXX 10 Fri Sep 04, 2020 6:51 am
No new posts How to use CICS command CEBR on sdsf ... wang_f_y1 CICS 1 Fri Aug 28, 2020 10:35 pm
No new posts File transfer to remote system using ... kalyan.lc5 TSO/ISPF 2 Wed Jun 24, 2020 1:24 pm
No new posts DEBUG COMMENT command not adding to log Harold Barnes IBM Tools 1 Fri Apr 24, 2020 12:55 am

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