View previous topic :: View next topic
|
Author |
Message |
psarithan
New User
Joined: 27 Jan 2006 Posts: 11
|
|
|
|
hi ,
good morning.
i ahve 14 jobs to run in test region. first job should be run manually. After that jobs should automatically trigger. here we are not using any opc schedulres. can anybody please tell me how to run without using any schedulers. shall i need to change the JCLs.
thanks in advance
regards
saritha |
|
Back to top |
|
|
kondakonda
New User
Joined: 20 Mar 2006 Posts: 34
|
|
|
|
Hi,
A job can be executed through a cobol program.
So the first job should execute this cobol program which contains another jcl that will be executed. (Totally two jobs are submitted)
Like this we can execute any number of jobs.
As this one procedure, please let us know the other procedures. |
|
Back to top |
|
|
param_rajesh_2001 Warnings : 1 New User
Joined: 23 Jun 2006 Posts: 18 Location: Bangalore
|
|
|
|
Hi,
U can use IEBEDIT utility to triger the job from JOBA TO JOBB ..
uSE THE BELOW code
//JOB1
//STEP0001 EXEC PGM=IEBEDIT
//SYSUT1 DD DISP=SHR,DSN=Source job2 DSN (eX test.joblib(JOB2)
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD * DUMMY
//*
Please code end of the job1 , this will trger the job2. Smillar way you can code job3 from job2 and job4 from job2 ......
Hope it may help you for auotrigger the job without scheduler tool. |
|
Back to top |
|
|
Hanfur
Active User
Joined: 21 Jun 2006 Posts: 104
|
|
|
|
Param,
Does the same method works for a steps inside a PROC? as what I have is a PROC which was executed using a JCL.The PROC have 10 steps(say for eaxmple).
Assuming RUNJCL executes PROC and my PROCNAME is 'PROC'
I have coded the follwoing just to execute the step01 from PROC
using IEBEDIT
//STEP01 EXEC PGM=IEBEDIT
//SYSUT1 DD DISP=SHR,DSN=XXXX.XXXX.XXXX.(RUNJCL)
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSPRINT DD SYSOUT=*
/SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=PROC.STEP01
/*
But this fails as its not recognise Operation code..
Any recommendation u have on this?
-Han. |
|
Back to top |
|
|
param_rajesh_2001 Warnings : 1 New User
Joined: 23 Jun 2006 Posts: 18 Location: Bangalore
|
|
|
|
Hi Han,
I don't thin k so we can call procs step in IEBEDIT . Bocz the utility scans the JCL steps and it does not include the proc steps while scaning the step .
- Params |
|
Back to top |
|
|
psarithan
New User
Joined: 27 Jan 2006 Posts: 11
|
|
|
|
hi all,
thanks for your replies. i ahve a small question. my onsite coordinator has given the following code to execute the jobs automaticaly without using schedulers. but where i ahve to insert this code and does it really works? the code is
//INF020 EXEC PGM=IKJEFT01,DYNAMNBR=30,REGION=4096K
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
%TESTCP
/*
how to include this code in first job to execute 2nd job?
thanks in advance
regards
saritha |
|
Back to top |
|
|
Hanfur
Active User
Joined: 21 Jun 2006 Posts: 104
|
|
|
|
Psarith,
It looks like the JCL is executing a REXX program for this.
Param,
Thanks for the update..
-Han. |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
HI,
Can not You use submit commnad in First job to submit the second job?
For Submit commnad you can search in forum. You will get lot of Material...
Hope this helps
Regards
Rupesh |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
most shops have a run class for 'serial execution' -- in other words one and only one batch initiator has the class defined
submit all jobs in the order you want them to run specifying that same 'serial' run class for each of the jobs. |
|
Back to top |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
Hi
Param could you tell me the significance of having the SYSUT2 step in your code what does the SYSUT2 DD SYSOUT=(A,INTRDR) means.
Regards,
Diwakar
Nobody is perfect I am Nobody
[/b] |
|
Back to top |
|
|
dilipsvd
New User
Joined: 09 Jan 2008 Posts: 4 Location: Baskingridge
|
|
|
|
SYSUT2 DD SYSOUT=(A,INTRDR) will write the file in SYSUT1 to the JES2 which will get executed |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
You are replying to a 2 year old thread. |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
As the original poster did not mention somewhere "It is very urgent" , why not ?
But it is true he mentionned " Thanks in advance" |
|
Back to top |
|
|
psarithan
New User
Joined: 27 Jan 2006 Posts: 11
|
|
|
|
Thank u all for your valuable replies.
regards
saritha |
|
Back to top |
|
|
|