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

Typrun = SCAN , where the syntax error messages can be seen


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dp33770

New User


Joined: 04 Jul 2007
Posts: 91
Location: Hyderabad

PostPosted: Wed Sep 17, 2008 2:54 am
Reply with quote

I have few questions in JCL.
I will be thankful is someone clarify the below questions in details for better understanding.

1. When Typrun = SCAN , where the syntax error messages can be seen. Does it goes to job pool .
2. //STEP7 EXEC PGM=PGM3, COND=((16,GE),(90,LE,STEP1),ONLY)
So the conditions for this step to execute is
a.Only if preceding step abnormally terminated ( Is it ONLY for
prceding step i.e STEP6 or for all preceding steps above STEP7)

b.The RC for all previous steps are >= 17
c.The RC of step1 is 89 or less.
Que . will the step bypass if any of the given condition is TRUE
Que. Is only step7 will be bypassed or the entire steps below STEP7
will be bypassed
Que. What if COND parameter will be coded in JOB STEP. Does it
override STEP COND
3.Is there a way in which we can bypass the execution of first Step in a
JOB.
4. As the limit of PARM parameter is 100 charecters . IS there any other way to pass more than 100 Charecters
5. I am aware of JOBLIB but what is meant by JCLLIB,JOBCAT,STEPCAT ?
6. IF DSN = &&temp in STEP5 how this tempory dataset can be referred in 3 steps below (e.g STEP8)
7. IF the new generations of a GDG have been created as below
STEP1 = GDG(+1)
STEP2 = GDG(+2)
STEP3 = GDG(+3)
how To refer the GDG created in step1 in step4 ( I am guessing it to be refered as GDG(+1). Am I correct ?)
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Wed Sep 17, 2008 4:58 pm
Reply with quote

dp33770 wrote:

7. IF the new generations of a GDG have been created as below
STEP1 = GDG(+1)
STEP2 = GDG(+2)
STEP3 = GDG(+3)
how To refer the GDG created in step1 in step4 ( I am guessing it to be refered as GDG(+1). Am I correct ?)


Yes, you are correct. Can you explain why?
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Wed Sep 17, 2008 5:24 pm
Reply with quote

When a job is submitted, the JCL preprocessor scans the JCL and effectively replaces any GDG(+0), GDG(+1), etc. with the full name, including the actual G0000V00 part.

It does this once, before the job runs. Therefore, obviously, the GDG(+1) references must be the same for all steps in the job.

