How can we read records for specific member in CL? AND rpg?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More DB2 Interview Questions

what is the soft code for deadlock ?

2 Answers   Logica CMG,


When reorg is used?

0 Answers  


i have a db2 variable how do u declare tht into working storage section ?

1 Answers   TCS,


What does the CHECK Utility do ?

1 Answers  


What is cursor in dbms?

0 Answers  






SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.

0 Answers  


What is the cobol picture clause of the db2 data types date, time, timestamp?

0 Answers  


Mention the length of physical storage of the given data types of db2 – date, timestamp, time

0 Answers  


What is the use of runstats in db2?

0 Answers  


Which component is responsible for processing sql statements and selecting access paths?

0 Answers  


What is the STOSPACE Utility used for?

1 Answers  


What are leaf pages?

3 Answers  


Categories