Вы находитесь на странице: 1из 62

1) What is the function of DD DISP parameter?

(1) Tells the system what to do with the dataset following normal termination of the step (2) Describes the status of the dataset (3) Tells the system what to do with the dataset following abnormal termination of the step (4) All of the above 2) How is the record format of an output dataset specified? (1) RECORG parameter (2) STORCLAS parameter (3) RECFM parameter (4) None of the above 3) What is the purpose of DD * statement? (1) Begins an input data prompt at the system console (2) Begins an in-stream dataset (3) Marks the end of a command stream (4) Includes all datasets within a naming pattern 4) A DD statement has 2 types of parameters. Name them ? (1) Positional, Keyword (2) Keyword, Control (3) Dynamic, Static (4) Named, Dynamic 5) What is the function of JOB statement ? (1) Marks the end of a job (2) Marks the beginning of an instream procedure (3) Marks the beginning of a job & assigns a name to the job (4) Assigns an execution priority to a job 6) How can a job send a status message to a TSO user at the completion of a job ? (1) STATUS (2) NOTIFY (3) ENDMSG (4) USER 7) What is the function of a DD statement ? (1) Identifies & describes a dataset (2) Delimits a DO loop (3) Marks the start of a declarative section (4) Delimits the start of an inline include section 8) When output dataset space is required, what quantity categories are used ? (1) Primary, Secondary, Directory (2) Address, Units, CONTIG or ALS (3) Displacement and length (4) Megabytes, Kilobytes and Bytes 9) What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step ? (1) START (2) RUN (3) EXEC GO

10) How can unused space allocation be returned to the system when a dataset is closed ? (1) RETURN (2) RLSE (3) CONTIG (4) CLOSE 11) Can an individual step be restricted from using all the jobs allowed CPU time ? (1) Yes (2) No (3) Only in Catalogued Procedure (4) Through the STEPTIME parameter 12) Where can program checkpoints be stored for use in a restart ? (1) CHCKPOINT DD statement (2) SYSCHK DD statement (3) CHKOUT DD statement (4) CHECK or DD statement 13) How can the disposition of sysout datasets be set for an entire jobstream ? (1) SYSOUT parameter (2) OUTPUT parameter (3) DEFAULT parameter (4) DEST keyword 14) What statement marks the end of an in-stream or Catalogued procedure ? (1) STREAM (2) SET (3) PROC (4) PEND 15) What is the function of DD name parameter with a 2 part structure; Audit.Report ? (1) Override the Audit DD statement in the report (2) Override the Report DD statement in the Audit procedure (3) Concatenate a dataset onto a DD statement in a called module (4) Delete the Audit DD statement in the Report 16) Which DD parameters are required ? (1) All parameters & Keywords are optional (2) Dsname, SPACE, RECFM (3) Dsname, SPACE, UNIT (4) Dsname, DISP, SPACE 17) How can an in-stream dataset be terminated? (1) // (2) //* (3) /* (4) None of the above 18) What is the function of the DD DCB keyword? (1) Begins the subparameters of the DCB (2) Begins the DASD control block (3) Marks the close of the DCB (4) Modifies the record type parameters 19) What is the maximum length of a single line of JCL ?

(1) 71 bytes (2) 60 bytes (3) 55 bytes (4 ) 80 bytes 20) What is the purpose of DD DUMMY statement ? (1) Marks a deleted DD statement (2) Begins an interpreted command stream (3) Specifies no space allocation & no disposition processing (4) Suppress command processing 21) Many JCL statements contain specific values designed to direct & control the execution of the statement. What are these fields called ? (1) Linkage Variables (2) Parameters (3) Control Libraries (4) Includes 22) When space is allocated for an output dataset, what units can be used? (1) Disks (2) Megabytes (3) Cylinders, Tracks, Blocks (4) Bytes 23) What is the format of comment statement ? (1) // (2) //* (3) /* (4 ) None of the above 24) A DD statement consists of 4 fields. Name them :(1) Name, DD, Space, Device (2) Format, Name, DD, Space (3) DD, parameter, device, format (4) Name, DD, parameter, comments 25) What DD statement is used to supply the name of a dataset ? (1) Name (2) Dsname (3) Label (4) File What is the purpose of the DD KEYLEN parameter? (1) Specify the length of a data set key in bytes (2) Override the key length of an SMS defined VSAM dataset (3) Override the key length specified in the dataset label All of the above What is the function of the STEPLIB DD statement? (1) Identify a library to be searched for programs named in the EXEC statement (2) Identify a library containing executable job steps (3) Override the system step library within a job stream (4) All of the above How can return codes be tested before execution of a job step?

(1) Through the RC keyword (2) Through the CODE keyword (3) Through the COND keyword (4) Through the RETURNCD keyword What is concatenating? (1) Overriding or adding procedures (2) Logically connecting input datasets (3) Overriding a called PROC dsname (4) All of the above How can values be passed from the job stream to an executable program? (1) Through the PARM keyword (2) Through the VALUE parameter (3) Through the PGM parameter (4) All of the above Must tape dataset definitions include VOL=SER specifications? (1) Yes (2) No (3) Only for uncataloged datasets (4) Only for cataloged datasets What is the function of //JCLLIB statement? (1) Identifies the source of the JCL commands (2) Points to the system software library (3) Marks the beginning of the in-stream JCL (4) Identifies the libraries that the system will search for include groups or procedures named in EXEC statements 33. What parameter of the job statement is used to limit the CPU time consumed by the job? (1) RUNTIME (2) TIME (3) LIMIT (4 ) EXECMAX 34. What statement marks the beginning of an in-stream or cataloged procedure and assigns default values to parameters defined in the procedure (1) STREAM (2) SET (3) PROC (4) PEND How can a stopped job be started again? (1) Through the RETURN parameter (2) Through the STARTUP parameter (3) Through the RESTART parameter (4) Through the CHECKPNT keyword In order to continue a job after a return code of 12 in step1, what the step2 EXEC statement include? (1) CONTINUE

(2) COND = (12,NE) (3) COND = (12,GE) (4) COND = (12,EQ) In SMS datasets, what is the function of the DD MGMTCLAS keyword? (1) Specify a management class for a new dataset (2) Lookup a storage profile from the class library (3) Begin a storage class definition block (4) Alters the default storage profile for the dataset How can the submitting users RACF authority be overridden in a job stream? (1) Through the USER parameter (2) Through the USER and PASSWORD parameter (3) By notifying the console operation to override the authority (4) Through the RACF parameter What parameters can be used to limit the number of records written to a SYSOUT dataset ? (1) LIMIT (2) OUTLIM (3) SIZE (4) MAX What statement can be used to send data to another MVS JES3 node ? (1) LINK (2) CONNECT (3) XMIT (4) SEND What parameter directs the output of the job log dataset ? (1) JOBLOG (2) MSGCLASS (3) MSGLEVEL (4) SYSLOG How can a jobs execution priority be modified ? (1) PRIQTY parameter (2) PRTY parameter (3) JOBCLASS parameter (4) RUNTIME parameter How can the attributes of one SMS dataset be copied to another dataset ? (1) Using DD like parameter (2) Using DD Copy parameter (3) Using DD Refer parameter (4) Attributes cannot be copied within SMS datasets What is the function of //CNTL statement ? (1) Marks the beginning of one or more program control statements (2) Identifies the control card library (3) Delimits the PROC control statements (4) None of the above If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

(1) As the (0) generation (2) As the (+1) generation (3) As the (-1) generation (4) Without the generation number In SMS datasets, what is the function of the DD AVGREC keyword ? (1) Specifies average length of records in a file (2) Specifies the multiplier to be used for primary & secondary space allocation (3) Directs the system to allocate space based on average record length (4) Specifies word blocking factor How can a JES3 operator command be entered through the jobstream? (1) Through the OPERATOR statement (2) Through the COMMAND statement (3) Through the //** statement (4) Through the console statement To connect EBCDIC records to ASCII during write process, what DCB sub-parameter is used ? (1) EBCDIC = NONE (2) ASCII = ALL (3) TRANSLATE = ALL (4) OPTCODE = Q If a generation data set is specified as input without the generation number, what will the input to the DD ? (1) the most recent generation created (2) the earliest generation created (3) a concatenation of all the cataloged generations a jcl error will be returned to the job How can buffers be assigned to a DCB ? (1) Through the BUFMAX subparameter (2) Through the BUFOUT subparameter (3) Through the BUF subparameter Through the BUFNO subparameter What is the function of the DD MODIFY parameter ? (1) overrides the LRECL of a cataloged dataset (2) specify a copy-modification module to format a printed dataset (3) overrides the blocksize of a cataloged dataset (4) add records to an existing dataset What is the prefix character for symbolic parameter ? (1) % (2) & (3) @ (4) {} What is the purpose of REGION key word ? (1) specifies the amount of space required by a step (2) specifies the amount of space required by a job (3) both of the above (4) none of the above What is a system data set catalog ? (1) a reference to the naming standards for datasets (2) a list of MVS reference libraries (3) a list of datasets available to MVS along with the location data (4) the original installation datasets for JCL

If both the JOBCAT & STEPCAT statements are coded in a step, which will be executed? (1) JOBCAT (2) STEPCAT the one coded first in the JCL stream (4) both the statements will be executed in sequence 1) Invalid JCL statements [Choose] //XMIT //CNTRB //SET //CNTRL //EXCLUDE 2) Which of the following are valid with respect to sort in file-aid (choose 2)------------a) RRDS & BDAM files the SORT command sorts records (RRN or RBA) order b) We cannot sort a keyed file other than the key field c) Default parameter for SORT is keys for a KEYED file. Thus the command SORT & SORT KEYS are the same 3) // output ABCD copies=5, copyg=(1,2,3)-----------How will you modify the alone statement such that the o/p is directed to the target mode RMT37 Ans : //output ABCD copied=5, copyg=(1,2,3),DEST=RMT237 4) Compiler option to view the source code of COBOL programs Ans : SOURCE 5) Rename a Dataset Ans : IEHPROGM 6) How can a job send a status message to a TSO user at the completion of a job? Ans : NOTIFY 7) Temporary file indicator - && 8) On question was like how will SEEERROR be set or related or for routine 9) Default print format for PRINT command Ans : DUMP 10) Order of Execution of procedure Ans : 1.Instream Procedure 2. Private library 3. System library 11) Erase parameter in define cluster Ans : It will erase DATA component & filled with binary zeros 12) a)VSAM KSDS can have only one primary index b) VSAM KSDS can have only one alternate index Ans : a) True b) false 13) To improve performance of JCL Ans : Build index

