How to trigger a jcl from a windows .bat file?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Re: How to trigger a jcl from a windows .bat file?

Postby dick scherrer » Sat Jun 30, 2012 12:32 am

Hello,

This is the code i have in the .bat file but when i exceute it i dont see anything happening can you please guide me.
What you have does not look like what has been suggested. . .

There is this:
QUOTE SITE FILETYPE=JES


and the info from both Robert and Ed - you didn't tell the FTP process to pass anything to the mainframe.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: How to trigger a jcl from a windows .bat file?

Postby Robert Sample » Sat Jun 30, 2012 2:58 am

Put this into file mf.jcl:
//IEBEDITA JOB (XXXXXXXX,,,,,XXXX),' ',CLASS=T,
// MSGCLASS=Y,NOTIFY=&SYSUID
//*===========================================================
//* EXAMPLE FOR IEBEDIT UTILITY
//*===========================================================
//STEP001 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=USERID.ABC.JCLLIB(JOBNAM1),DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//*
//
and put this into file mf.ftp:
open ip address
user
pwd
quote site filetype=jes
put mf.jcl
close
quit
and then you start a Windows DOS prompt (cmd.exe is the command to execute) and type in
ftp -s:mf.ftp
However, you should be aware that if you're wanting to use ISPF services in a batch job, your JCL is woefully short of the required DD names.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: How to trigger a jcl from a windows .bat file?

Postby chandra 2185 » Sun Jul 01, 2012 8:59 am

Hi Robert,

Thanks alot, finally I am able to ping the mf and submit by jcl from the pc. thanks again.

Thank u all for your timely support.
chandra 2185
 
Posts: 17
Joined: Mon Jun 18, 2012 2:30 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to trigger a jcl from a windows .bat file?

Postby Robert Sample » Sun Jul 01, 2012 5:32 pm

Glad to hear it is working.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Previous

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post