Page 1 of 1

Scope Of Cursor.

PostPosted: Fri Dec 04, 2009 6:41 pm
by Vineet
Hi All,

I am having a Query Related to Cursor. I am Having a Cobol Pgm. Say Pgm. ABC. Pgm. ABC is calling a Sub Program say Pgm. XYZ.I define & Open a Cursor in Pgm. ABC. In Pgm. XYZ can I Fetch the Values for the Cursor Open in Pgm. ABC. If
Pgm. XYZ is Static Or Dynamic Call.

Note: In Pgm. XYZ I am not Declairing / Opening Cursor. Its done in Parent Pgm.

Re: Scope Of Cursor.

PostPosted: Sat Dec 05, 2009 3:38 am
by dick scherrer
Hello,

I don't know if this would work of not. . . I suspect it would have problems.

Suggest you try to pre-process/compile/bind the code both ways and see what is generated.

Even if this could work, i'd suggest you consider a different approach. . . For those who have to maintain this later.