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

How do you handle empty files in a JCL ?

3 Answers   Wipro, Xansa,


I need exexution process for JCL programs

0 Answers  


Explain about File Tailoring

1 Answers  


I have two input SORTIN files and We need to create one SORTOUT file which contains data of both input files. What is the SortCard for this?. Suppose the length of the both files are different, then How we do it? Please reply ASAP

4 Answers   CSC,


Is acct parameter mandatory?

0 Answers  


How to ALTER the name of a GDG ?

2 Answers   IBM,


What are the parameter in the job card wihtout which job won't run........

10 Answers   IBM,


what r the types of job control statements?

2 Answers  


oza017.myorg.emp has 100 records ,oza018.myorg.staff has 200 records but 50 are the common records in both files copy all the common records into oza017.myorg.xyz dataset

3 Answers   Cognizant,


How does jcl act on a cobol code?

0 Answers  


Hi, If a catolog proc has another proc in it, both have ddnames dd1 and dd2. what proc will override if gave override parameter. Here both have same step names.

2 Answers   UHG,


Suppose I have seven jobs to do, but I want to hold one than how can I do this?

1 Answers  


Categories