View previous topic :: View next topic
|
Author |
Message |
prasannanjaneya Warnings : 1 New User
Joined: 14 Mar 2005 Posts: 10 Location: pune
|
|
|
|
what is difference b/w declaring the cursor in data division and procedure division. |
|
Back to top |
|
|
nitin4.a
New User
Joined: 16 Aug 2005 Posts: 26
|
|
|
|
Hi
There is no difference as such but according to good programing practice it should be declared in Data Division i.e working storage section
regds |
|
Back to top |
|
|
ikumar
New User
Joined: 02 Aug 2005 Posts: 81
|
|
|
|
As per my knowledge, there is no difference in declaring the cursor in data division or procodure division. But you should be careful enough when you code cursor declaration in the procedure division. Make sure that the Cursor Declaration has been coded in the logic before any OPEN/FETCH/CLOSE statements. |
|
Back to top |
|
|
nitin4.a
New User
Joined: 16 Aug 2005 Posts: 26
|
|
|
|
yes,
that is true
you should declare before using it in the code
thats it should be declared before
operated by open,fetch,lose commands
regads |
|
Back to top |
|
|
|