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

displaying pointer value in Pli


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Tue Jan 27, 2009 6:31 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Tue Jan 27, 2009 6:41 pm
Reply with quote

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
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Wed Jan 28, 2009 9:35 am
Reply with quote

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
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Wed Jan 28, 2009 9:38 am
Reply with quote

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
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Wed Feb 04, 2009 4:41 pm
Reply with quote

hi all,

is there any hints available on my last post?
Back to top
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Wed Feb 04, 2009 4:54 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Thu Feb 05, 2009 12:49 am
Reply with quote

Did you try PUT SKIP LIST(PTR(21)->PLY.GREEN_SET_REF$(ISTIF)) ?
Back to top
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Thu Feb 05, 2009 1:22 pm
Reply with quote

yes i did turns out to be spaces ..
Back to top
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Thu Feb 05, 2009 2:06 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Thu Feb 05, 2009 5:59 pm
Reply with quote

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
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Fri Feb 06, 2009 10:15 am
Reply with quote

hi robert,

I'm as confused as you're icon_cry.gif

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
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Feb 06, 2009 10:34 am
Reply with quote

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
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Fri Feb 06, 2009 12:38 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Fri Feb 06, 2009 3:07 pm
Reply with quote

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
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Fri Feb 06, 2009 3:38 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Fri Feb 06, 2009 4:14 pm
Reply with quote

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
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Fri Feb 06, 2009 6:19 pm
Reply with quote

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 icon_cry.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Fri Feb 06, 2009 6:50 pm
Reply with quote

Definitely starting a new thread reduces confusion! However, to help with an abend we do need the data I mentioned above.
Back to top
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Fri Feb 06, 2009 7:51 pm
Reply with quote

hi robert,

i've shown the value displayed(hex on)...

can i know, which other data you're referring to?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Fri Feb 06, 2009 8:35 pm
Reply with quote

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, ...icon_biggrin.gif
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
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Mon Feb 09, 2009 9:48 am
Reply with quote

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
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts IBM OnDemand Folders displaying to al... IBM Tools 6
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts Can we pass cobol pointer to cobol-db... DB2 4
No new posts Reg:Displaying the particular month o... All Other Mainframe Topics 4
No new posts READQ TS returning inconsistent addre... CICS 14
Search our Forums:

Back to Top