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

What is the use of POINTER clause


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 2481
Location: @my desk

PostPosted: Fri Dec 08, 2006 10:48 am
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: 127
Location: kerala,india

PostPosted: Fri Dec 08, 2006 10:52 am
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
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
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
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
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: 1448
Location: Chicago, IL

PostPosted: Tue Dec 12, 2006 10:40 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts To search DB2 table based on Conditio... DB2 1
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts NOT IN clause in COBOL pgm COBOL Programming 8
No new posts SUSBSCRIPT WITH SIGN IN PIC CLAUSE COBOL Programming 3
No new posts usage of CASE in WHERE clause DB2 10
Search our Forums:

Back to Top