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.