IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to execute directly job3 in the JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
webxpertin
Warnings : 1

New User


Joined: 05 Apr 2005
Posts: 9
Location: india

PostPosted: Tue Jun 21, 2005 5:19 pm
Reply with quote

My jcl contains 3 joblib and each joblib contains around 24steps. what i

want to know is how to directly execute the job3 (3rd joblib ) and 5th and 8th

step under job3 without creating a seperate JCL for that. Is it possible to use

restart command in this case if it is, could you please get me the code? Or else

is there any other way out please let me know. Please help me in thie regard.
Thanks
Greetings
Sandeep
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jun 21, 2005 7:11 pm
Reply with quote

First of all, you are not allowed to post your email address, so you need to remove that from your signature.

Your question is rather confusing. Let me try to break it down, and then you can fill in the missing information.
Quote:

My jcl contains 3 joblib's...

Just to be clear as to the definition of a JOBLIB:
Quote:

Use the JOBLIB DD statement to identify a private library that the system is to search for the program named in each EXEC statement PGM parameter in the job. A private library is a partitioned data set or partitioned data set extended on a direct access device. Each member is an executable, user-written program.

next
Quote:

and each joblib contains around 24 steps

Do you mean than each JOBLIB contains around 24 programs? They wouldn't contain steps, whatever you mean by that term.
next
Quote:

what I want to know is how to directly execute the job3 (3rd joblib ) and 5th and 8th step under job3 without creating a seperate JCL

Do you mean you want to execute STEP3, STEP5, and STEP8 without executing the steps in-between (i.e. STEP4, STEP6 and STEP7)?
Back to top
View user's profile Send private message
webxpertin
Warnings : 1

New User


Joined: 05 Apr 2005
Posts: 9
Location: india

PostPosted: Wed Jun 22, 2005 4:57 pm
Reply with quote

The fact is i have 2 joblibs in my jcl e.g. job1 and job2, can i directly execute step 4 and step5 without executing the step1,2,3 and step6 in job2?
Also i want to know how many restart and condition parameters can be coded in one jobcard.
Thanks
sandeep
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Wed Jun 22, 2005 5:17 pm
Reply with quote

I think that you confuse the joblib with jobcard....
If you have a JCL within 2 JOBLIB separated from one step you will have a error and in particular with this description:
Quote:
STMT NO. MESSAGE
x IEFC019I MISPLACED JOBLIB STATEMENT

where x is the line(in JESJCL) of second joblib specified.

So I suppose that you have two JOBCARD that you can view as:
Code:
//MYJOB123 JOB (ACC_NUMBER),DESCRIPTION,CLASS=X,MSGCLASS=X(... and so on.)

In this forum you question is well answered and if you search in this thread you will find what you need(I suppose IEBEDIT or CONDitional execution)

For your question about the restart in jobcard I think that the link below will help you very well. This will explain check id and restart parameter:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/IEA1B640/20.21?DT=20000718114500
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Jun 23, 2005 5:59 am
Reply with quote

If your JOB streams are being accessed through one PDS member under ISPF, you can enter the member using view (V).

Then delete all the JCL stmts you're not interested in and "sub" the resulting JCL. Then exit the PDS member. PF3===>PF3.

If that's not what you wanted to do, you've got some explaining to do. icon_lol.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Fetch data from programs execute (dat... DB2 3
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
Search our Forums:

Back to Top