Page 2 of 2

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

PostPosted: Sat Jun 30, 2012 12:32 am
by dick scherrer
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.

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

PostPosted: Sat Jun 30, 2012 2:58 am
by Robert Sample
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.

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

PostPosted: Sun Jul 01, 2012 8:59 am
by chandra 2185
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.

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

PostPosted: Sun Jul 01, 2012 5:32 pm
by Robert Sample
Glad to hear it is working.