Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Cursor declaration in Linkage Section

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
suman_236

New User


Joined: 18 Nov 2005
Posts: 11
Location: Chennai

PostPosted: Thu Oct 16, 2008 9:05 pm    Post subject: Cursor declaration in Linkage Section
Reply with quote

hi . . we are writing some Cobol/Db2 subroutines. The cursors in the subroutines are declared in the linkage section instead of Working storage section. The routines are tested and working fine. Do you see any problem with declaring the cursors in Linkage section?

Thanks for your replies!
Back to top
View user's profile Send private message

Suresh Ponnusamy

Active User


Joined: 22 Feb 2008
Posts: 107
Location: New York

PostPosted: Sat Oct 18, 2008 2:37 am    Post subject:
Reply with quote

No Suman.

There will not be any issues.

CURSOR Declarations are something like a Working Storage Variable declaration. It is not an executable statement.

If you check the COBOL compile listing for the same, the CURSOR declaration will be commented. Usually SQL statements will be replaced with corresponding COBOL call during compilation. Only OPEN CURSOR statement is executable and not DECLARE Statement.

I have tested this with DB2 Stored procedure and it worked fine.

Suggestions are welcome.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am
No new posts Release of Adabas Cursor mohitsethi All Other Mainframe Topics 1 Mon Feb 06, 2017 8:36 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts DB2 Stored Procedure - Dynamic SQL - ... GuyC DB2 2 Wed Feb 17, 2016 5:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us