| Other JCL Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the purpose of include statement in a JCL? | | 1 |
| If job is submitted with typerun = hold then how can we
submit the same job? | Wipro | 2 |
| i am trying to copy a PS file into VSAM file in step2 by
using PGM=IDCAMS,COND=(0,LT) and the pS file is getting
sorted in the step1. I got the return code 00 for step1 but
step2 got flushed. can u please help on this. Below is My
JCL.
SEPP050 EXEC
PGM=SORT,REGION=6144K
SYSIN DD DSN=SYSCMN.PROD.CCLIB
(F5910BNN),
DISP=SHR
SYSOUT DD
SYSOUT=*
SYSUDUMP DD
SYSOUT=A
SORTIN DD
DSN=Z1225BT.F5910EPP.HISOUT,
DISP=SHR
SORTOUT DD
DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT5,
DISP=
(NEW,CATLG,DELETE),UNIT=DELQ,
SPACE=(CYL,
(500,500),RLSE),
DCB=
(RECFM=FB,LRECL=1606,BLKSIZE=16060,BUFNO=15)
SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,
(1))
SORTWK02 DD UNIT=SYSDA,SPACE=(CYL,
(1))
SORTWK03 DD UNIT=SYSDA,SPACE=(CYL,
(1))
SORTWK04 DD UNIT=SYSDA,SPACE=(CYL,
(1))
SYSIN1 DD UNIT=VIO,SPACE=
(80,1)
*
SEPP060 EXEC PGM=IDCAMS,COND=
(0,LT)
SYSPRINT DD
SYSOUT=*
SYSOUT DD
SYSOUT=*
SYSLIST DD
SYSOUT=*
***
DD01 DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT,
// DISP=SHR
//***
//DD01O DD DSN=Z1225BT.F5910PHS,
// DISP=SHR,
// AMP=(AMORG,'BUFND=12,BUFNI=5')
//SYSIN DD DSN=SYSCMN.PROD.CCLIB(F5910BBB),
//
DISP=SHR
Output RC for the two steps:
SDCBPJ05 SEPP050 00 236 .00 .00 .0
SDCBPJ05 SEPP060 FLUSH 0 .00 .00 .0 | | 1 |
| My requirement is : How to populate a empty PS/flat file with
ONLY spaces in the first line. You should not use any input
dataset to do this. I'm not sure whether you may use any
utility for this purpose? | HCL | 1 |
| There are 5 steps in a Job. How to bypass the first step
by making use of only COND Parameter and not using any
Restart and IF/THEN/ELSE parameter? | | 6 |
| Can we create VSAM file by using IEBGENER? | Principal-Finance | 2 |
| if we are specifing joblib as well as steplib in job
then at the time of execution how the process will complete | | 4 |
| My JOB contains three steps.
//STEP1 EXEC PGM=ABC
//STEP2 EXEC PGM=DEF
//STEP3 EXEC PGM=GHI
My Question is
1) I want to execute second step only. How will do.
2) Soppose U consider above three steps are in PROC steps
and I want execute the PROC second step only?
How to execute the second step only. During exection
time its creating any ABEND?
Please let me know.......... | | 2 |
| Can I concatenate various datasets whose organization are
different from each other. Lets say I want to cancatenate a
PDS file, a PS file, a GDG file etc. Can You do that ??
If yes, how ? is there any separate Utility to do so ??? | | 4 |
| What is a Proc ? why do we go for a Proc ? What are the
types of procs?Can we have nesting in Procs ? | Xansa | 9 |
| What is a S0C4 error ? | | 2 |
| IN MY JCL I VE 8 STEPS I WANT TO EXCUTE STEP 8 FIRST THEN
EXCUTE STEP 4 ,HOW WILL EXCUTE STEP 8 BEFORE STEP 4? | IGT | 5 |
| How much space OS allocates when you create a PS or PDS? | | 2 |
| i have 1000 records in input file and i want to sort it and
the first 200 records to be placed in output file. how to
do that?? | L&T | 9 |
| What does a disposition of (NEW,CATLG,DELETE) mean? | | 2 |
| How many positional parameters are there in job statement? | | 3 |
| How do you skip a particular step in a proc/JOB? | CSC | 3 |
| Can we Execute a job without specifying Job Name in the Job
Card? | | 2 |
| How can I write the joblog in the spool on normal end of a
job step and direct the joblog to a dataset only if the step
abends? | | 2 |
| If i have defined an temperory dataset in step2, how can i
call back or use the same dataset in step5 of the same job | UST | 4 |
| |
| For more JCL Interview Questions Click Here |