Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to define the data items to receive the fetch items for
the SQL?

Answers were Sorted based on User's Feedback



How to define the data items to receive the fetch items for the SQL?..

Answer / mehdee

Example:
EXEC SQL
FETCH AA_CURS
INTO :Host-name1, Host-name2, ...
EXEC-END

Note: Host-names listed are one to one related to the
Columns at DECLARE AA_CURS, and are INCLUDEed from it's
DB2 DECLGEN name in the program.

Is This Answer Correct ?    2 Yes 0 No

How to define the data items to receive the fetch items for the SQL?..

Answer / sadiq afroze

Using the DSECT, followed by lines of - 'data items DS
datatype'.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More DB2 Interview Questions

What is DB2 (IBM Database 2)?

3 Answers  


I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this?

2 Answers  


Can we declare DB2 HOST variable in COBOL COPY book?

2 Answers  


How to know the primary key of a table without defining the primary key in the table?

5 Answers   Satyam,


What is a DB2 bind?

1 Answers   Logica CMG,


How do I delete a column in db2?

0 Answers  


Where could you look if you had a question about whether a column has been defined as an index?

2 Answers  


What is cascading rollback?

0 Answers  


how to fetch first 100 rows in db2

2 Answers   IBM,


How can you find out which query is taking lot of time to execute in cobol-db2 program ?

1 Answers   Danske,


What's the maximum number of volumes that can be added to a STOGROUP?

1 Answers   IBM,


List down the types of triggers in the db2 database?

0 Answers  


Categories