JCL Mock Test 4

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 12

JCL MOCK TEST

EMPLOYEE NO : MARKS : EMPLOYEE NAME:

1. 000100 //TCHN400# JOB A12,EXE1,NOTIFY=&SYSUID 000200 //PROC1 PROC 000300 //STEP1 EXEC PGM=IEFBR14 000400 //DD1 DD DSN=TCHN400.TEST.ABC,DISP=(MOD,CATLG,DELETE), 000500 // SPACE=(TRK,(1,1)),DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) 000510 //STEP2 EXEC PGM=IEFBR14 000520 //DD2 DD DSN=TCHN400.TEST.DEF,DISP=(MOD,CATLG,DELETE), 000530 // SPACE=(TRK,(1,1)),DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) 000600 // PEND 000700 //STEPP1 EXEC PROC=PROC1,COND.STEP2=(4,GT) 000900 // FROM THE ABOVE CODE CONSIDER THAT STEP1 IS SUCCESSFUL (STEP1 RC IS ZERO)IF I WANT TO BY PASS STEP2 IN PROC1 THEN WHAT I SHOULD CODE WHILE CALLING THE PROCEDURE A. B. C. D. STEP1.COND=(4,GT) STEP2.COND=(4, EQ) COND.STEP2=(4,GT) DD2.STEP2.COND=(4,GT)

2. INORDER TO OPEN A FILE AID TOOL WHAT COMMAND SEQUENCE YOU MUST GIVE ? A. B. C. D. TYPE FILE-AID IN THE COMMAND PROMPT TYPE TOOLS AND THEN FILE-AID TS F F TS F

3. WHEN YOUR JOB PRINTS THE OUTPUT, IF IT EXCEEDS THE MAXIMUM PRINTING LINE THE WHAT ABEND CODE YOU WILL GET? A. S322 B. S522 C. S722 D. 822

4. WHEN I SPECIFY SHARE OPTION WHILE CREATING VSAM DATASET THEN IT MEANS THAT A. B. C. D. INCREASING THE PERFORMANCE INCREASING CONCURRENCEY INCREASING INTEGRITY INCREASING DATA SHARING

5. HOW I CAN RESTRICT THE NUMBER OF DUPLICATE KEYS IN THE ALTERNATE INDEX TO 10. A. KEYS B. UNIQUEKEYS C. UPGRADE D. RECORDSIZE 6. WHAT IS THE FILE STATUS 02 IN COBOL A. DUPLICATE KEY WAS DEDUCTED WHILE READING B. ATTEMPTING TO WRITE A DUPLICATE KAY C. RECORD NOT FOUND D. KAY OUT OF SEQUENCE 7. CHOOSE THE KEY WORD PARAMATER WHICH CAN BE CODED IN BOTH JOB AS WELL AS JOBSTEP ---- MULTIPLE OPTION 1. 2. 3. 4. COND REGION TIME CLASS

8. WHICH UTILITY IS USED AS A LINKAGE EDITOR 1. IGYCRCTL 2. IKJEFT01 3. HEWL 4. IEWL

9. IF I WANT TO SPECIFY TIME IN SECONDS FOR JOB THEN IS REFERED AS 1. 2. 3. 4. 10. //TCHN234D JOB A12,EXE1,NOTIFY=&SYSUID //STEP1 EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSIN DD * DEFINE CLUSTER (NAME(TCHN234.MALL.VSAM) TRACKS(1 1) ) /* // WILL THE ABOVE PROGRAM CREATE THE CLUSTER SAY TRUE OR FALSE 11. //TCHN400A JOB A12,EXE1,CLASS=A,NOTIFY=&SYSUID //STEP2 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSUT1 DD DSN=TCHN400.TEST.PS2,DISP=SHR //SYSUT2 DD SYSOUT=*,OUTLIM=20 //SYSIN DD DUMMY // CONSIDER THE DATASET IN SYSUT1 HAS GOT 200 RECORDS A. THIS WILL PRINT THE DATASET IN THE SPOOL AREA B. THIS WILL THROW ERROR BECAUSE OUTLIM PARAMETER IS CODED IN DD STATEMANT. C. THE JOB WILL ONLY ABEND D. THE JOB WILL PRINT AND ABEND. KEY WORD PARAMETER POSITIONAL PARAMETER SUB POSITIONAL PARAMETER SECOND PARAMETER

12. //TCHN234A JOB A12,EXE1,NOTIFY=&SYSUID //STEP1 EXEC PGM=IEFBR14 //DD1 DD DSN=TCHN234.CTS.GDG(+256),DISP=(NEW,CATLG,DELETE), // SPACE=(TRK,(1,1)),DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) // CONSIDER THE ABOVE CODE AND SAY THE OUTPUT A. B. C. D. 13. //TCHN400M JOB CTS01,'PRESTON',CLASS=A,NOTIFY=TCHN400 //STEP1 EXEC PGM=IEFBR14 //DD1 DD DSN=TCHN400.P,DISP=(NEW,CATLG,DELETE),LIKE=TCHN400.PS1 // WHAT LIKE PARAMETER WILL DO FROM THE ABOVE CODE ? 14. //TCHN400# JOB A12,EXE1,NOTIFY=&SYSUID,RESTART= ? //PRO1 PROC //STEP1 EXEC PGM=IEFBR14 //DD1 DD DSN=TCHN400.ABC.PS1,DISP=(MOD,CATLG,DELETE), // SPACE=(TRK,(1,1)),DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) //STEP2 EXEC PGM=IEFBR14 //DD2 DD DSN=TCHN400.ABC.PS2,DISP=(MOD,CATLG,DELETE), // SPACE=(TRK,(1,1)),DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) // PEND //STEPP1 EXEC PRO1 //STEP3 EXEC PGM=IEFBR14 //DD3 DD DSN=*.STEPP1.STEP2.DD2,DISP=(MOD,CATLG,DELETE), // SPACE=(TRK,(1,1)),DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) // THE JOB CREATES THE GENERATION. THE JOB WILL ABEND. JCL ERROR WILL HAPPEN FOR REACHING MAXIMUM LIMIT GENERATION CAN BE CREATED ONLY BY IDCAMS UTILITY

CONSIDER THE ABOVE JCL, INORDER TO RESTART JOB FROM STEP2 WHAT I SHOULD CODE IN RESTART PARAMETER ? 15. //TCHN400# JOB A12,EXE1,NOTIFY=&SYSUID //PROC1 PROC //STEP1 EXEC PGM=IEFBR14 //DD1 DD DSN=TCHN400.TEST.S&XX,DISP=(MOD,CATLG,DELETE), // SPACE=(TRK,(1,1)),DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) // PEND //STEPP1 EXEC PROC=PROC1,XX=02 //STEP1.DD1 DD DSN=TCHN400.TEST.PDS // THE ABOVE PROGRAM RETURNS JCL ERROR SAY TRUE/ FALSE.

16. WHICH PARAMETER IS USED TO INCREASE THE PERFORMANCE OF A DATASET. A. B. C. D. PERFORM REF RESET REORG

17. WHAT IS THE USE OF IEBIMAGE UTILITY. A. B. C. D. TO CREATE A DATASET TO MAKING A IMAGE COPY OF DATASET TO CREATE A BUFFER TO MAKE A BACKUP OF DATASET

18. CONSIDER THAT I AM USING KSDS FILE IN MY APPLICATION PROGRAM, IF I WANT TO ACCESS THE DATA VIA ALTERNATE INDEX THEN IN JCL, WHAT DATASET NAME I MUST SPECIFY. A. BASE CLUSTER AND ALTERNATE INDEX CLUSTER B. BASE CLUSTER AND PATH C. BASE CLUSTER ONLY. D. ALTERNATE INDEX CLUSTER ONLY. E. BASE CLUSTER AND DATA COMPONENT. 19. THE IEBUPDTE UTILITYS CONTROL STATEMENT IN FIRST AND SECOND COLUMN MUST APPEARE AS A. B. C. D E 20. WRITE THE EXPLANATION FOR THE FOLLOWING FILE STATUS 21 35 21. SELECT THE INVALID IDCAMS COMMAND A. LISTCAT B. DITTO C. DEFINE D. ALTER //* /* // ./ /.

22. WHAT IS THE MAXIMUM LIMIT OF ALTERNATE INDEX CAN BE CREATED FOR A CLUSTER A. 255 B. 256 C. 253 D. 523 23. WHAT IS THE USE OF IEHPROGM A. TO RENAME A DATASET B. TO PRINT A DATASET C. TO ALTER A DATASET D. TO COPY THE DATASET 24. IN ORDER TO CREATE A TEMPORARY DATA SET THE PREFIX OF DSN NAME SHOULD BE A. & B. && C . TEMP D. % 25. THERE ARE 4 RECORDS OF SIZE 1000 BYTES, 1200 BYTES, 1000 BYTES AND 800 BYTES. CI SIZE IS 4096. NOW INSERTING 1000 BYTES RECORD TO THE CLUSTER WHAT WILL HAPPEN? A. CI SPLIT B. CA SPLIT C. BOTH CI AND CA APLIT

D. SPACE ABEND 26. CHOOSE THE SECIAL DD NAMES A. SYSPOUT B.SYSPDUMP C. JOBLIB D. SYSTDUMP 27. COMPILER OPTION LET YOU VIEW THE APPLICATION PROGRAM CODE IN THE SPOOL AREA ? A. MAP B. LIST C. LIST D. SOURCE 28. WHEN CONTIG SPACE PARAMETER IS SPECIFIED REQUEST CONTIGUOUS SPACE SHOULD BE ALLOCATED TO A DATASET THIS APPLIES FOR A. BOTH PRIMARY AND SECONDARY SPACE ALLOCATION. B. ONLY PRIMARY SPACE ALLOCATION. C. ONLY SECONDARY ALLOCATION. 29. PARTIONED DATASET CAN BE BUILD USING AMS(ACCESS METHOD SERVICE) STATE TRUE OR FALSE. 30. CONSIDER THE FOLLOWING SELECT INFILE ASSIGN TO DD1 ORGANIZATION IS INDEXED ACCESS MODE IS SEQUENTIAL RECORD KEY IS EMPNO

ALTERNATE KEY IS EMPNAME FILE STATUS IS FS1. FOR ALTERNATE INDEX, IF I DONT SPECIFY DD NAMES IN JCL WHAT WILL HAPPEN ? A. ABEND SOC7 B. ABEND SOC4 D. RUN SUCCESSFULLY D. DATASET NOT FOUND FILE STATUS. 31. CHOOSE THE CORRECT OPTION FOR DELETE AND REWRITE IN ESDS A. DELETE IS NOT POSSIBLE AND REWRITE IS POSSIBLE B. DELETE IS POSSIBLE AND REWRITE IS NOT POSSIBLE C. DELETE IS POSSIBLE IF YOU SUPPLY RBA. D. REWRITE IS NOT POSSIBLE. 32. CHOOSE THE VALID RESTART DEFINITION PARAMETER A. RD = R B. RD = NP C. RD = RNC D. RD = CP 33. EXPLAIN THE FILE STATUS CODE. 49 41 34. WHAT NAME YOU WILL GIVE IN THE JCL IN ORDER TO REFER IN THE APPLICATION PROGRAM. A. CLUSTER NAME AND DATA NAME B. DATA COMPONENT

C. CLUSTER NAME D. INDEX COMPONENT 35. WHILE CREATING THE DATASET IN DCB PARAMETER IF RECFM=F IS SPECIFIED THE WHAT WILL BE LRECL AND BLKSIZE A. DCB = (RECFM=F, LRECL=80, BLKSIZE=8000) B. DCB = (RECFM=F, LRECL=80, BLKSIZE=80) C. DCB = (RECFM=F, LRECL=84, BLKSIZE=840) D. DCB = (RECFM=F, LRECL=80, BLKSIZE=800) E. NONE OF THE ABOVE 36. IN JES2 CONTROL STATEMENT WILL BE WRITTEN AS A. B. C. D E //* /* *// */ ./.

37. WHICH PARAMETER MUST BE CODED IN JOB OR EXEC TO DO A AUTOMATIC RESTART ?

38. HOW TO REPRESENT DD STATEMET IN THE INPUT STREAM OVERRIDING A CATALOGED PROCEDURE STATEMANT. A. B. C. D. E. +/ /+ X/ /X //

39. HOW TO REPRESENT DD STATEMET IN THE INPUT STREAM OVERRIDING A CATALOGED INSTREAM STATEMANT. A. B. C. D. E. +/ /+ X/ /X //

40. WRITE THE ABEND CODE FOR THE FOLLOWING PROTECTION EXCEPTION DATA EXCEPTION 41. EXPLAIN THE FOLLOWING FILE STATUS 24 39 42. WHAT ARE THE PARTS OF INDEX COMPONENT ?

43. //ABC

IF ( (RC LT 3 | RC LT 10 ) | RC = 15 )

WHICH RETURN CODE WILL MAKE THE ABOVE RELATIONAL EXPRESSION TO TRUE A . 0 , 1 , 2 OR 15 B. C. D 0 , 1, 2, 15 2, 9 , 15 3 , 10, 15

You might also like