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

How to declare a cursor in a cobol program


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
udaymf
Currently Banned

New User


Joined: 09 Nov 2006
Posts: 2

PostPosted: Wed Nov 15, 2006 7:38 pm
Reply with quote

how to declare a cursor in a cobol program.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Nov 15, 2006 7:46 pm
Reply with quote

Check what manual says on this...
Back to top
View user's profile Send private message
chiranth_hn

New User


Joined: 14 Jan 2006
Posts: 1
Location: Mysore

PostPosted: Fri Nov 17, 2006 10:56 am
Reply with quote

we can declare the cursor in procedure division or working storge division

EX

EXEC SQL
DECLARE CURSOR CUSORNAME WITH HOLD FOR
SELECT colums FROM TABLE
WHERE give the condition here
END-EXEC
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top