View previous topic :: View next topic
|
Author |
Message |
vivekpant
New User
Joined: 17 Feb 2009 Posts: 5 Location: Mumbai
|
|
|
|
Hi,
Can anyone explain the procedure to read the Last Record Read in the PLIDUMP of the enterprise PL/I. |
|
Back to top |
|
|
vivekpant
New User
Joined: 17 Feb 2009 Posts: 5 Location: Mumbai
|
|
|
|
guys any updates?? |
|
Back to top |
|
|
Nirav721
New User
Joined: 11 Feb 2008 Posts: 53 Location: NJ
|
|
|
|
you can always turn off le settings using TRAP(OFF) and let abend-aid give you the current record ... assuming abend-aid is available |
|
Back to top |
|
|
vivekpant
New User
Joined: 17 Feb 2009 Posts: 5 Location: Mumbai
|
|
|
|
Unfortunately, abend-aid is not available. In this case, we have to look in the PLIDUMP and read the last record read, by using the address in the 20th word. in LE, i am not able to locate that 20th word. i needed some help there.... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
While not very elegant, you could define 2 "eyecatcher" literals and place a working data area between that is the size of a record. Every time a record is read, move the current record to the data area between the 2 eyecatchers.
When you look in the dump, the current record will be between the eyecatchers . . . |
|
Back to top |
|
|
vivekpant
New User
Joined: 17 Feb 2009 Posts: 5 Location: Mumbai
|
|
|
|
Yeah, that is one of the methods which i am trying to use. but in the long run it would require that i change all my existing programs (more than 1000) to implement this.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Yup, 1000 or so would be a pain. I was thinking of working on one problem situation - not something generic
If this is something you need to do with any regularity, look for info on how to find the dcb for that file in the dump and from there to the specific record. There should be info in the compile to get you started. |
|
Back to top |
|
|
vivekpant
New User
Joined: 17 Feb 2009 Posts: 5 Location: Mumbai
|
|
|
|
It was much easier in the 2.3 compiler. If i get something i will post it here, by chance if you get it earlier than i do... please post it too.. |
|
Back to top |
|
|
|