14) Append can be done in EXTEND mode in Ans : ESDS 15) PROCEDURE C // C PROC //CSI EXEC PGM=GHI //PEND PROCEDURE B //BPROC //BS1 EXEC PROC C //BS2 EXEC PGM=DOF //PEND If abend occurs in BS2 where it will start from ? Ans : BS1 16) Which satisfy the below listed criterions in GDG creation? //sysin DD * define GDG(limit (255) no scratch empty) 17) How can KSDS access? Dynamic, Sequential, Random 18) If RC=4 THEN /*comment*/ Continue Else /*Comment*/ Step1 Ans : Continue is not valid in JCL 19) Choose compile directives a. COPY Compiler directive b. SKIP c. CONTROL d. ADATA e. SSRANGE 22) Some question regarding KEYS.options were 4 pgms. 12-length , 6-9 starting position, size-512 bytes Ans : KEYS(12,69) 23) DD in the PROC can be overwritten in the main JCL in done by ANS : //PROC stepname.ddname DD DSN 24) In uncatalog the GDG DS,Buf dont want to delete it? Ans : EMPTY, NOSCRATCH 25) //TELCON IF(RC=8 |RC=12 | RC=14 | RC=18) Ans: 8,12,14,18

26) ESDS CAN BE ACCESSED RANDOMLY BY Ans : RBA 27) In space parameter CONTIG,MIXG,ALX is applicable only for the primary quantity And RELSE parameter is applicable for both primary and secondary 1. File status 24 2. File status 39 3. What are time abend code (choose 2) 1.S522 2.S0C7 3.S222 4.S013 4. There are 4 records of sizes 1000 bytes, 1200 bytes, 1000 bytes and 800 bytes.CI size is 4096.Now inserting 1000 bytes record. what will happen? Ans: Only CI split 5. Which of the following will satisfy -limit is 255 -all the dataset will be uncatalogged when it exceeds the limit -DSCB is not to be removed from the catalog Ans : //SYSIN dd * define GDG(limit(255) noscratch empty) 6. //step1 exec pgm=IEFBR14 //dd1 dsn=tchn94.mf004.abc,abc,disp=(new,catlg,delete), // dcb=(lrecl=100,blksize=800,recfm=fb),unit=1093 // space=((1,1),rlse,cyl) Ans : space =(cyln,(1,1),rlse) Utility questions 7. IEBGENER -IEBEDIT -IEBIMAGE (for creating buffers) -IEBDBG 8. What is order of execution? a. System library b. Private library c. Instream proc Ans : c,b,a 9. File Status 02 10. IDCAM command that would list KSDS attributes Ans : LISTCAT

11. What are valid IDCAM commands ?(choose 3) a.LISTCAT b.ALTER c.DELETE d.PRINT e.DITTO 12. Which parameter id used to select the initiator D? Ans : CLASS = D 13. What are special DD Names? a.SYSPOUT b.SYSPDUMP c.JOBLIB d.SYSTDUMP 14. Consider // CHECKIT IF ((RC LT 3 & RC LT 10) | RC=15) Then, Which return code will make the above relational exp. evaluate to true. Ans : 0,1,2 or 15 15. Compiler option to view the source code of cobol program? Ans : SOURCE 16. Which JES2 parameter is used to print DETROIT at remote node? 17. Index component partsAns : a. Index set b. Sequence set 18. Override Ans : stepname.DDName 19. i ) TS Option can be used to browse VSAM dataset ii ) TS Option can be used to edit VSAM dataset state true/false 20. Organization is sequential. KSDS file is open in I-O Mod PROCEDURE C //C PROC //CS1 EXEC PGM=GHI //PEND PROCEDURE B //B PROC

//BS1 EXEC PROC = C //BS2 EXEC PGM=DEF //PEND PROCEDURE A //A PROC //AS1 EXEC PROC=B //AS2 EXEC PGM=ABC //PEND JOB Stream //JOB1 JOB //STEP1 EXEC PROC=A //STEP2 EXEC PGM=JKL If abend occurs BS2 from where I want to restart a. As Proc BS1 b. As Restart=B.BS2 2. All IEPUPDTE utility control statement (not including data statements) must begin with a ----in columns 1 & 2 of JCL stmt a. //* b. /* c. // d. /. 3. CONTIG in SPACE Parameter_______ a. Secondary space allocated in record blocks and tracks b. Primary space in contiguous record blocks and tracks c. Sequential space in contiguous records and tracks d. Requested Primary space allocated only on contiguous tracks and cylinders 4. Partitioned Dataset can be built using AMS(Access method service) State True / False Ans : True 5. Consider the following Select infile assign dd1 Organization is INDEXED Access Mode is sequential Record Key is EmpNo Alternate Key is EmpName File status is FS1 For alternate key if i not mention the DD stmt in JCL, What will happen? a. Abend SOC7 b. Abend SOC4 c. Successfully run d. Dataset not found

6. Delete and rewrite can be done ESDS a. Delete is not possible and rewrite is possible b. Delete is possible and rewrite is not possible 7. NOT a valid IDCAMS command a. LISTCAT b. DITTO File editing tool c. DEFINE d. ALTER e. REPRO 8. Study the XMIT and Route Commands XMIT JES2 ROUTE JE2/3 9. Check for System symbols & JCL symbols in google 10. How can is suspend the volumes which available in TAPE. a. By Using UNIT with defer. b. Device = (, SUSPEND) 11. JOB Order of execution a. Priority and JOB class b. JOB Class and MSG Class c. MSGCLASS and PRIORITY 12. //JOBName JOB Lines=60000, Rooms=40ft, pages=4000, proclib=50 Which is invalid parameter? a. Line b. Page c. Proclib d. Rooms 13. Check the file status 02 in cobol a. dup key b. No record found c. Opening the file problem d. Closing the file problem 14. RESTART parameter particular RD a. RD=NP b. RD=R c. RD=RNC

15. Difference b/w ESDE & LDS ? a. Both ESDE & LDS deletion not possible b. ESDS used for and LDS used for storing table space 16. One question from SORT in File aid a. Only key field is used for KSDS I cant use any other key for sort b. for RRDS only Relative Key is used for SORT c. Using KEYS parameter in SORT 17. I created one KSDS and alternate index for that KSDS.I want to restrict the duplicate values can be given only 10. What parameter is used for restriction. a. Keys b. Update c. Upgrade d. Key Ranges e. Unique Keys 18. A Jobs output is not processed in SYSOUT (T/F) 19. //Job card //Step1 EXEC PGM=ABC, COND= (8, LT) // Step2 EXEC PGM=DEF, COND= (8, LT) // Step3 EXEC PGM=XYZ, COND= ( (4,LE),(12,EQ)) // Step4 EXEC PGM=PQR, COND=((8,LE),(16,EQ)) If step1 return code 4, then what are the steps get executed 1. Step2,Step3,Step4 2. Step4 3. Step2,step4,step1 4. Step2,step4 20. ERASE parameter in define cluster Ans: It will erase DATA component and filled with zeros 21. Consider the following 1. VSAM KSDS files can have only one primary index 2. VSAM KSDS files can have only one alternative index 3. Stmt1 is true and stmt2 is false 22. Consider the following //Job Card //ABC PROC SYSTEM=ABC, UNIT=SYSDA //Step1 Exec PGM=IEFBR14 //DD1 DD DSN=.

//ABC PEND //STEP1 Exec PROC = ABC What type of procedure a. Instream Procedure b. Catalog Procedure c. System Procedure d. System Library 23. Check the wrong step in the following JCL by checking syntax Ans : a.Step1 b.step1 & step2 c.step3 & step4 24. What dataset name you will give to browse a VSAM KSDS name Ans : Cluster Name 25. Given the JCL stmts //STEP1 EXEC PGM=PRINT //ALPHA CNTL * PROGRAM CONTROL STMT FOLLOW //PRGCNTL PRINTDEV BUFNO=20,PIM SG=YES,DATAACK=BLOCK //OMEGA ENDCNTL //AGAR DD UNIT AKP1, What parameter you need to add to the last stmt to set AGAR Dataset with ALPHA control stmt? a. CNTL=SET=*.ALPHA b. SET=CNTL=ALPHA c. CNTL=SET=ALPHA d. CNTL=ALPHA e. CNTL=*.ALPHA 26. What would be DCB parameter for the following code? //DD2 DD DSNAME=BAL,DISP=OLD //DCB=(RECFM=F, LRECL=80, BLKSIZE=80) //DD3 DD DSNAME=CHANN,DISP(,CATLG,DELETE),UNIT=3400-b //LABEL=(,NL),VOLUME=SER=663488,DCB=*.DD2 ANS : DCB=(RECFM=F,LRECL=80,BLKSIZE=80) 27. Consider the following Three datasets contains members as follows Dataset1 contains A,B,F members Dataset5 contains A and C members Dataset6 contains B,C and D members Consider the following use of IEBCOPY

//Copy Job //jobstep exec pgm=iebcopy //sysprint dd sysout=* //in dd dsname=dataset1, //in5 dd dsname=datatset5, //out2 dd dsname=dataset2, //in6 dd dsname=dataset6, //sysin dd * Copyoper copy outdd=out2 Indd=in1 Indd=in6 Indd=in5 /* a. All members in dataset6 are lost when dataset deleted b. Member a is found, but is not copied dataset1 because dataset1 already has a member named a and the replace option is not specified for member A c. Since replacement not specified B d. Not copied to dataset2 28. One question uses both IEBGENER & IEBCOMPR. The following code //Jobcard //step1 exec pgm=iebgener //sysut1 dd dsn=____,disp=(old,pass) //sysut2 dd dsn=____,disp=(,pass,delete) //sysin dd dummy //step2 exec pgm=iebcompr //sysut1 dd dsn=*.step1.sysut1,disp=shr //sysut2 dd dsn=*.step2.sysut2,disp=(old,keep) //sysin dd dummy a. Sysin dd dummy is coded so not valid 29. Another question is iebupdate and check for update parameter in dd statement.some program format //job card //step1 exec pgm=iebupdate //dd1 dd dsn=_____,update=yes //dd2 dd dsn=____,update=inplace //dd3 dd dsn=____,update=inplace 30. Go through the definition for free space parameter 31. Cisz=4096 Freespace=(10 10) Keys=(6 0)

