MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Interviw questions

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Interview Q & A
View previous topic :: View next topic  
Author Message
rama krishna reddy
Beginner


Joined: 18 Sep 2006
Posts: 31
Topics: 13
Location: Hyderabad

PostPosted: Sun Nov 05, 2006 2:18 am    Post subject: Interviw questions Reply with quote

Hi every one,

Interview questions i have faced recnetly

IMS
1) suppose two image copy jobs A,B started at the same which job will abend first ?
DB2
2)suppose there are two tables C,D table C onatins SENO and NAME
and table D conatins SENO and Salery how to retive seno,name,maximum salery of any employee from these two table

3) There are two tables table1 and table2
table1 conatins
seno Name
1 raju
2 rakesh
3 raju

table2
seno salery
1 1000
2 2000


SENO 3 exist only in table1 how we can find thse kind of rows
i mean we want retive key field which are not comman in two tables




COBOL
3)my input file conatins data like

123ramki
** 45rahul
ramki

How to remove these leading space and **

final output should be
123ramki
45rahul
ramki


4) how JES will execute internally ?
any idea about INITIATORS ?


Thanks
Rama krishna reddy
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12358
Topics: 75
Location: San Jose

PostPosted: Sun Nov 05, 2006 6:06 pm    Post subject: Reply with quote

1. Depends on which job gets the exclusive lock of the database

2. Try this untested sql

Code:

SELECT *                                             
  FROM C                                           
 WHERE SENO IN (SELECT SENO                         
                  FROM D                           
                 WHERE SALARY = (SELECT MAX(SALARY) 
                                   FROM D));       


3.

Code:

SELECT *                                             
  FROM table1                                           
 WHERE SENO NOT IN (SELECT SENO                         
                      FROM table2);       


4.Please search before posting. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=2354&highlight=remove+leading

5. search for INITIATORS in this link

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HAS2A340/CCONTENTS?DT=20050715030843

Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Interview Q & A All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group