Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What is the use of POINTER clause

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
pallavi_vibhute

New User


Joined: 04 Dec 2006
Posts: 4
Location: hyderabad

PostPosted: Fri Dec 08, 2006 10:14 am    Post subject: What is the use of POINTER clause
Reply with quote

Hi all..

Is there any POINTER clause exists & if yes wht is the use of tht ..
I wil be thankfull if u ppl help me out..

thanks
pallavi.
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2285
Location: @my desk

PostPosted: Fri Dec 08, 2006 10:48 am    Post subject:
Reply with quote

Hii

Pointers are data items that contain virtual storage addresses. You define them either explicitly with the USAGE IS POINTER clause in the DATA DIVISION or implicitly as ADDRESS OF special registers.

You can perform the following operations with pointer data items:

Pass them between programs by using the CALL . . . BY REFERENCE statement.
Move them to other pointers by using the SET statement.
Compare them to other pointers for equality by using a relation condition.
Initialize them to contain an invalid address by using VALUE IS NULL.


Thanks
Arun
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 128
Location: kerala,india

PostPosted: Fri Dec 08, 2006 10:52 am    Post subject: Re: POINTER clause
Reply with quote

Also i think pointer will take a storage space of 4 bytes .
is i am right
Back to top
View user's profile Send private message
pallavi_vibhute

New User


Joined: 04 Dec 2006
Posts: 4
Location: hyderabad

PostPosted: Fri Dec 08, 2006 6:46 pm    Post subject: Re: What is the use of POINTER clause
Reply with quote

Thnaks Arun for ur reply

regards,
pallavi.
Back to top
View user's profile Send private message
neelesht

New User


Joined: 24 Jul 2006
Posts: 99
Location: Los Angeles

PostPosted: Mon Dec 11, 2006 12:53 pm    Post subject:
Reply with quote

Hi Pallavi/Arun

Is this Pointer function available in COBOL, since I know this is one of the main features of PL1, but never knew that its available in COBOL as well .

Thanks,
Neelesh
Back to top
View user's profile Send private message
pallavi_vibhute

New User


Joined: 04 Dec 2006
Posts: 4
Location: hyderabad

PostPosted: Tue Dec 12, 2006 10:06 am    Post subject: Re: What is the use of POINTER clause
Reply with quote

hiii

im very new to mainframe & dont know PL/1 ... so better ask to Arun abt this pointer clause...

thanks
pallavi
Back to top
View user's profile Send private message
neelesht

New User


Joined: 24 Jul 2006
Posts: 99
Location: Los Angeles

PostPosted: Tue Dec 12, 2006 10:18 am    Post subject: Re: What is the use of POINTER clause
Reply with quote

Hi Pallavi,

Thanks alot.

Arun,
Could you please let me know something more about this Pointer in COBOL.

Thanks,
Neelesh
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Tue Dec 12, 2006 10:40 am    Post subject: Re: What is the use of POINTER clause
Reply with quote

Neelesh...

Check if it helps...
Back to top
View user's profile Send private message
neelesht

New User


Joined: 24 Jul 2006
Posts: 99
Location: Los Angeles

PostPosted: Tue Dec 12, 2006 10:49 am    Post subject:
Reply with quote

Thanks Priyesh.

Neelesh
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts READQ TS returning inconsistent addre... moezbud CICS 14 Wed May 04, 2016 1:09 am
No new posts [SQL0029] INTO clause missing from em... HABBIE DB2 2 Fri Sep 04, 2015 3:54 pm
No new posts 3-D Table with nested DEPENDING ON Cl... VivekKhanna COBOL Programming 5 Sat Aug 08, 2015 11:18 pm
No new posts Display the hexadecimal address of a ... M_Kaiser COBOL Programming 12 Thu May 28, 2015 5:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us