Mainframe COBOL, JCL and VSAM Programming Quiz
Test your knowledge of mainframe computing including COBOL programming, JCL statements, and VSAM file management.
Questions
Can I specify dummy VSAM dataset with AMP = 'AMORG' in a JCL?
- True
- False
DEFINE PATH command creates an alias for
- Bldindex
- non-VSAM datasets
- VSAM base cluster
- Define path
DEFINE ALIAS command creates an alias for
- Bldindex
- non-VSAM datasets
- VSAM base cluster
- Define path
How should be VSAM file defined in order that it can be accessed both in CICS and in BATCH environment?
- SHAREOPTION (1,3)
- SHAREOPTION (2,3)
- SHAREOPTION (3,1)
- SHAREOPTION (3,2)
How can submitting user's RACF authority be overridden in a job stream?
- Through the USER parameter
- Through the USER and PASSWORD parameter
- Through the RACF parameter
- By notifying the console operation to override authority
Many JCL statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
- Linkage variables
- Parameters
- Control libraries
- Includes
Can an individual step be restricted from using all the job's allowed CPU time?
- Yes
- No
- Only in catalogued procedures
- Through the STEPTIME parameter
What is the maximum length of a single line of JCL?
- 72
- 74
- 73
- 71
What is the purpose of DD DUMMY statement?
- Marks a deleted DD statement
- Begins an interpreted command stream
- Specifies no space allocation & no disposition processing
- Suppress command processing
I am using internal sort in my cobol program . Is there any way to test the return code of operation???
- No , we can't check the return code for internal sort however for external sort it can be done
- YES,by using SORT-RETURN special register
- YES, we can test via Run jcl.
- YES,by checking in listing of the proram
What will happen if I change the below code MOVE ZERO TO TOTAL . PERFORM VARYING I FROM 1 BY 1 UNTIL I > 100 COMPUTE TOTAL = TOTAL + ITEM(i) * DISCOUNT END-PERFORM to the follwing code MOVE ZERO TO TOTAL PERFORM VARYING I FROM 1 BY 1 UNTIL I > 100 COMPUTE TOTAL = TOTAL + ITEM(i) END-PERFORM COMPUTE TOTAL = TOTAL * DISCOUNT
- NO ERROR but offcourse the result will differ.
- syntax error will occur
- Run time error
- NO ERROR with same result
If you are accessing ESDS VSAM file , then in cobol if you don't prefix the ddname with 'AS-' Then which abend might occur when attempting to open a dataset??
- S213
- S806
- S000 U4038
- S001-5
MERGE statement can have
- O/P PROCEDUE and INPUT PROCEDURE both
- O/P PROCEDUE but not INPUT PROCEDURE
- INPUT PROCEDURE but not O/P PROCEDUE
- can't use both of them
For KSDS or RRDS ,when DELETE statement is used the file must be opened in
- Input mode
- outout mode
- I/O mode
- extend
When we use INTIALIZE verb to intialize group verbs,group elements which are FILLERs will not be intialized
- True
- False
which command cerates an alias for the VSAM base cluster
- DEFINE CLUSTER
- DEFINE ALIAS
- DEFINE PATH
- DEFINE BASE
IDCAMS utility can't be executed without 2 dd statement which are they??
- SYSPRINT and SYSOUT
- SYSIN and SYSOUT
- SYSPRINT and SYSIN
- The question is wrong
SEARCH ALL statement only test an equal condition
- YES
- NO, any condition along with equal can be checked
- Except Equal condition any condition can be chencked
- It Depends on the use of Search statement on perticular scenario
MOVE ZEROS TO TOTAL-OUT, TOTAL-OUT may have an __________ picture clause.
- alphanumeric
- numeric
- alphanumeric and numeric
- none of the above
WS-TAX-IN PIC 9(4) VALUE '1234'. WS-TAX-OUT PIC 9(3). MOVE WS-TAX-IN TO WS-TAX-OUT. What is the value WS-TAX-OUT contain?
- 234
- 123
- 1234
- 0