Quantcast
Channel: RM COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 207

Clearing a Pointer

$
0
0

I have a question about clearing a pointer, please.

I'm working on a program that uses a pointer.
       01  REQUEST-PAYLOAD   usage pointer.
       01  ZERO-LENGTH       PIC X VALUE x"00".      

The program uses this command to set the pointer:
SET REQUEST-PAYLOAD TO ADDRESS OF WK-CODE-BODY(1:CODE-LEN)

The program uses this coomand to clear the pointer:
SET REQUEST-PAYLOAD   TO ADDRESS OF ZERO-LENGTH

My question:
Is this the proper and most efficient way to clear a pointer set by the application?

All advice, comments, and suggestions will be welcome.


Viewing all articles
Browse latest Browse all 207

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>