IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Cursor declaration in Linkage Section


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts FD Section to Create FB or Vb File Dy... COBOL Programming 1
No new posts OPTLINK linkage convention PL/I & Assembler 3
No new posts Sections: need one appearance of cer... DFSORT/ICETOOL 4
Search our Forums:

Back to Top