Mainframe Interview Questions (3-5 Years Experience)

All sort of Mainframes Interview Questions.
Post Reply
User avatar
DB2 Guy
Forum Moderator
Forum Moderator
Posts: 120
Joined: Sun Apr 21, 2013 8:25 pm
India

Mainframe Interview Questions (3-5 Years Experience)

Post by DB2 Guy »

This might interest some of you. Listed below are the Mainframe Interview Questions for 3-5 Years Experience:Database and SQL
  1. Describe different transaction isolation levels in DB2 and their implications.
  2. What SQL statements have you used extensively during development and support?
  3. Explain the effects of using CURSOR WITH HOLD with GROUP BY and ORDER BY clauses in your queries.
  4. How do you retrieve the current system date and time using DB2 and COBOL?
JCL and Data Management
  1. Describe a situation where you encountered a JCL error code -904. What was the cause and how did you resolve it?
  2. How can you check for empty files and locate specific characters within files using JCL utilities?
  3. How do you reference the output dataset from a previous step in a JCL job with multiple steps?
  4. Explain the purpose and usage of COND=EVEN and COND=ONLY parameters in JCL.
  5. How do you manage the deletion of a GDG (Generation Data Group)?
COBOL Programming
  1. Explain how to declare and use host variables in COBOL programs.
  2. How can data be passed from a JCL job to a COBOL program?
  3. What happens when you encounter a SUM FIELDS = NONE condition in COBOL?
  4. Describe the compilation process for COBOL programs that interact with a DB2 database.
All the best,
Anushka Sharma
Registered Member
Posts: 28
Joined: Sun Sep 01, 2013 4:56 pm
India

Re: Mainframe Interview Questions (3-5 Years Experience)

Post by Anushka Sharma »

DB2Explain the effects of using CURSOR WITH HOLD with GROUP BY and ORDER BY clauses in your queries.
I think we can not use GROUP BY and ORDER BY in the same cursor?
Ramesh_Mainframe
Registered Member
Posts: 24
Joined: Thu Jul 11, 2013 6:28 pm
India

Re: Mainframe Interview Questions (3-5 Years Experience)

Post by Ramesh_Mainframe »

DB2What happens when you encounter a SUM FIELDS = NONE condition in COBOL?
 
Is not this only applicable to SORT jobs, can this happen in a COBOL program too?
User avatar
zum13
Registered Member
Posts: 85
Joined: Thu May 04, 2023 12:58 am

Re: Mainframe Interview Questions (3-5 Years Experience)

Post by zum13 »

 
I think we can not use GROUP BY and ORDER BY in the same cursor?
Actually, you can. For example:

Code: Select all

SELECT CREATOR,COUNT(*)
FROM   SYSIBM.SYSTABLES            
GROUP  BY CREATOR                  
ORDER  BY 2 DESC                  
The GROUP BY clause will sort the data in order to perform an aggregation, but you don't have to keep the data in that order. So the above query will give a list of table creators but ordered by the number of tables each has in descending order.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Interview Questions.”