a. Cidf takes 4 bytes and rdf takes 3 bytes b. Cidf takes 3 bytes and rdf takes 4 bytes c. 10 % of freespace in 4096 i.e:401 space will be free 32. Gdg question I created one gdg with 5 members for that.for example Tchn350.abc.gdg And I like to create 6 member then which will be created a. tchn350.abc.gdg.g0006v00 b. tchn350.abc.gdg(+1) 33. Repro command question Repro < >,< > ________(Empty,delete,replace) I need empty dataset, which option to use? 34. When i am using alternate index,how could I mention in the JCL, in cobol-Jcl program a. Base cluster and Alternate index b. Base cluster and path c. Base cluster only d. Base cluster and data component 35. What compiler option is used to view the source code of cobol1 program, by using through the PARM parameter Ans : SOURCE 36. If I want to improve the performance of JCL what I want to do? a. Performance cannot improved b. Reorganize the dataset c. Build index 1. JCL statement not allowed in procedure where are the JCL statement JOB, JOBLIB, JOBCAT, /* ,NULL, DATA &any JES&JES3 stmt 2. Seq file how many extends ps-16 3. Vsam 123 ent 4. Not cat -> already existing or duplicate catalog entry exist 5. SOC7,S04 6. SB37,SD37,SE37 7. How to override a condition Ans : cond.stepname=value 8. 0M , 0k takes available space in memory 9. ++ - instream procedure overriding 10. Xx catalog procedure overriding 11. Steplib, joblib 12. Job overrides step region/time 13. How to change the default proclib Jcllib order=(me.mylib,sys1,proclib) 14. JCL to execute a job by 7 am on Jan 20,1986 //step1 exec pgm=pgm1,main deadline =(0700,B,012086) 15. RCT 16. DB2PM batch performance monitor for DB2

17. 32760 max blocksize for a tape 18. Job can contiguous execute for 248 days 19. 1 block=32 kb of formatted memory Or 42 kb of unformatted memory 6 blocks= 1 track 15 tracks=1cylinder 20. Space allocated for PS by OS is 56 KB 21. If you want to concat dd statement Dataset, same type(disk or tape) LREC,RECFM, large blksize 22. We cant edit or browse GDG on tape -> True 23. EIBCURPOS get cursor position in CICS 24. What is the use of upgrade option Ans : when the data in base cluster is updated the corresponding AIX data is also updated 25. PARM 100 char max length 26. What is the use of start command Dynamic 27. IEBHPROGM Rename the dataset 28. Restart = * Restart job from the first step JCL QUESTIONS (Module Questions) 1. Export is used for Ans : Copy one vsam data component to other vsam data component. 2. Which of the following will satisfy the below listed criterias, in GDG criterian. Criterias : - limit is 255. - All the dataset will be uncataloged when it exceeds the limit. - DSCB is to be removed from the catalog. Ans: //sysin dd * define GDG(limit(255)empty scratch) Which of the following corrects the error in given code //step1 exec pgm = iefbr14 //dd1 dd dsn=tchn94.mf004.mf004.abc, disp=(new, catalog, delete), // dcb(lrecl=100, blksize=800,recfm=fb), unit=1093 // space = (1,1)rlse, cyl) Ans: Space=(cyln,(1,1), rlse) 3. Use of DFSORT 4. To list the source program in the compilation listing, which option is used at the time of compilation. Ans: SOURCE 5. Cisize is 4096, rec1 1000bytes, rec2 1200bytes, rec3 is 1000bytes, rec4 800 bytes. Now I want to insert 1000bytes rec. What will happen? Ans: Both CI and CA splits occurs. Which of the following command is used when a system error occurs while closing VSAM file and it is subsequently unavailable.

Ans: VERIFY 6. What are the valid statements regarding Referback and override? Ans: a. override option can override the defined dataset. b. referback option is a reference to earlier dd statement 7. Which command is used to check the status of the VSAM dataset if a job is terminated and the VSAM dataset is not closed properly? Ans: VERIFY 8. Records can be added to end of ESDS in extend mode. Ans: True 9. //Jobcard //PROC1 PROC// //PROC1 PEND //STEP EXEC PROC=PROC1 Ans: Instream procedure. 10. Time abend code? 11. How can job send a status message to a TSO user at the completion of the job? Ans: Notify 12. While in a KSDS, we have an alternate index. Build index is missing. What will happen while searching a record? Ans: a. Build index will be created while processing. b. Search option will done based on primary key. c. It will throw an error due to missing build index. (Probably option b is correct.) 13. There are 14 generations in all. How will you refer 5th generation? Ans: a.(-9) b.(+5) c.(+9) d.(-5) (Correct option is -9) 14. To rename a dataset which utility is used? Ans: IEHPROGM. 17. 1. KSDS has only 1 primary key.(True) 2. KSDS has only 1 alternate key.(False) 18. Alternate index key is possible for Ans: ESDS and KSDS. 19. Valid jcl symbols: Ans: //* and /* 20. Which Symbol is used for IEBUPDATE? Ans: ./ There was a question on RRDS related to the DB2. 21. If we want to assign alternate name, what shall be the correct syntax? Ans: 1. ./ ALTERNATE name 2. ./ CHANGE name 3. ./ ALIAS name

4. ./ OTHER name
1. Purpose of Export?

a)copy the VSAM ds to another VSAM ds. b)VSAM to Seq. c)VSAM to RRDS d)VSAM to ESDS 2. Jcl statements contains a value designed to direct and control the execution, this is called as PARAMETER. 3. One IDCAMS JCL step comprises a Delete cluster, Define cluster, REPRO. When it is compiled. It returns a RC 8 for delete, RC 0 for Define and RC 4 for REPRO. Which RC will be notified to the User. ANS: 8 (Max code will only be displayed) 4. Which JES2 statement is used to assign a Priority. ANS: /* Priority 5. Which of the following will satisfy the below listed criterias, in GDG creation. Criterias: - limit is 255. - all the dataset will be uncatalogged when it exceeds the limit. - DSCB is not to be removed from the catalog. ANS: //sysin dd * define GDG(limit(255) noscratch empty) 6. PROC: // dd1 dd DSN=henko.&country.n.&data..data(&month) Main JCL: // step1 exec proc country=india,data=sales,month=jan What value will be assigned to the DSN im the above PROC? Ans: DSN=henko.indian.sales.data(jan) 7. What are the possible parameters while doing a BLDINDX? ANS: (i) //sysin dd * Ifile(dd1) ofile(dd2) sortml(all) (ii) //sysin dd * IDS(tchn08.mff004.esds) ofile(tchn08.mff004.esds.aix) sortmessagelevel(all) 8. Choose the valid JES2 parameter in /*jobparm a) Purge=none b) Sysprint=x
c) Copies=59

d) Linect=5 e) Room=3456 9. Which of the following statement corrects the error in the given code: //step1 exec pgm=iefbr14 //dd1 dd dsn=tchn94.mf004.abc, disp= (new, catlg,delete), // dcb=(lrecl=100,blksize=800,recfm=fb), unit=1093, // space=((1,1),rlse,cyl) a) Disp= (new,catlg,dlt) b) Space=(cyln,(1,1), rlse) c) Unit=sysda 10. Which of the following option is used in Dfsort to retrieve only the unique records. ANS: Sum fields= NONE 11. What will be added in the Spool JESJCL columns 1 to 3, when a catalog proc is submitted, ANS: xx 12. COND= (code,le) When will the satement execute. ANS: If RC < CODE 13. Which parameter is used to select a INITIATOR D? ANS: CLASS = D 14. To solve a VSAM space problem wat are the steps involved? ANS: step 1: Create a new VSAM DS with a large space. Step 2 : Copy the old DS to New DS. Step3 : Delete/Rename the old DS. Step 4 : Rename the new DS with the Old DS. 15. In ISPF TS-> f -> f->1-> AIX. Wat will be displayed? ANS: Primary key with alternate key. 16. Use of Dfsort (choose 2) a) merge two or more files into one single file. b) select a subset of records from the input file. c) sort the records ascending or descending wihtin a dataset. d) sort the member of PDS. 17. Purpose of rewrite and write 18. IF RC=4 THEN /*COMMENT*/ CONTINUE ELSE /*COMMENT*/ STEP1 Find the errors in the above code. ANS: Continue is not valid in JCL

19. Input file Output file 1-3 10-12 4-11 20-27 12-15 16-19 16-17 Zeroes 18 5 19-22 Sum Using DFSORT reformat the input file with the above conditions. ANS: OUTREC fields= (10,3,20,8,16,4,2z,5,1,csum) 20. In RRDS, where we ll code the freespace? A) data B) Cluster c) Index d) Freespace is not applicable for RRDS 21. Choose the compiler directives statements a) copy b) skip c) control d) adata e) ssrange 22. In COBOL 85 we can access only Index and Relative files? True/ false 23. Use of IEBGENER a) to create a backup of seq ps, member of a pds, hfs, pdse. b) print the seq ps, member of a pds, hfs, pdse. c) Expand the existing member of a pds to create a new member. d) Entire job and JES2 statements are selected by IEBGENER 24. In a VSAM KSDS file the key length is 4. First 2 bytes contains class number, next 2 bytes contains student number. To fetch the class starting from 02, what are the steps involved? 1) access mode is dynamic 2)move 02 to first 2 bytes,move low values to last 2 bytes 3)start command with greater than the key 25. In a generic key process, there is no key in the KSDS file, then which file status you will get? ANS: 23 26. Key(8,24) wat is the lenght of the key? ANS: 8 27. What is the purpose of //XMIT <jobname> ANS: To transfer the data from one node to a remote node. 28. Order of Job Execution is determined by Ans: JOBCLASS and PRTY 29. DD in the PROC can be overwritten in the main JCL is done by, Ans: //PROCStepname.ddname dd dsn= 30. If / then/ else/endif, can be nested upto 15. 31. Records will be appended when i am using, ANS: ESDS 32. For changing the existing name of the cluster, which command is used. a)alter

