Mainframe Programming: COBOL, REXX, TSO, INSYNC, and DB2
Test your knowledge of mainframe technologies including COBOL programming, REXX scripting, TSO/REXX stack operations, INSYNC file comparison, and DB2 database concepts.
Questions
What is a lock in DB2?
- A lock is the mechanism that controls access to rows and coloumns
- A lock is the mechanism that controls access to table views
- A lock is the mechanism that controls access to data pages and table spaces.
- None of the Above
What are all the file organizations that INSYNC can read and write.
- HFS files
- QSAM files
- VSAM files
- None of the above
Syntax for "CRTDATE"
- CRTDATE=(date)
- CRTDATE=(date1,date2)
- All the above
- None of the above
Syntax for "DYNAMICACB#"
- DYNAMICACB#
- DYNAMICACB#=number
- DYNAMICACB#=YES
- None of above
To exclude the RDW we can use "RDW=ON" in the control card
- True
- False
Which Batch Keyword is used to determine how Unformatted comparison reports should display
- PRINT
- PRINTCASE
- PRINTHORIZ
- PRINTMODE
The --------- batch keyword controls whether excluded fields in select tables are reported
- SEARCH
- SHADOW
- STRIP
- FIND
REXX means
- Restructure EXtended eXecutor language
- Restructured EXtending eXecutor language
- Restructured EXtended eXecutor language
- Restructured EXtended eXecution language
When the language processor transfers control to another routine or another part of the exec, it sets the ----special variable to the line number from which the transfer occurred.
- SIG
- SIGL
- SIL
- SIGN
----- Causes REXX to stop executing the current DO-END loop
- Exit
- Finish
- End
- Leave
/REXX/ Do forever Say ‘Enter the code :’ Pull code If code = ‘BYE’ then Leave; end Exit Based on the above REXX, what is true?
- The above exec will prompt the user for a code until the user enters the code ‘BYE’
- The above exec will prompt the user for a code until the user enters the code ‘EXIT’.
- Gives Error while Executing
- The above exec will prompt the user for a code until the user enters the code ‘END’.
What is the result for the command "SUBSTR('MVS',1,5)"
- 'MVS'
- 'MVS '
- ' MVS'
- 'MVSSS'
what the Command "“DROPBUF 0” will do?
- deletes buffer in the stack
- deletes buffer and all elements of stack
- deletes elements of stack
- All the above
"MAKEBUF" "MAKEBUF" "DROPBUF" "MAKEBUF" "QBUF" What QBUF will return?
- Returns 1
- Returns 3
- Returns 2
- Returns 0
"MAKEBUF" Push ‘TCS’ Push ‘TATA’ Push ‘CONSULTANCY’ Push ‘SERVICES’ "QELEM" "DROPBUF" "QELEM" What will be returned by "QELEM" in step 6 and 8 ?
- 4,4
- 4,0
- 3,3
- 3,0
"QSTACK" "NEWSTACK" "NEWSTACK" "QSTACK" What will the last "QSTACK" will return.
- Returns 0
- Returns 1
- Returns 2
- Returns 3
What will a variable in COBOL contain if it is not initialized?
- Will contain zeroes if numeric and spaces if alphabetic or alphanumeric
- Will contain spaces for all variables
- Will contain an undefined value
- None of the above
What is a 66 level in COBOL used for?
- Elementary level item
- Condition names
- Initialize
- Renames
What is a 77 level in COBOL used for?
- Elementary level item
- For condition names
- Initialize
- Renames
Is this variable definition correct?
- True
- False