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

Getting error while Declaring Cursor in COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Apr 11, 2012 8:27 pm
Reply with quote

Since clicking the link didn't work, in that it attempted to take you to a site which doesn't exist, why didn't you copy/paste what you could see, or even retype it in that boxy-looking thing at the top of the screen. The URL is valid, it was just formatted incorrectly in the post.

Don't be afraid to try things. May tell you something. May not. If you don't try it, it definitely won't tell you anything. This has quite general application.

Things not to try included pressing the Emergency Stop on the CPU, stepping off the top of Fire Escapes etc. If it seems highly unlikely to cause any problem (like typing a URL) then give it a go.
Back to top
View user's profile Send private message
vishalbshah

New User


Joined: 01 Dec 2006
Posts: 61
Location: Pune

PostPosted: Wed Apr 11, 2012 8:33 pm
Reply with quote

Hi Bill,

I tried the Copy paste of the link eventually and found the answer to my question but i think our replies are too faster.

As I am in the Office premises, so when the link didn't work while clicking on it I thought the link might be of one of the "blocked" sites and so I should not open it.

Anyway, I am appearing for COBOL and JCL exam in a month's time. so I want to read more and more documents on these subjects.

I thank you both !
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Apr 11, 2012 10:39 pm
Reply with quote

Hello,

I don't know if this matters (and i'm not able to test this now), but this is the first time i've noticed a cursor declared WITH HOLD and then later in the same declaration having FOR READ ONLY specified icon_confused.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Apr 11, 2012 11:13 pm
Reply with quote

as more and more db2 programmers
finally
learned that they needed to commit read-only cursors, also,
the requirement for WITH HOLD and FOR READ ONLY became common.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Apr 12, 2012 12:02 am
Reply with quote

Thank you, kind sir icon_smile.gif

I Will learn more of this. . .

d
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Error to read log with rexx CLIST & REXX 11
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Error when install DB2 DB2 2
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top