GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe  >  JCL
Go To First  |  Previous Question  |  Next Question 
 JCL  |  Question 80 of 128    Print  
How to override EXEC PGM in a PROC thru JCL ?

  
Total Answers and Comments: 1 Last Update: January 30, 2008     Asked by: GRB 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 30, 2008 09:11:40   #1  
eli43 Member Since: January 2008   Contribution: 2    

RE: How to override EXEC PGM in a PROC thru JCL ?

Assuming you mean modifying the exec and not eliminating it you can use symbolic parameters like with any parameter substitution. For example lets say you are in a shop that manually assigns sequential number suffixes 01-04 to a program name to control releases (Yes this happens! In a shop I was in the first version of program MS043 would be compiled as MS04301 the second as MS04301 etc. After the 04 version shop standards is to revert to 01. It actually worked quite well.)

Inside the proc set up a symbolic for the program name: MS043 MS043
and set the program execute statement in the proc as: //EXEC PGM &MS043

In the JCL for the job set the symbolic parameter to the correct program version when you execute the proc: MS043 MS04301

A couple things to point out. When a new version of MS043 is compiled and available you need only change the JCL not the proc. Also since MS043 by itseslf is not a valid
program name if you forget to specify the symboic in the JCL there will be a problem (S806) at execution time...which can be considered a safety advantage over having a vaild (and possibly outdated) program named (and executed) as the default.



 
Is this answer useful? Yes | No

 Related Questions

The JOB, EXEC and DD statement.  
Latest Answer : 1) JOB - To identify the Job2) EXEC - To identify which program has to Execute3) DD - To supply the input/output files required for program execution4) PROC - To indicate the procedure5) PEND - End an inline PROC ...

The EXEC statement identifies the program to be executed via a PGM=program name keyword. Its format is //jobname EXEC PGM=program name. The PARM= keyword can be used to pass external values to the executing 
Latest Answer : EXEC statement refers to a PROGRAM or a PROCEDURE to be executed Syntax: //stepname    EXEC   PGM=pgm-name,parametersOR //stepname     EXEC    procedure-name,parametersParameters are1.Positional(pgm-name,procedure name) 2.Keyword (PARM,REGION,ACCT,COND,TIME) ...

PROC stands for procedure. It is 'canned' JCL invoked by a PROC statement. An instream PROC is presented within the JCL; a catalogued PROC is referenced from a proclib partitioned dataset.  
Latest Answer : I believe most give you the flavor of what it is. One of the main reasons for using a PROC is so that you can supply substitution variables. For example if you use a PROC to install software, you might supply a variable like &HLQ so that ...

A symbolic is a PROC placeholder; the value for the symbolic is supplied when the PROC is invoked, eg. &symbol=value. An override replaces the PROC's statement with another one; it substitutes for 
Latest Answer : Symbolic parameters are placed in the EXEC statements , and during compilation of the JCL, will replace the value. A typical use of Symbolic variables is, we can write generic PROC to be executed in various test and production regions by using Symbolic ...

COND specifies the conditions for executing the subsequent job step. The value after the COND= is compared to the return codes of the preceding steps and if the comparison is true, the step is bypassed. 
Latest Answer : In exec statement the condition is used for by-passing the perticular step through the condition,if COND=0 Its a successfull executionif COND=4 Its a warning if COND=8 Its a serious errorif COND=16 Its a fatal error.So that we can use this condition key ...

The value after the PARM= specifies control information to be passed to the executing program of the job step.  
Latest Answer : It is only used for to pass the values by JCL to the perticular application program like COBOL program. ...

REGION specifies the maximum CPU memory allocated for a particular job or job step. If REGION is in the JOB card, it relates to the entire job; if in the EXEC statement, it relates to the job step.  
Latest Answer : region is the keyword parameter used in job and exec statements annd it is for storage purpose region=2096128k default ...

TIME specifies the maximum CPU time allocated for a particular job or job step. If TIME is in the JOB card, it relates to the entire job; if in the EXEC statement, it relates to the job step.  
Latest Answer : if time parameter is coded on both job and step, then the time coded on the EXEC statement over-rides the one on the job.[refererred on pg 88 of Mvs Jcl Primer]U might be interested to know this too.The COND parameter if coded on both job and step, ...

What is the importance of ADDRSPC parameter in EXEC statement and how is it different from REGION parameter of EXEC statement?
Read Answers (4) | Asked by : chandrasekhar

Latest Answer : The value give is normally a number; usually 01-15 with 01 being the lowest and 15 being the highest. Most installations do not allow this parm to be overriden. So, don't be surprised if your job doesn't do anything. ...


 Sponsored Links

 
Related Articles

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Mainframe Features

Mainframe Features In this Mainframe tutorial you will learn about features of Mainframe Processing power memory capacity performance computing multiple operating system time sharing reliability serviceability availability clustering technology and other features available in Mainframe mosgoogle cen
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

HR Interview - Telephone Interview Etiquette

Telephone Interview Etiquette When you conduct a telephone interview for a job it is important to show the proper etiquette Not only is it important it is critical is you wish to be hired by the company There are a number of things you will want to do and other things should never be done mosgoogle
 

HR Interview - How To Succeed At HR Interviews

How To Succeed At HR Interviews There are a number of things you will need to do in order to make sure you pass the interview process Your appearance is something that you will want to pay close attention to Even if you feel that your appearance shouldn t be a factor in whether or not you re highere
 

HR Interview - Do's and Dont's in a HR Interview

Do s and Dont s in a HR Interview There are a number of things that you will want to avoid during the HR interview process While some of these things are directed at the interviewer the other things are directed at the applicant If interviewers fail to follow the proper procedures throughout the int
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape