View previous topic :: View next topic
|
Author |
Message |
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
hi all,
i've been just put to work on this Pli(today) ...
can anyone tell me how to display & interpret pointer values?
i searched ... i think i dont know what i'm searching for because all the things i saw was french & latin to me ...
i'll do the home work starting today ... thanks in advance |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
can anyone tell me how to display & interpret pointer values? |
pointer values are storage addresses, usually there is no need to display them
because, in general have very little "business rules" meaning
- I written ( many ) and helped to debug ( zillions ) of lines of pl/i code
and almost never had the need to display the pointers involved
if You specify better Your need You mught get better answers |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
hi enrico,
thanks for the reply ...
i made my superiors clear about the fact u mentioned ...
i'll look more in to it & reply back |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
hi,
excuse me for another thread ...
i need to know the value in this particular variable ...
Code: |
PTR(21)->PLY.GREEN_SET_REF$(ISTIF) |
|
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
hi all,
is there any hints available on my last post? |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
hi,
i'm adding the attachments of my code & compile listing ...
in code ... i've shown the place where its giving me S0C4...
phrase says "place its abending"
thanks in advance.
attachment deleted because of SENSITIVE info e.s |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Did you try PUT SKIP LIST(PTR(21)->PLY.GREEN_SET_REF$(ISTIF)) ? |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
yes i did turns out to be spaces .. |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
the values of the vars are as below ....
Code: |
025105 PLY.GREEN_SET_REF$(ISTIF)-
4DDE4CDCCD6ECE6DCC54CEECC5644444444444444444444440044444444444444444
0738B79555D253D956BD92396D000000000000000000000000000000000000000000
---------------------------------------------------------------------------
025106 PTR(21)->PLY.GREEN_SET_REF$(ISTIF)->
4DED4FF566DDE4CDCCD6ECE6DCC54CEECC5664444444444444444444444444444444
0739D21D0E738B79555D253D956BD92396D0E0000000000000000000000000000000
|
lemme know if more inputs are required . |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
lemme know if more inputs are required .
|
Okay, I'm confused.
1. You asked how to display pointer values. You were told you don't need to do so.
2. It turned out you wanted to see the value of a variable the pointer variable pointed to. You were given that, and showed us the value.
3. Now you want more input -- for what? |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
hi robert,
I'm as confused as you're
i dunno pli ... jus been putting the things i'm interpreting.
i want only why the program is abending @ this place?
As with the inputs thing .... please NVM |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
S0C4 is the problem with addressing. You are trying to do read/write operation where memory is not available/accessible.
As it is said, no need to display pointer value. Please the check bounds of offending array. |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
yup i got that,
Can you help me with this variable?
Code: |
PTR(21)->PLY.GREEN_SET_REF$(ISTIF) |
these are the values when i display it ....
Code: |
025105 PLY.GREEN_SET_REF$(ISTIF)-
4DDE4CDCCD6ECE6DCC54CEECC5644444444444444444444440044444444444444444
0738B79555D253D956BD92396D000000000000000000000000000000000000000000
---------------------------------------------------------------------------
025106 PTR(21)->PLY.GREEN_SET_REF$(ISTIF)->
4DED4FF566DDE4CDCCD6ECE6DCC54CEECC5664444444444444444444444444444444
0739D21D0E738B79555D253D956BD92396D0E0000000000000000000000000000000 |
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
why You keep mixing two issues....
You are confusing people trying to help You
if You dunno PLI ask Your management to give You proper training
looks You are posting the hex from an ispf edit screen.. |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
enrico-sorichetti wrote: |
why You keep mixing two issues....
You are confusing people trying to help You
if You dunno PLI ask Your management to give You proper training
looks You are posting the hex from an ispf edit screen.. |
Sorry for the trouble .... thanks for all your time. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
If you want to know why something is abending, ASK ABOUT THE ABEND!!! Don't ask about how to display a variable value unless you want to know how to display the variable value. If you think the variable value is causing the abend, great. But don't expect us to read your mind and know that's why you want to know about displaying the value -- we don't know you've got an abend.
In order to look at the S0C4 abend, it would be nice to see the message generated, and anything else about the output. S0C4 is an addressing problem as mentioned earlier -- and that is typically a pointer out of range, subscript out of range, program being called that isn't available (etc, etc). But without seeing at least the error message information, there's not much we can do to help. And don't attach the output, use BBcode as not everyone can download attachments. |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
hi robert,
putting skiplists .... i've arrived that my program is abending @ the variable i previously posted ...
As with displaying the pointer value .... first day of my pli ... i thought it was a pointer, so asked for it .... instead of starting a new thread, i continued in this post only ...
now i know ... in such scenarios, ill post a new thread |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Definitely starting a new thread reduces confusion! However, to help with an abend we do need the data I mentioned above. |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
hi robert,
i've shown the value displayed(hex on)...
can i know, which other data you're referring to? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Hi Rakesha!
I have gone thru the program posted as an attchment...
finally something quite interesting ,
different from the usual how to delete duplicates, how to write a record, ...
thank for posting it, but...
1 - the program contains company sensitive know how ( I deleted it )
2 - its too complicated to be debugged from a forum
3 - and for a beginner also
ask Your peers to guide You thru the logic
the operation on the pointed to array is a char comparison
the only hints might be ,
an uninitialized pointer ....(21)
or the array index out of bounds |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
hi enrico,
thanks for the reply...
Quote: |
the operation on the pointed to array is a char comparison
the only hints might be ,
an uninitialized pointer ....(21)
or the array index out of bounds |
searching thru the net .... i suspected the same & reported to my superiors.
will start my investigation today & report back for any hints/tips. |
|
Back to top |
|
|
|