Is there GOTO and SWITCH-CASE available in JCL ?
Is IF-THEN-ELSE available in JCL also just like it is
available for VSAM datasets under Model Commands category ?



Is there GOTO and SWITCH-CASE available in JCL ? Is IF-THEN-ELSE available in JCL also just like it..

Answer / madhavi

IF THEN Else is available in JCL for example
// IF STEP040A.RUNCHK01.RC = 00 THEN
//*
//STEP040B EXEC IRSL1REP,CURR=EUR,TYPE=P,CC=AU,AREA=GE,
MEMB1=REP1BUD,
// STAGE=PROD,MEMB2=REP2BUD,FILE='.M37I',CC1=
// ENDIF
//*

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More JCL Interview Questions

What is the parameter to be passed in the job card for the unlimited time , irrespective of the job class ?

2 Answers   IBM,


How are datasets concatenated?

3 Answers   CitiGroup,


how can u identify the db2 from jcl ?

2 Answers   TCS,


when GDG version number get changed ? bcz always Generations only increasing.

1 Answers   Cap Gemini,


What is TimeStamp, What is TimeStamp error and What is the Abend Code for TimeStamp Error ?

4 Answers   IBM,






Can we give two user name in NOTIFY parameter in JOBCARD

1 Answers   Syntel,


Can we give TIME = (1440, 59) also ? or is TIME = (1439, 59) is the last one ?

5 Answers   IBM,


There is a procedure in A.B.PROCS(PROC1) (member name is PROC1) //PROCA... There is a call to a procedure PROCA from a JOB. //STEP01 EXEC PROCA ... Here "PROCA" in JOB refers to the actual PROC name or the member name of the PDS where this PROCA is stored.

2 Answers   Merrill Lynch,


Does the terms, JOBLOG, SPOOL and SYSOUT indicate the same thing, i.e., where JCL and JES messages and statements are written ?

2 Answers  


As PARM can supply information to a program ? Can PARM be used to supply information to a cataloged or Inline Procedure also ?

2 Answers   IBM, RS Software,


What is order of searching of the libraries in a JCL?

4 Answers  


How to use COND Parameter in jcl

4 Answers   NIIT, Wipro,


Categories