b)change c)modify d)alias 33. /*jobparm lines=60, room=4222,time=50,proclib=proc03,copies=5 What is the equivalent for the above stmt. Ans: /*jobparm l=60, r=4222,t=50,p=proc03,n=5 34. What is the purpose of the freespace is in KSDS Ans: Future Insertion. 35. To list the source program in the compilation listing, which option is used at the time of compilation. ANS: SOURCE 36. //dd1 dd disp= (mod,del,del) // spaces=(trk...) Wat will happen? ANS: file is created and deleted at the end of this step. 37. Cisize is 4096, rec1 1000bytes,rec2 1200 bytes, rec3 1000bytes, rec4 800 bytes. Now inserting 1000 bytes rec. Wat will happen? ANS: Both CI and CA splits occurs 38. //step1 exec pgm=submit, tape=2400,name=sys1 //dd1 dd dsn=&name..p,unit=&tape.2 Wat is the value of the dsn,unit? Dsn=sys1.p unit=24002 Question :-2 1. Why are we using File status? 2. To check after every open and close. How can we create GDG?

DEFINE GDG (GDGNAME) EMPTY|NOEMPTY SCRATCH|NOSCRATCH 3. You are generating a generation in a step as (+1). In the following steps, How will you refer that generation. For creation of generation, (+1) To refer it in the following steps, (+1) 4. What is the DUMMY utility? IEFBR14 5. Which one indicates end of job? // 6. What can a PATH do? REFERENCE BASE CLUSTER FOR AIX. EACH AIX HAS ONE PATH. NUMBER OF AIX IS 253. Ibm RECOMMENDS ONLY FIVE. 7. About IEBUPDATE.(ONLY 80 BYTES OF DS CAN BE UPDATED)

UPDATING MEMBERS. TO UPDATE, WE HAVE CHANGE. REPLACE IS USED TO REPLACE AND DOESNT COME WITH CHANGE.

8. JES2 and JES3 statements. /* JES2 //* JES3 PRIORITY IS 14 ONLY FOR ENDING DATASET IN JES3, //*END DATASET 9. To browse in FILE MANAGER?
10.

TS -> F -> F, CHECK IT OUT. In the following which one is not a JOB parameter?

EXEC. 11. What does FILESTATUS OR ERROR CODE 24 mean? 12. EXTEND MODE is only for which kind of dataset? ESDS 13. To start at any record, from that point, retrieve all records Which mode is used in COBOL? DYNAMIC 14. What are the operations can we do in ESDS? READ, WRITE, RE-WRITE 15. To print the statements in SPOOL area, Which UTILITY is used? IEBGENER 16. About COBOL compiler options. SOURCE TO PRINT THE PROGRAM. NOSOURCE DONT PRINT THE PROGRAM, DEFAULT LIST LIST ALL THE ASSEMBLER LIST LIB, NOLIB COPY ONLY WORKS WITH LIB FOR DYNAMIC CALL - USE DYNAM KEYWORD APOST TO INCREASE NUMERIC CONTENT
17.

About GENERATE keyword

GENERATE MAXNAME=> MAXGPS = 2, THERE IS NO KEYWORD LIKE CREATE. 18. Which access method is default one?

KSDS IS DEFAULT, KEYS(64,0) DEFAULT CONTROL INTERVAL IS 20KB 19. To find how many records are deleted which IDCAMS function is used? LIST CAT NAME HISTORY VOLUME | ALL
20.

Which is the DEFAULT FORMAT while printing VSAM files using IDCAMS? DUMP COMBINATION OF CHAR AND HEXA.

21. PROC A STEPA1 PROC B STEPA2 PROC B STEPB1 PROC C STEPB2 PROC C STEPC1 STEPC2 If steps of the PROCC or invoking steps ABENDS, From which step will you code restart? //JOB //STEP1 EXEC PROGA, RESTART = STEP1.PROCB.STEP2.
22.

When sorting the records, how can u erase the duplicate records?

SUM FIELDS = NON (TO ERASE DUPLICATES) SUM FIELDS = ALL (WITH THE DUPLI) SUM FIELDS = (NONE, XSUM) XSUM IS A DATASET CONTAINING DUPLICATE VALUES. 23. Question no 19. in Question 1. ABOUT OUTREC. 24. Without using IDCAMS, we have to mention the ORGANISATION TYPE using, RECORG = ES =KS =RS

=LDS 25. ABOUT ABEND CODES. 26. IF RC = 4 | RC = 8 | RC = 10 | RC = 12 4, 8 , 10, 12 1) A KSDS has an alternate index but the buildindex was not done for the alternate index cluster.

When I start accessing the KSDS cluster via alternate index(by specifying path in run jcl) what happened ? Ans, no records are processed, (Records not Processed) MAXCC=0 OPEN STATUS = 90, READ STATUS = 47, CLOSE STATUS = 42 2) S913 - You are trying to access a dataset which you are not authorized to use. (and if you need access to a dataset you have to obtain from RACF authority) ----------------------------------------------------------------------------------------------------------------------------------------------VALID COMMANDS FOR FORMATTED SELECTION IN FILE-AID CAPS Use CAPS OFF to establish exact case testing for character fields. Default CAPS ON provides tests for any case and translates entered lowercase characters to uppercase. DISPLAY Control fields displayed and format of fields. END Return to the Selection Criteria Menu screen. SHOW Control information displayed in center column (OFFSET, FORMAT, PICTURE). OFFSET Control format of offset shown (COLUMNS, RELATIVE, HEX). OPTIONS Jump to Selection Criteria Options screen. UNFMT Jump to Unformatted Selection Criteria screen. ZERO Control zero suppress for numeric fields. SHOW COMMAND SHOW Control information displayed in center column (OFFSET, FORMAT, PICTURE). COMMAND SHOW MODEFMT, VFMT LANGUAGECOBOL, PL/I CONTROL COMMANDS FOR SHOW LEVEL, NUMBER, FORMAT, OFFSET, PICTURE information

SHOW PICTURE Change center column heading to PICTURE and information for each field to show the data declaration Abbrev: S P. SHOW FORMAT Change center column heading to FORMAT and shows the length and format of each field Abbrev: S F. SHOW OFFSET Change center column heading to COLUMNS and show the offset of each field relative to byte 1 Abbrev: S O. SHOW LEVEL Change left column heading to FIELD LEVEL/NAME and show the hierarchical level number Abbrev: S L. SHOW NUMBER Change left column heading to FIELD NUMBER/NAME and show the system-assigned field number Abbrev: S N. 3) Select the correct option when SHOW was given in file-aid.(the above mentioned are the correct option) ANS,= PICTURE, FORMAT, OFFSET, LEVEL AND NUMBER Reversing Changes (UNDO) You can use the UNDO primary command to reverse the last change you made to your records. All changes are reversible, including: Typing over data and pressing <Enter> CHANGE command DELETE command COPY and MERGE commands C, D, R, and M line commands ( shift left ) shift right. More About the UNDO Command The SETUNDO OFF command can be issued to disable UNDO processing. This might be used to improve performance when performing large changes (CHANGE ALL, DELETE, COPY etc.). 4) For which of the following UNDO command works?(works for above mentioned list) Ans, typing over data and press enter,CHANGE,DELETE, COPY & MERGE, line command such as C, D, R & M, (shift left, ) shift right. 5) While working with the catalog you may get different kind of error message they are: 1. Consider that the dataset already exist in a catalog and the normal disp=(,catlg)

Then you will receive the ERROR MESSAGE as THE DATASET WAS NOT RECATALOGED 2. IF NO CATALOG entry exists for the dataset name (ie the dataset is not cataloged) and if you provide Unit, Volume, Recording mode or Density then the data set will be cataloged 3. Consider the catalog entry exist for a dataset (ie the dataset is already cataloged) on normal disp=(,uncatlg) The system will uncatalog the dataset. 4. When NO CATALOG entry exist for a dataset(ie the dataset is not cataloged) and on normal disp=(,uncatlg) is given then you will receive the ERROR MESSAGE stating that THE DATA SET WAS NOT UNCATALOGED

Use of Deadline Scheduling The purpose of deadline scheduling is to help JES3 use available resources best. For example, if you work first shift and submit a job at the end of the day, you do not need output until the next morning. Specify 7 a.m. of the next day in the DEADLINE parameter and assign the job a low priority. JES3 can schedule the job any time during the night when the resources are available. But, if the job has not been scheduled by several hours before 7 a.m., JES3 increases its priority. JES3 will increase the jobs priority periodically until it is selected for execution by 7 a.m. Examples To execute a job by 7 a.m. on January 20, 1986, code: //*MAIN DEADLINE=(0700,B,012086) The syntax changes slightly if you specify a date on or after the year 2000. To execute a job by 7 a.m. on January 20, 2000, code: //*MAIN DEADLINE=(0700,B,01/20/2000) Use of Periodic Scheduling The purpose of periodic scheduling is to run certain weekly, monthly, or yearly programs automatically. Examples To execute a job by 2 p.m. every Friday, code: //*MAIN DEADLINE=(1400,A,6,WEEKLY)

6) Choose the invalid job names Ans, //^F&I(RST JOB SAMPLE JOB (the only special character allowed is ($, #, @) ) 7) Where does the nume field in the jcl starts Ans, 3rd column

8) A. B. C. D.

Which of the following is a JES3 operator in job stream //* COMMAND CONSOLE STATEMANT OPERATOR-------------------------------------

9) What are the parts of index components Ans, Sequence set and index set 10) Temporary Datasets are represented as Ans, && (as the prefix in DSNAME ) 11) What are the features or functions of IEBEDIT? Ans, Copy pds,pdse and Create pds, pdse, sequential optput dataset and Edit and copy a job stream, a sequential data set 12) If VSAM file terminates abnormally and it did not close properly, what do you do ? Ans, Run VERIFY command using idcams utility 13) 1. If you have high freespace we have more I/O 2. If you have low freespace we have more CI Split Ans, Both statements are TRUE 14) Which of the following is true A. ESDS maintains CI while LDS does not--------------------------B. ESDS process record sequentially while LDS is process by DB2 for tablespace----------C. ESDS can delete records while LDS cannot D. ESDS has no index while LDS also the same 15) Which of the following are compiler options. A. DSORG B. ADATA------------------C. OPTCD D. SSRANGE------------E. KEYLEN F. OPT--------------G. NOOPT-------------16) //AMC0U08A JOB 'A123',NOTIFY=&SYSUID,RESTART=AS1.BS2 //C PROC //CS1 EXEC PGM=IEFBR14 //DD1 DD DSN=LEM0U08.ANNU.SAMPLE,DISP=OLD

// PEND //B PROC //BS1 EXEC PROC=C //BS2 EXEC PGM=IEFBR14 //DD2 DD DSN=LEM0U08.ANNU.SAMPLE,DISP=OLD // PEND //A PROC //AS1 EXEC PROC=B //AS2 EXEC PGM=IEFBR14 //DD3 DD DSN=LEM0U08.ANNU.SAMPLE,DISP=OLD // PEND //STEPP1 EXEC PROC=A If the JOB abend at BS2 then it can be restarted by specifying Ans, RESTART=AS1.BS2 in the JOB card Defining a Path The DEFINE PATH command is used to establish the relationship, the path, between an alternate index and its base cluster. A path does not occupy any data space; it is a catalog entry only. The base cluster and its alternate index must already be defined when you define the path that relates them. When your program opens a path for processing, both the alternate index and its base cluster are opened. When data in the base cluster is read or written using the path's alternate index, keyed processing is used; RBA processing is not allowed. You can also establish a path directly over a base cluster, without an intermediary alternate index and with its own protection attributes. A path so defined provides access for a file under another name. You can specify NOUPDATE access for the base cluster, which bypasses allocation of the base cluster's upgrade set and thus does not cause upgrading. BUILD INDEX Build the alternate index either yourself or by means of the BLDINDEX command. The IDCAMS routines then perform the following operations: a. Extract the alternate key and the prime key or RBA from every record of the base cluster during a sequential scan through the base cluster. b. Order the extracted alternate keys, together with the associated pointers, by the alternate keys. c. Build the alternate-index records from the ordered key and associated pointers. (Records with the same alternate key are merged into a single alternate-index record.) d. Build the alternate index from the individual alternate-index records as a key-sequenced file.

17) What do SCRATCH do ? Ans, SCRATCH is the sub parameter of DELETE command in IDCAMS utility It is used to remove the entry for nonVsam dataset from the Catalogue As well as its label form the VTOC(ie both the catlg entry ane the file is deleted). 18) //AMC0U08A NJOB 'A123',NOTIFY=&SYSUID //CS1 EXEC PGM=IEFBR14 //DATA1 DD DSN=LEM0U08.ANNU.SAMPLE,DISP=OLD //DATASET01 DD DSN=LEM0U08.ANNU.SAMPLE,DISP=OLD What is the error in above code ? Ans, 1. In JOB CARD the character N is used 2. label name exceeds 8 characters in 3rd line

19) Consider the job is running the producing output in number of lines if you want to get the output till before the job had completed ? Ans, You have to use OUTPUT statement As //OUTDS3 OUTPUT CKPTLINE=24,CKPTPAGE=1 20) What is the syntax of jcl statement? //<namefield> <operation field> <operand field> <comment-field 73-80> 21) Consider the statements below 1. It is possible to browse RRDS by using TSO commands 2. It is possible to Edit RRDS by Ans, Both the above mentioned statements are FALSE 22) Using IEBGENER it is possible to copy data from TAPE to VSAM? FALSE Ans, When you use VSAM dataset in IEBGENER the dataset is not recogonized

//PROCB PROC //BSTEP1 EXEC PROC=PROCC //CSTEP1.CSTEPID1 DD DSN=ALPHA.BETA.DELTA,DISP=OLD //CSTEP1.CSTEPID2 DD SYSOUT=A // PEND //PROCA PROC

//ASTEP1 EXEC PROC=PROCB //BSTEP1.BSTEPID3 DD DSN=GEORGE,DISP=OLD // PEND 23) From the above code, What does BSTEP1.BSTEPID3 MEAN ? Ans, It is an invalid statement at this context it means invalid addition to procedute PROCB because you are trying to add a dataset to the exec statement which calls a procedure it can be done only for the program 24) In a KSDS the record length is 128 Which of the following cab be the size of CI (choose 3) A. 8192--------- B. 4096---------------- C. 512------- D. which is not multiple of 512 25) Choose the valid file status (check option) A. 10 B. 00 C. 93 D. 90 ALL ABOVE ARE VALID FILE STATUS 26) Without regard of previous step whether it executes successful or not, I want to execute all the steps in JOB which of the following are valid? A. COND=(4096,GE) B. COND=(0,NE) C. COND=(0,GE) D. COND=(4089,LE) E. COND=(4095,LT)--------------(the condition code will be evaluated as 4095 < RC if the return code of the previous step is any value of 0 thru 4095 the condition will become false and the step will execute the mainframe will not produce the condition code greater than 4095) 27) When you specify COND=EVEN Irrespective of whether the previous step terminates normally or abend The ob step will execute And If I have multiple condition like this COND=((4,LT),(12,GE),(0,NE)) Like vise I can code up to 8 condition here if any one of the condition is satisfied the step will bypass 28) You need to allocate with primary 100 blocks extension of 20 blocks and block size being 80 bytes Which of the following space parameter will you include in the above JCL? A. SPACE=(100,(80,20)) B. SPACE=(TRK,(100,20)) C. SPACE=(20,(100,80))

D. SPACE=(80,(100,20))----------------------(because the first parameter is 80 bytes blocks) 29) a. Define is used to create Alternate index b. Buildindex is used to fetch keys into AIX c. Define is used to build path. Ans, a,b are TRUE c is FALSE 30) SYSOUT is used to process output dataset ---- TRUE (An external writer is a started task used to process output. //MYOUTPUT DD SYSOUT=(A,XTWTR)) 31) IDCAMS is used to create both VSAM AND NON-VSAM FILES. TRUE 32) Which utility is used to print and punch Sequential and Partioned dataset ? IEBPTPCH 33) In order to open file-aid or file manager from the ISPF/PDF menu you will be using the option. TS F F (TS F F 1 This option is used to browse a VSAM dataset) 34) Consider initially there was a KSDS for that you are created AIX and you are building it by using BLDINDEX command after doing all these you are deleting the KSDS cluster then when you try to read a record what happened? Ans, FILE NOT FOUND ( FILE STATUS 35) (NOTE : Consider KSDS has AIX and PATH When you delete PATH then PATH alone gets deleted When you delete AIX then along with AIX, PATH will also gets deleted When you delete KSDS then along with KSDS, AIX and PATH will also gets deleted) 35) S804 or S80A - if the requested REGION is not enough S822 - If requested REGION is not available on your system 36) How can we restrict a job time as CPU time 530 A. LIMIT(5,30) B. CPUTIME(5,30) C. TIME(5,30)-----------------------------

37) There is a file of 1000 records whose LRECL = 46. How it is specified? A. MEMORY=(60,(46,100)) B. SPACE=(46,(100,60))--------------------------C. SPACE=(100,(46,60)) ( because the logical record length is 46 each record will take 46 bytes so we have to specify block size as 46 bytes as the first parameter and inorder to have 100 records it can be achieved by the extension of primary and secondary) 38) A file on which input and output operation can be restricted, is specified as A. //FILEOUT DD DUMMY-----------------------B. //FILEOUT DD SUSPEND C. //SYSOUT DD HALT (there is no suspend and halt on the dd statement.the dummy can be also specified as dsn=nullfile --- in dd statement *,data,dummy and dynam are the positional parameters 39) After doing the sorting operation if you want the output to be transferred to two different files which is specified In the JCL as this //A DD DSN=OUTFILE1,DISP=OLD //B DD DSN=OUTFILE2,DISP=OLD Then in the control card you will specify as A. OUTFIL FNAMES=(A,B)-------------------------------B. OUTFIL DATASET=(A,B) The Utility used to produce a test pattern ( ie debugging aid tool) -- IEBDG (IEBDG Create a test data set consisting of patterned data)
40)

41) A KSDS file is having primary key as 9 bytes length , Alternate key length is 4 bytes and the alternate index is going to contain 200 duplicate. Then what is the minimum and maximum record size ? Ans, 18 minimum 1809 is maximum ( formula for duplicate aix is (5+length of aix key + (n * length of primary key)) where n is number of duplicates) 42) AMS can be coded inside member of PDS TRUE. ( AMS means Access method service for IDCAMS it can be coded and executed inside the member) 43) Which VSAM file does not support AIX? -- RRDS 44) Freespace of the dataset will be displayed using. A. VERIFY B. LISTCAT----------------( using idcams utility when you specify LISTCAT ALL it will display the amount of freespace in bytes for vsam dataset) 45) Stmt1: REPRO is used in case of unusable VSAM dataset ------ TRUE

Stmt 3: EXAMINE is used to inspect VSAM dataset structure. ---------- FALSE (there is no such keyword call examine and repro can be used for any dataset) 46) The command used to print output at remote location at DETROIT? Ans, //REMOT1 OUTPUT DEST=DETROIT 47) Consider a procedure is called like this //STEP1 EXEC PROC1,SYSTEM=MANDIR,STD=VIJAY,STUD=MATHS And a dd name inside the procedure is given like //DD1 DD DSN=BALA.VIDYA.&SYSTEM..&STUD(&STD) When you pass symbolic parameter to this procedure it becomes Ans, BALA.VIDYA.MANDIR.MATHS(VIJAY) 48) The Record out of sequence file status is 21 (this happens when you try to write records sequentially for KSDS cluster by supplying unordered key value)
49)

JOB execution flow is INPUT EXECUTION OUTPUT PRINT --------- FALSE (execution flow is input conversion execution output print or purge)

50) JOB is the execution of one or more related programs in sequence ---------- TRUE 51) When a new generation is created in one step1 and if you want to refer the same generation in the next step then it can be refered as .? Ans, (+1) as a relative reference 52) Condition code for the step to be executed always irrespective of the previous step? Choose- 3 Ans, COND=(4095,LT) , COND=(0,GT) AND COND=EVEN (all 3 are write answers) 53) Consider the following //JOB1 JOB NOTIFY=&SYSUID //* //ABC PROC SYSTEM=ABC,UN=SYSDA //* //STEP1 EXEC PGM=IEFBR14 //DD1 DD DSN=&SYSTEM,UNIT=&UN //* //ABC PEND //STEP1 EXEC PROC=ABC //

What type of procedure is the mentioned above? Ans, INSTREAM PROCEDURE 54) Given the JCL stmts //STEP1 EXEC PGM=PRINT //ALPHA CNTL * PROGRAM CONTROL STMT FOLLOW //PRGCNTL PRINTDEV BUFNO=20,PIM SG=YES,DATAACK=BLOCK //OMEGA ENDCNTL //AGAR DD UNIT=AKP1, _____________ What parameter you need to add to the last stmt to set AGAR Dataset with ALPHA control stmt? f. CNTL=SET=*.ALPHA g. SET=CNTL=ALPHA h. CNTL=SET=ALPHA i. CNTL=ALPHA j. CNTL=*.ALPHA

55) Consider the following code which uses both IEBGENER & IEBCOMPR //JOB1 JOB

//STEP1 EXEC PGM=IEBGENER //SYSUT1 DD DSN=ABC,DISP=(OLD,PASS) //SYSUT2 DD DSN=XYZ,DISP=(,PASS,DELETE) // SYSIN DD DUMMY //STEP1 EXEC PGM=IEBCOMPR //SYSUT1 DD DSN=*.STEP1.SYSUT1,DISP=SHR //SYSUT2 DD DSN=*.STEP1.SYSUT2,DISP=SHR //SYSIN DD DUMMY

// Choose 3 option A. SYSUT1 & SYSUT2 ARE OTUPUT DATASET IN STEP2 ----------FALSE(sysut1 and sysut2 are comparison input) B. SYSUT1 & SYSUT2 ARE INPUT DATASET IN STEP2 --------------TRUE C. SYSUT1 IS INPUT AND SYSUT2 IS OUTPUT IN STEP1 ---------------TRUE (it copies sequential file form source to dest) D. IN IEBCOMPR COMPARE TYPE ORG=PS/PO IS NOT GIVEN IT WILL NOT THROW ANY ERROR IT WILL COMPARE NORMALLY ------------- TRUE E. IN STEP2 BACKWARD REFERENCE IS DOEN FOR BOTH DATASETS ----------- TRUE F. BOTH THE UTILITY REQUIRES //SYSPRINT DD SYSOUT=* OTHER WIES THE OUTPUT WILL NOT BE PRODUCED BY BOTH THE UTILITIES

56) CONTIG in space parameter A. Primary space in contiguous records, blocks and tracks------------------TRUE B. Request primary space allocated only on contiguous tracks and cylinder ---------------------TRUE (contig allocation is for primary quantity irrespective or blocks, bytes, tracks or cylinder) 57) //JOB1 JOB

//STEP1 EXEC PGM=ABC,COND=(8,LT) //STEP2 EXEC PGM=DEF,COND=(8,LT) //STEP3 EXEC PGM=XYZ,COND=((4,LE),(12,EQ)) //STEP4 EXEC PGM=PQR,COND=((8,LE),(16,EQ))

If step1 return code is 4 and other return codes are 0 Ans, then STEP2,STEP3,STEP4 will execute

58) Which one is IEBGENER SYSIN CARD for creating 3 members from input ps file Ans, //SYSIN DD * GENERATE MAXNAME=3,MAXGPS=2 MEMBER NAME=MEMB1 RECORD IDENT=(8,11111111,1) MEMBER NAME=MEMB2 RECORD IDENT=(8,22222222,1) MEMBER NAME=MEMB3 /* // (this ctrl statement will create 3 members in the output pds and it will extract 2 groups from the input until it reaches the condition 11111111 for first member 22222222 for the second member and the remaining records will be inserted in the third member)

59) //SYSIN

DD *

DEFINE CLUSTER(NAME(TEST.KSDS)) : : KEYS(8,54) /* // What is the length of the key? Ans, 8

( the syntax for key is keys(length,offset) --- the default keys(64,0) -----offset is the position just before the starting location of the key)

1) Can a JCL program have more than one JOB card? Yes/ No 2) Is it mandatory to give the step name? Yes/ No 3) What utility is used to create a GDG? a) IEBGENERb) IEFBR14 c) IDCAMS

d) DFSORT

4) Can datasets of a different record length (LRECL) be concatenated? Yes/ No which parameter allows one to run a syntax check on the JCL without executing it? a) TIME parameter b) TYPERUN parameter c) CLASS parameter d) PARm parameter 5) what is the default for the disposition parameter? a) NEW b) OLD c) SHRd)CATELOG 6) How many instream procedures can a JCL has? a) 12 b) 15 c) 8 d) 55 7) which system completion code be issued when a load module cannot be found? a) SOC04 b) SOC01 c) 806 d) SOC07 8) Full form of SDSF? a) System Display Spool Facility c) Spool Display Search Facility b) Spool Display System Facility d) Spool Display Spool Facility

9) what is the MVS utility to like-edit a COBOL program? a) IKJEFT01 b) IGYCRCTL c) IEWL d) DSNHPC 10) How do you end the JCL? A) with //END b) with // c) with //NULL d) with JOB-END

11) How many bytes of data you can pass to the program using the PARM. a) 255 bytes b) 100 bytes c) 64 bytes d) 8 bytes 12) Consider the following code. //step1 // exec pgm=prg1

// //step2

exec

pgm=prg2, cond=only

On what condition prg2 will not get executed. a) only when the execution of prg1 is successul b) only when the execution of prg2 is not successful c) prg2 will not get executed at all d) prg2 will be executed irrespective of the execution of prg1 13) Limitation to concatenate the sequential datasets a) 16 b) 55 c) 255 d)222 14) In the following code //sysut1 dd dsn=xxxxxx.yyy.zzzzz, // disp=shr, // unit=sysda, what does SYSDA represents? a) All disk devises b) Name given for a disk device c) Tape device d) Main memory 15) The utility to delete a dataset a) IEBGENERb) IEFBR14 c) IDCAMS 16) The utility to catalog ad uncatalog the existing datastes a) IEBGENERb) IEFBR14 c) IDCAMS 17) Can a load module be housed in a VSAM dataset? YES/NO 18) If the dataset is full and no secondary disk space is available, the following error you will get a) B37 b) D37 c) E37 d) S) S0C7 19) The record format of load module library a) FB b) VB c) U d) V 20) To create a GDG you use the utility a) IEBGENERb) IEFBR14 c) IDCAMS 21) Cataloged procs should not contain PEND statement Yes/ No. 1. Many JCL statements contain specific values designed to direct & control the execution of the statement. What are these fields called ?

(1) Linkage Variables (2) Parameters (3) Control Libraries (4) Includes 2. Purpose of Export? a)copy the VSAM to another VSAM b)copy VSAM to Seq. c) copy VSAM to RRDS d)copy VSAM to ESDS 3. IDCAMS step have THREE COMMANDS: DELETE,DEFINE CLUSTER,REPRO... DELETE RC is 0 DEFINE CLUSTER Rc is 8 REPRO RC is 4 AFTER THE EXECUTION OF THE STEP WHICH RETURN CODE YOU WILL GET. a)0 b)12 c)8 d)4 4. WHICH JES2 STATEMENT is used to ASSIGN a PRIORITY a)./*priority b)./*signon c)./*jobparm d)./*setup 5. // IF RC=4 THEN /*COMMENT*/ CONTINUE

