Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Initializing the pointer variables

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
nutakkimurali

New User


Joined: 15 Nov 2005
Posts: 22

PostPosted: Tue Nov 15, 2005 7:30 pm    Post subject: Initializing the pointer variables
Reply with quote

Hi All,

I appriciate if any one answer my question.

Is it possible to Initialize the Pointer Variable to Blanks? If not please provide some sample code to how to achive this.

Regards,
Muralee
Back to top
View user's profile Send private message
References
PostPosted: Tue Nov 15, 2005 7:30 pm    Post subject: Re: Initializing the pointer variables Reply with quote

hsourabh

New User


Joined: 24 May 2005
Posts: 12
Location: Z?rich

PostPosted: Thu Nov 17, 2005 9:34 pm    Post subject: Re: Initializing the pointer variables
Reply with quote

Hi Murali,

U can initialize a pointer variable as :

dcl ptr1 ptr init(sysnull());

This is equivalent to initializing a char string with blanks.

Regards,
Sourabh
Back to top
View user's profile Send private message
nutakkimurali

New User


Joined: 15 Nov 2005
Posts: 22

PostPosted: Fri Nov 18, 2005 12:21 pm    Post subject: Re: Initializing the pointer variables
Reply with quote

Thank you Sourabh
Back to top
View user's profile Send private message
nutakkimurali

New User


Joined: 15 Nov 2005
Posts: 22

PostPosted: Tue Nov 22, 2005 8:28 pm    Post subject: Re: Initializing the pointer variables
Reply with quote

Sourbh,

Still i feel that we can't initialize the pointer to blanks.my concern is always pointer represents some address in the memory and we can't blankout the memory.Plz correct me if i'm thinking in wrong way.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1