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

Initializing the pointer variables


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

New User


Joined: 15 Nov 2005
Posts: 22

PostPosted: Tue Nov 15, 2005 7:30 pm
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
hsourabh

New User


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

PostPosted: Thu Nov 17, 2005 9:34 pm
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
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
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
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 Moving Or setting POINTER to another ... COBOL Programming 2
No new posts JCL with variables JCL & VSAM 1
No new posts JCL Variables JCL & VSAM 1
No new posts reset/clear ALL application profile v... TSO/ISPF 3
No new posts REXX - Adding variables CLIST & REXX 8
Search our Forums:

Back to Top