//

ELSE /*COMMENT*/

//STEP1 // ENDIF /*COMMENT*/

Find The Errors in the Above Code.. a). Comment cannot be coded after the statements b).CONTINUE is not a jcl statement c).no errors d).you cannot leave a space between // and IF. 6. Which of the following will satisfy the below listed criterias, in GDG creation. Criterias: - limit is 255. - all the dataset will be uncatalogged when it exceeds the limit. - DSCB is not to be removed from the catalog. a).//GDGCREAT JOB NOTIFY=&SYSUID //STEP1 EXEC PGM=IDCAMS SYSOUT=(A)

//SYSPRINT DD //SYSIN DD *

DEFINE GDG ( -

NAME (TCHNZZZ.GDG.BASE) LIMIT(255) NOSCRATCH EMPTY ) -

/* // b). ).//GDGCREAT JOB NOTIFY=&SYSUID //STEP1 EXEC PGM=IDCAMS SYSOUT=(A) DSN=TCHNZZZ.GDG.BASE,DISP=(,KEEP),

//SYSPRINT DD //MODEL1 DD

// SPACE=(TRK, (1,10),RLSE),DCB=(RECFM=FB,LRECL=80,BLKSIZE=800) //SYSIN DD *

DEFINE GDG ( -

NAME (TCHNZZZ.GDG.BASE) LIMIT(255) NOSCRATCH EMPTY ) /* // -

c). ).//GDGCREAT JOB NOTIFY=&SYSUID //STEP1 EXEC PGM=IDCAMS SYSOUT=(A) DSN=TCHNZZZ.GDG.BASE,DISP=(,KEEP),

//SYSPRINT DD //MODEL1 DD

// SPACE=(TRK, (1,10),RLSE),DCB=(RECFM=FB,LRECL=80,BLKSIZE=800) //SYSIN DD *

DEFINE GDG ( -

NAME (TCHNZZZ.GDG.BASE) LIMIT(255) SCRATCH NOEMPTY ) /* // -

d). ).//GDGCREAT JOB NOTIFY=&SYSUID //STEP1 EXEC PGM=IDCAMS SYSOUT=(A) DSN=TCHNZZZ.GDG.BASE,DISP=(,KEEP),

//SYSPRINT DD //MODEL1 DD

// SPACE=(TRK, (1,10),RLSE),DCB=(RECFM=FB,LRECL=80,BLKSIZE=800) //SYSIN DD *

DEFINE GDG ( -

NAME (TCHNZZZ.GDG.BASE) LIMIT(255) NOSCRATCH NOEMPTY ) /* -

// 7. Which of the following jcl is correct for bulding a BLDINDX?(CHOOSE 2) A). //BIX1 EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SORTWK01 DD SPACE=(CYL,(50,50)) //SORTWK02 DD SPACE=(CYL,(50,50)) //SYSIN DD *

BLDINDEX IDS(VSAMAIX.BIX.ESDS) ODS(VSAMAIX.BIX.AIX) SORTMESSAGELEVEL(ALL) /* B). //BUFSP EXEC PGM=IDCAMS //ESDS DD DSN=VSAMAIX.BIX.ESDS,DISP=SHR,AMP='BUFSP=500000' //AIX DD DSN=VSAMAIX.BIX.AIX,DISP=SHR,AMP='BUFSP=500000' //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SORTWK01 DD SPACE=(CYL,(50,50)) //SORTWK02 DD SPACE=(CYL,(50,50)) //SYSIN DD *

BLDINDEX IFILE(ESDS) OFILE(AIX) SORTML(ALL) /*

C). //BUFSP EXEC PGM=IDCAMS //ESDS DD DSN=VSAMAIX.BIX.ESDS,DISP=SHR,AMP='BUFSP=500000' //AIX DD DSN=VSAMAIX.BIX.AIX,DISP=SHR,AMP='BUFSP=500000' //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SORTWK01 DD SPACE=(CYL,(50,50)) //SORTWK02 DD SPACE=(CYL,(50,50)) //SYSIN DD *

BLDINDEX IDS(ESDS) ODS(AIX) SORTML(ALL) /* D). //BUFSP EXEC PGM=IDCAMS //ESDS DD DSN=VSAMAIX.BIX.ESDS,DISP=SHR,AMP='BUFSP=500000' //AIX DD DSN=VSAMAIX.BIX.AIX,DISP=SHR,AMP='BUFSP=500000' //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SORTWK01 DD SPACE=(CYL,(50,50)) //SORTWK02 DD SPACE=(CYL,(50,50)) //SYSIN DD * SORTMESSAGELEVEL(ALL)

BLDINDEX IFILE(ESDS) OFILE(AIX) /*

8. Choose the valid JES2 parameter in /*jobparm(CHOOSE 3) A). Purge=none B).Sysprint=x

C).Copies=59 D).Linect=5 C).Room=3456 9. Which of the following statement corrects the error in the given code: //STEP1 EXEC PGM=IEFBR14 //DD1 DD DSN=TCHN94.MF005.ABC,DISP=(NEW,CATLG,DELETE), // // DCB=(LRECL=100,BLKSIZE=800,RECFM=FB),UNIT=1093, SPACE=((1,1),RLSE,CYL)

A).DISP= (NEW,CATLG,DLT) B).SPACE=(CYL,(1,1),RLSE) C).UNIT=SYSDA D).PGM=IEBFBR14

10. WHICH OF THE FOLLOWING OPTION IS USED IN DFSORT TO RETRIEVE ONLY THE UNIQUE RECORDS. A).SUM FIELDS=NULL B)SUM FIELDS=UNIQUE C)SUM FIELDS=NONE D)SORT FIELDS=NONE 11. What will be added in the SDSF JESJCL columns 1 to 3, when a catalog proc is submitted, A).XX B).XX/

C).XX* D).X/X 12. COND= (code,le) When will the satement execute. a) If RC < CODE b) If RC > CODE c) If RC = CODE d) If RC>= CODE 13. Which parameter is used to select a INITIATOR D? A).INIT =D B).CLASS=D C).SYSINIT=D D).INITIATOR=D 14. To solve a VSAM space problem wat are the steps involved? Step1 : Delete/Rename the old DS. Step 2: Create a new VSAM DS with a large space. Step 3 : Rename the new DS with the Old DS. Step 4 : Copy the old DS to New DS. The order of steps A)2,4,1,3 B).1,3,2,4 C).3,4,1,2 D).1,2,3,4 15. In ISPF TS-> f -> f->1-> AIX. Wat will be displayed? A).ALTERNATE KEY andPRIMARY KEY B).ALTERNATE KEY

C).PRIMARY KEY and ALTERNATE KEY and all CONTENT from base D).ONLY POINTERS to base 16. Use of Dfsort (choose 2) A). merge two or more files into one single file. B). select a subset of records from the input file. C). sort the records ascending or descending within a dataset. D). sort the member of PDS.

17. Input file column 1-4 4-11 -------transfered to-- -------transfered to--

Output file column 10-12 20-27 16-19 Zeroes 5 Sum

12-15 -------transfered to-- 16-17 -------transfered to-- 18 -------transfered to--

19-22 -------transfered to--

Using DFSORT reformat the input file with the above conditions. A).OUTREC B).INREC fields= (10,3,20,8,16,4,2z,5,1,csum) fields= (10,3,20,8,16,4,2z,5,1,csum)

C).INCLUDE fields= (10,3,20,8,16,4,2z,5,1,csum) D).FORMAT fields= (10,3,20,8,16,4,2z,5,1,csum) 18. PROC: // dd1 dd DSN=henko.&country.n.&data..data(&month) Main JCL: // step1 exec proc country=india,data=sales,month=jan What value will be assigned to the DSN in the above PROC? A)DSN=henko.indian.sales.data(jan)

B) DSN=henko.country.sales.data(month) C) DSN=henko.indian.salesdata(=jan) D) DSN=henko.india.sales.data(jan) 19. In RRDS, where we ll code the freespace? A) data B) Cluster c) Index d) Freespace is not applicable for RRDS 20. Purpose of rewrite and write A).REWRITE and WRITE is used to override the existing record B).WRITE is used to write a new record in the file,REWRITE is used for override the new record. C). WRITE is used to write a new record in the file,REWRITE is used for override the old record. D). WRITE is used delete the old record,REWRITE is used for append the record

21. Choose the compiler directives statements a) copy b) skip c) control d) adata e) ssrange
22. In COBOL 85 we can access only Index and Relative files?

True/ false

23. . Use of IEBGENER(CHOOSE 3) a) to create a backup of seq ps, member of a pds, hfs, pdse. b) print the seq ps, member of a pds, hfs, pdse. c) Expand the existing member of a pds to create a new member. d) Entire job and JES2 statements are selected by IEBGENER e) Used to select the job or job step in the member. 24. In a VSAM KSDS file the key length is 4. First 2 bytes contains class number, next 2 bytes contains student number. To fetch the class starting from 02, what are the steps involved? A).access mode is dynamic B).move 02 to first 2 bytes,move LOW VALUES to last 2 bytes C).start command with greater than the key D).Access mode is RANDOM, READ WITH INVALID KEY 25. In a generic key process, there is no key in the KSDS file, then which file status you will get? A).10 B).23 C).02 D).00 26. Key(8,24) wat is the lenght of the key? A).32 B).24 C).8 D).64 27. What is the purpose of //*XMIT <jobname>

A).To transfer the data from one node to a remote node. B). To set a priority from one node to a remote node. C). To signon from one node to a remote node. D). To signoff from one node to a remote node. 28. Order of Job Execution is determined by A). JESMSGCLASS and DPRTY B).JOBCLASS and PRTY C).TIME and REGION D).JOBNAME and JOB Keyword

29. DD in the PROC can be overwritten in the main JCL is done by, A).//DDNAME.PARAMETER B). //PROCStepname.ddname dd dsn= C).//STEPNAME.PROC D).//STEPNAME.PGM 30. IF/THEN/ELSE/ENDIF CAN BE nested upto A).255 B).3273 C).15 D).IF STATEMENT CANNOT BE NESTED 31. Records will be appended when i am using, A).RRDS B).LDS C).KSDS D).ESDS

32. For changing the existing name of the cluster, which command is used. A).ALTER B).CHANGE C).MODIFY D). ALIAS 33. . /*jobparm lines=60, room=4222,time=50,proclib=proc03,copies=5 What is the equivalent for the above stmt. A). /*jobparm li=60, ro=4222,ti=50,pr=proc03,co=5 B). /*jobparm lin=60, rom=4222,tim=50,pro=proc03,cs=5 C). /*jobparm l=60, r=4222,t=50,p=proc03,n=5 D). /*jobparm le=60, rm=4222,tm=50,pr=proc03,c=5 34. What is the purpose of the freespace is in KSDS A).For ALTERNATE KEY B).For INDEXED Keys C).Future insertion D). For CIDF and RDF 35. To list the source program in the compilation listing, which option is used at the time of compilation. A). SOURCE B).LIST C).MAP D).COMPILE

36. //dd1 dd disp= (mod,del,del) // spaces=(trk...)

Wat will happen? A).File is created and deleted at the end of the job B).File is created and jcl places the cursor at the end of file (EOF) C). file is created and deleted at the end of this step. 37. Cisize is 4096, rec1- 1000bytes,rec2 -1200 bytes, rec3 -1000bytes, rec4- 800 bytes. Now inserting 1000 bytes rec. Wat will happen? A)CI Splits will occurs B)CA splits will occurs C)CI and CA Splits will occurs D)records will not inserted
38. //STEP1 EXEC PROC=SUBMIT,TAPE=2400,NAME=SYS1

//DD1

DD

DSN=&NAME..P,UNIT=&TAPE-2

Wat is the value of the dsn,unit? A).DSN=SYS1.P,UNIT=2400 B).DSN=SYS1P,UNIT=2402 C).DSN=SYS1.P,UNIT=2400-2 D).DSN=SYS1..P,UNIT=2398 39. Which column the name can be coded in JCL and what are all the national characters allowed? A).3 to 10 and %,*,B).3 to 10 and $,@,C).3 to 11 and $,@,#

D). 3 to 10 and $,@,# 40. A: If a update set is used, and modifications used will affect the AIX. B: If AIX is opened, the base cluster will also be opened automatically.

A) A TRUE ,B TRUE B)A FALSE,B TRUE C)A TRUE,B FALSE D)A FALSE ,B FALSE
41. IEBCOMPR is the utility used to.

A).Used to compare flat file to ps file. B).Used to compare partioned dataset to PDS C).Used to compare flat file to hierarical file system D).Used to compress the PDS file.

42. With Respecte to REFER BACK and OVERRIDING which one is correct A).REFER BACK is used to reffer the DD in following step, and OVERRIDING is used to ADD or OMIT the DDs and PARAMETERS in the previous STEP B). REFER BACK is used to reffer the DD in only previous step, and OVERRIDING is used to ADD or OMIT the DDs and PARAMETERS in the previous STEP C). REFER BACK is used to reffer the DD in previous and same step, and OVERRIDING is used to ADD or OMIT the DDs and PARAMETERS in the PROC

D). REFER BACK is used to reffer the DD in NEXT step, and OVERRIDING is used to ADD or OMIT the DDs and PARAMETERS in the PROC 43. Use of FILE-AID(CHOOSE 3) A).Used to EDIT and BROWSE the VSAM FILE B).KEY commpand is ONLY VALID for KSDS FILES C).WE can scroll and FETCH the records D). NEXT Keyword is optional E).Wecannot edit the PDS file 44. The procdure with in the JOB IS called A).instream data B).instream procedure C).instream program D). Catalog procedure 45. At the end of this GDG Generation creation step //STEP1 //DD1 // EXEC PGM=IDCAMS DD DSN=TCHNZZZ.GDGBSAE(+1),DISP=(,CATLG),

DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)

//SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY

A).New generation will be created B).JCL ERROR C).ABEND S822 D). Exiting version will be modified 46. With respect to FREESPACE Which one is correct A).FSPC(0 0) will not give any freespace

B).FSPC(100 100) will give only one CI in one CA C).FSPC(10) will produce only 10 % of free space in CI not in CA D). FREESPACE(4096) will produce maximum availabe space to CI and CA 47. Use of IMBED and REPLICATE A).IMBED is used to dulicate the index set and sequence set in the first track REPLICATE is used to dulicate the sequence set of each CI and replicated as many as possible in separate track. B). IMBED is used to dulicate the only index set in the first track REPLICATE is used to dulicate the sequence set of each CI and replicated as many as possible in separate track C). IMBED is used to dulicate the sequence set in the first track to reduse the seek time. REPLICATE is used to for the index set of each CI and replicated as many as possible in separate track D). IMBED is used to dulicate the sequence set in the first track to reduse the seek time. REPLICATE is used to for the index set of each CA and replicated as many as possible in separate track

48. DEFAULT KEY size for KSDS A).KEY is mandatory field in ksds ,so you need to specify,no default B).default KEY size is start from the first column end with 63th column C).default KEY size is start from the first column end with 64th column D) KEY(64 0) 49. With respect to VSAM which one is not correct A).VSAM is device independent B).VSAM is used to store the db2 tables C).VSAM is used to access the records fassly,because of efficiently organized INDEX D).VSAM dataset are more security compared to DB2 ,because its stored in DASD

50. A cluster cannot be REUSED if A).cluster contains KEYRANGES parameter B).ALTERNATE INDEX built for it C).Cluster is ESDS D).Cluster is KSDS 1. Purpose of Export?
a. a)copy the VSAM ds to another VSAM ds. b. b)VSAM to Seq.

c. c)VSAM to RRDS d. d)VSAM to ESDS

2. What are the possible parameters while doing a BLDINDX? (Choose 2) a. //sysin dd * Bldindex b. //sysin dd * Bldindex IDS(tchn08.mff004.esds) ofile(tchn08.mff004.esds.aix) sortmessagelevel(all) c. //Sysin dd * Buildindex infl(dd1) outfl(dd2) d. None 3. Which of the following are valid with respect to SORT in File-aid? (choose 2) a. We can sort records with only one field. b. For RRDS and BDAM files the SORT command sorts records in relative record number (RRN or RBA) order. c. We cannot sort a keyed file on a field other than the key field. d. The default parameter for SORT is KEYS for a keyed file. Thus the commands SORT and SORT KEYS are the same. 4. //OUTPUT ABCD COPIES=5,COPYG=(1,2,3) Ifile(dd1) ofile(dd2) sortml(all)

How will you modify the above statement such that the output is directed to the target node RMT237 a. //OUTPUT ABCD COPIES=5,COPYG=(1,2,3),TARGET=RMT237 b. //OUTPUT ABCD COPIES=5,COPYG=(1,2,3),NODE=RMT237 c. //OUTPUT ABCD COPIES=5,COPYG=(1,2,3) ,DEST=RMT237 d. //OUTPUT ABCD COPIES=5,COPYG=(1,2,3),SYSTEM=RMT237 e. //OUTPUT ABCD COPIES=5,COPYG=(1,2,3),LOC=RMT237 5. Which of the following command is used when a system error occurs while closing a VSAM file and it is subsequently unavailable? a. VERIFY b. EXAMINE c. EXPORT d. IMPORT 6. Stmt 1: REPRO can be used in case VSAM KSDS dataset becomes unusable Stmt 2: EXAMINE is used to inspect and report structural errors with VSAM a. Stmt 1 and 2 are true b. Stmt 1 is true and 2 is false c. Stmt 1 and 2 are false d. Stmt 1 is false and 2 is true 7. Which of the following are related to JES2 (JOBPARM)(choose 3) a. PURGE=NONE b. ROOM=500 c. LINECT=5 d. SYSPRINT = X e. COPIES = 50 8. What does TYPRUN = SCAN in a JCL do? a. It makes the JCL run fast b. It checks only for syntax of JCL and submit the Job c. It doesnt check the syntax of JCL while submitting d. It checks only for syntax of JCL and not submit the job 9. What does UPDATE parameter in DEFINE PATH indicate? a. When path is opened for processing both base and aix is updated for processing b. To update BLDINDEX c. To update Base cluster d. To update PATH e. To update Alternate Index 10. COBOL program is written with ALTERNATE KEY IS option. Which of the following names in DD is used to access. a. Provide only data component name b. Provide base cluster and AIX data component

c. Provide Base cluster name d. Provide Base cluster and AIX Cluster name e. Provide base cluster name and path name 11. Which of the following is TRUE with respect to parameters in JCL? a. Positional parameters can be coded in any order after any keyword parameter b. Keyword parameters can be coded in any order after any positional parameter c. Both Positional and Keyword parameter can be coded in any order d. Both parameters are mutually exclusive 12. Which of the following is special DD Name (choose 2) a. SYSPOUT b. SYSPDUMP c. STEPCAT d. ABENDPOL e. JOBLIB 13. The CI is 4096 bytes and it currently has 4 records. Record 1 is 1000 bytes, record 2, 3 and 4 are 1200, 1000, 800 bytes respectively. What will happen if another record of 1000 bytes is added. a. None of the listed options. b. Both CA and CI split happen c. Only CA split happen d. Only CI split happen 14. Which of the following would be the disposition of abnormal termination by a DD statement of DISP = (OLD, CATLG)? a. UNCATLG b. DELETE c. CATLG d. PASS e. KEEP 15. What IBM utility will be used to print or punch all or selected positions of a sequential or partitioned dataset or PDSE? a. IEBPTPCH b. IEBPRINT c. IEBPUNCH d. IEBSCAN e. IEBPCHPRINT 16. What dataset name you will give to browse a VSAM KSDS dataset? a. Index component name b. Cluster name c. Cluster and data component name d. Data component name

17. What is the IBM utility used to provide a pattern of test data that can be used as a debugging aid. a. IEBEDIT b. IEBDBG c. IEBCOPY d. IEBGENER e. IEFBR14 18. An employee master file has to be designed for an organization. Customer says that 96% of the records of the master file will be accessed in one single cycle of processing through a COBOL program. Which of the following file organization you will recommend for the master file? a. VSAM KSDS b. VSAM RRDS c. VSAM ESDS d. None of the above 19. You run a job executing a cataloged procedure and you need to determine whether or not a statement was overridden. Which of the following symbols appear in column 1 through 3 of the output listing if such a statement is overridden? a. X/X b. XX c. XX/ d. XX* e. X/ 20. If both the JOBCAT and STEPCAT statements are coded in a step, which will take precedence? a. JOBCAT b. Both the statements will be executed in a sequence c. STEPCAT d. The one coded first in the JCL stream 21. Which command is used to check the status of a VSAM dataset if a job is terminated and the VSAM dataset is not properly closed? a. CHECK b. VERIFY c. REPRO d. STATUS 22. In the following Export command, what does the TEMPORARY command do? //SYSIN DD * EXPORT MVS002.HRTITLE.TABLE OUTFILE(BACKUP)-

TEMPROARY a. It indicates the source cluster will not remain after the portable copy is created. b. It indicates the source cluster remains after the portable copy is created. c. It indicates after copying the source cluster will remain for temporary only. d. It indicates the temporary copy of source cluster. 23. Consider the JCL statement //CHECKIT IF ((RC LT 3 & RC LT 10) | RC = 15) THEN Which of the following sets of return codes cause the relational expression above JCL to be evaluated true. a. 0,1,2,3, or 16 b. 0,1,2,3 or 15 c. 1,2,3 or 14 d. 0,1,2 or 15 e. 1,2,3 or 16 24. Stmt 1: For Deleting in KSDS and RRDS the File should be opened in I-O mode in Cobol Stmt 2: ESDS record can be deleted a. Stmt 1 is true and 2 is false b. Stmt 2 is true and 1 is false c. Stmt 1 and 2 are false d. Stmt 1 and 2 are true
25. A KSDS can be created without primary key value. True/False

26. Consider the following : //Jobcard //PROC1 PROC .. // //PROC1 PEND //STEP1 EXEC PROC=PROC1 . What kind of procedure is this. a. Symbolic Procedure b. Instream procedure c. Cataloged Procedure d. System Procedure 27. Compiler option to view the source code of cobol program a. LIST b. XREF c. SOURCE d. FLAG 28. Which of the following are valid with respect to SORT in File-aid? (choose 2) a. We can sort records with only one field.

b. For RRDS and BDAM files the SORT command sorts records in relative record number (RRN or RBA) order. c. We cannot sort a keyed file on a field other than the key field. d. The default parameter for SORT is KEYS for a keyed file. Thus the commands SORT and SORT KEYS are the same. 29. Write the syntax for overriding a DD statement of a Procedure.

30. What is the terminal control program we use to execute TSO commands in JCL? a. IDCAMS b. IEFBR14 c. IEBPTPCH d. IEBGENER e. IKJEFT01

Вам также может понравиться