Mainframe DB2 SQL and JCL Fundamentals
Covers mainframe computing concepts including INFO-Variables, DB2 SQL operations (queries, views, aliases, data modification), and JCL procedures and dataset management.
Questions
Indicate the correct answers: A concatenation of datasets...
- ... can be used for input, to use both DD entries describing sequential datasets and DD
- ... can be used to write multiple output datasets.
- ... can contain a dummy data set in the input, which will indicate the end of the input.
- ... stored on different device types, can not be used for input.
When calling a procedure we can change - in different ways - this procedure. Which is the most complete statement?
- We can override parameters on EXEC statements and add DD statements.
- We can override, nullify and add parameters on all statements and add DD and/or OUTPUT
- We can add and override parameters to all statements, but can only nullify parameters
- We can nullify, override and add parameters to all statements, but can only add DD statements.
Which of the following inequality comparison operators can be used in predicates.
- less than (<)
- greater than (>)
- less than or equal to (<=)
- Any of the above.
Which sign is used to indicate any string of zero or more characters.
- _
- %
- *
- None of the above
What does distinct keyword do?
- Removes duplicate rows from your result.
- Selects all the rows.
- Puts the rows in descending order.
- None of the above
Can UNION be used along with outer join.
- True
- False
The DB2 object Alias which represents a table.
- Can represent remote tables and views.
- Can us used by anyone.
- Does not need DB2 authority to use.
- All the above.
What privelege do you need to create alias ?
- SYSADM authority.
- CREATEALIAS authority.
- Either a or b
- Both a & b
A view can be used to :
- Control access to table.
- Make data easier to use.
- Only b
- Both a and b
DB2 data can be modifed using :
- INSERT
- UPDATE
- DELETE
- All the above.
Subquery can be included in :
- WHERE clause
- HAVING clause
- Either of the above
- None of the above
The source form of static SQL statements is :
- Embedded within application program.
- Prepared during the execution of SQL application.
- Is the result of a DB2 query.
- None of the above
Application plan contains :
- A list of package names
- The bound form of SQl statements taken from one or more DBRMs.
- Neither of the above
- Both of the above
The data retrieved from SQL is called as :
- View
- Synonym
- Result table
- Alias
Which of the following is not a comparison operator used in conditions ?
- WHERE
- AND
- IS NULL
- BETWEEN
which of the following are column functions ?
- SUM
- AVG
- Both
- None
Which INFO-Variable is used to store the first six characters of the program name in demand ?
- INFO-PROGRAM-ID
- INFO-FUNCTION-KEY
- INFO-CONVERSATION
- INFO-PASSOFF
Which INFO-Variable is used to set the function key number if a function key is received ?
- INFO-PROGRAM-ID
- INFO-CONVERSATION
- INFO-PREVIOUS-PROGRAM-ID
- INFO-FUNCTION-KEY
Which INFO-Variable is used to set to Y if the terminal is in conversational mode,otherwise, it is set to N ?
- INFO-PROGRAM-ID
- INFO-USERID
- INFO-CONVERSATION
- INFO-PASSOFF
Which INFO-Variable is used to set to Y if using PASSOFF ?
- INFO-PROGRAM-ID
- INFO-PREVIOUS-PROGRAM-ID
- INFO-CONVERSATION
- INFO-PASSOFF