Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

displaying pointer value in Pli
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: displaying pointer value in Pli
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Jan 27, 2009 6:41 pm    Post subject: Reply to: displaying pointer value in Pli
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    Post subject: Reply to: displaying pointer value in Pli
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    Post subject: Reply to: displaying pointer value in Pli
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    Post subject: Reply to: displaying pointer value in Pli
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    Post subject: Reply to: displaying pointer value in Pli
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: 7908
Location: Bellevue, IA

PostPosted: Thu Feb 05, 2009 12:49 am    Post subject:
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    Post subject: Reply to: displaying pointer value in Pli
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    Post subject: Reply to: displaying pointer value in Pli
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: 7908
Location: Bellevue, IA

PostPosted: Thu Feb 05, 2009 5:59 pm    Post subject:
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    Post subject: Reply to: displaying pointer value in Pli
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: 785
Location: Chennai, India

PostPosted: Fri Feb 06, 2009 10:34 am    Post subject:
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    Post subject: Reply to: displaying pointer value in Pli
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Feb 06, 2009 3:07 pm    Post subject: Reply to: displaying pointer value in Pli
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    Post subject: Re: Reply to: displaying pointer value in Pli
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: 7908
Location: Bellevue, IA

PostPosted: Fri Feb 06, 2009 4:14 pm    Post subject:
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    Post subject: Reply to: displaying pointer value in Pli
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: 7908
Location: Bellevue, IA

PostPosted: Fri Feb 06, 2009 6:50 pm    Post subject:
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    Post subject: Reply to: displaying pointer value in Pli
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Feb 06, 2009 8:35 pm    Post subject: Reply to: displaying pointer value in Pli
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts READQ TS returning inconsistent addre... moezbud CICS 14 Wed May 04, 2016 1:09 am
No new posts XML generated from cobol is displayin... vangeti COBOL Programming 2 Wed Aug 19, 2015 5:16 pm
No new posts Display the hexadecimal address of a ... M_Kaiser COBOL Programming 12 Thu May 28, 2015 5:50 pm
No new posts Usage of pointer nilaksh92 COBOL Programming 2 Mon Mar 16, 2015 12:53 pm
No new posts Displaying records per contract and a... madishpa DFSORT/ICETOOL 2 Mon Feb 16, 2015 7:39 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us