And it only does this scan and replace on the JCL lines. So if the name is on a JCL DD statement, it will be replaced. But if the name is in a data card following a DD * card, it is NOT processed by the JCL preprocessor (it's data, not JCL) and no replacement is done.
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Wed Sep 17, 2008 5:37 pm
Reply with quote

It will check for syntax errors and the job is sent to output queue.
click here for more info.
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Wed Sep 17, 2008 5:38 pm
Reply with quote

Sorry... I missed to quote the question no. icon_redface.gif

Quote:
1. When Typrun = SCAN , where the syntax error messages can be seen. Does it goes to job pool .
Back to top
View user's profile Send private message
dp33770

New User


Joined: 04 Jul 2007
Posts: 91
Location: Hyderabad

PostPosted: Wed Sep 17, 2008 5:44 pm
Reply with quote

Can anyone answer to remaining Que ?
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Wed Sep 17, 2008 5:47 pm
Reply with quote

Quote:
3.Is there a way in which we can bypass the execution of first Step in a
JOB.

I don't think there's a way except for restart from 2nd step. icon_idea.gif
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Wed Sep 17, 2008 5:50 pm
Reply with quote

THIS can help you.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Sep 18, 2008 10:54 am
Reply with quote

Deep,

Quote:
5. I am aware of JOBLIB but what is meant by JCLLIB,JOBCAT,STEPCAT ?


Refer to the JCL manual.

From the manual

JOBCAT:



Quote:
13.2 JOBCAT DD Statement





Purpose



Use the JOBCAT DD statement to define a private VSAM or integrated catalog facility user catalog for the duration of a job. The system searches the private catalog for data sets before it searches the master catalog or a private catalog associated with the first qualifier of a data set's name.



Do not use the JOBCAT DD statement in a job that references an SMS-managed data set. SMS only accesses SMS-managed data sets that are cataloged in a system catalog.



The system does not support the JOBCAT DD statement (or STEPCAT DD statement) for catalogs that have a unit control block (UCB) above the 16MB line.



You cannot specify CVOLs as JOBCAT. Access to a CVOL is possible only with a special CVOL pointer in the master catalog.





STEPCAT

Quote:
13.4 STEPCAT DD Statement





Purpose



Use the STEPCAT DD statement to define a private VSAM or integrated catalog facility user catalog for the duration of a job step. The system searches the private catalog for data sets before it searches the master catalog or a private catalog associated with the first qualifier of a data set's name.



Do not use the STEPCAT DD statement in a job step that references an SMS-managed data set. SMS only accesses SMS-managed data sets that are cataloged in a system catalog.



The system does not support the STEPCAT DD statement (or JOBCAT DD statement) for catalogs that have a unit control block (UCB) above the 16MB line.


JCLLIB

Quote:
Use the JCLLIB statement to:



Identify the names of the private libraries that the system uses for the job. The system searches the libraries for:



Procedures named on any EXEC statements



Groups of JCL statements (called INCLUDE groups) named on any INCLUDE statements.





Identify the names of the system procedure libraries and installation-defined procedure libraries that the system uses for the job.



Identify the order in which the libraries are to be searched. The system searches the libraries in the order in which you specify them on the JCLLIB statement, prior to searching any unspecified default system procedure libraries.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Sep 18, 2008 11:02 am
Reply with quote

Deep,

Quote:
IF DSN = &&temp in STEP5 how this tempory dataset can be referred in 3 steps below (e.g STEP8)


Use &&temp again in step8 to refer to the already created temp dataset in step5.
Back to top
View user's profile Send private message
dp33770

New User


Joined: 04 Jul 2007
Posts: 91
Location: Hyderabad

PostPosted: Thu Sep 18, 2008 11:12 am
Reply with quote

Thnx Aaru....
If someone can answer 2 and 4 I will be thankful
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Sep 18, 2008 11:15 am
Reply with quote

Hi,

Quote:
4. As the limit of PARM parameter is 100 charecters . IS there any other way to pass more than 100 Charecters



Read the information from a file.


Gerry
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Thu Sep 18, 2008 12:22 pm
Reply with quote

Quote:
4. As the limit of PARM parameter is 100 charecters . IS there any other way to pass more than 100 Charecters


Use
Code:
SYSIN DD *
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Sep 18, 2008 3:12 pm
Reply with quote

dp33770 wrote:
2. //STEP7 EXEC PGM=PGM3, COND=((16,GE),(90,LE,STEP1),ONLY)
So the conditions for this step to execute is
a.Only if preceding step abnormally terminated ( Is it ONLY for prceding step i.e STEP6 or for all preceding steps above STEP7)
b.The RC for all previous steps are >= 17
c.The RC of step1 is 89 or less.


Que. Is it ONLY for prceding step i.e STEP6 or for all preceding steps above STEP7) ----- It is for ANY of the preceding steps.

Que. Will the step bypass if any of the given condition is TRUE ----- Yes

Que. Is only step7 will be bypassed or the entire steps below STEP7 will be bypassed ----- Only step7 will be bypassed

Que. What if COND parameter will be coded in JOB STEP. Does it override STEP COND ----- Yes

The following links might help

Type_Description_Herehttp://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.ieab500/iea2b54086.htm
Type_Description_Herehttp://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.ieab500/iea2b54086.htm

Thanks,
Arun
Back to top
View user's profile Send private message
dp33770

New User


Joined: 04 Jul 2007
Posts: 91
Location: Hyderabad

PostPosted: Thu Sep 18, 2008 4:09 pm
Reply with quote

Thanks a Lot to all..
Back to top
View user's profile Send private message
JayC

New User


Joined: 27 Sep 2008
Posts: 70

PostPosted: Tue Nov 04, 2008 4:58 pm
Reply with quote

Aaru wrote:
Deep,

Use &&temp again in step8 to refer to the already created temp dataset in step5.


Hi,
I think you need to use the following DISPOSITION parameters too when you create that &&TEMP file too....DISP=(NEW,PASS)
This would mean that the temporary file created is used below in the subsequent steps.

Correct me if I am wrong...
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top