Re:Get storage

Discussion created by ca.portal.admin on Jul 22, 2009
Thanks to Tommy's and Peter's suggestion, I am now getting a clean compile. But I don't seem to be getting a valid pointer back at run time. Can anyone provide a way to convert the pointer to a displayable format? Or better yet, some sample code that uses the pointer parameter for ""get scratch""?

I wish the storage interface had separate ""get"" and ""put"" commands, like the scratch and queue interfaces do. I am having some difficulty determining which parameters apply to which situation.
IDMS Public Discussion Forum


Re: Get storage
You could always write an assembler routine that does the GETSTG passing =
it the length and it returning the pointer. Sorry but I missed why the =
use of LENGTH and POINTER are so important. =20


From: IDMS Public Discussion Forum on behalf of Rozeboom, Kay [DAS]
Sent: Thu 23/07/2009 15:48
Subject: Re: Get storage

I was wrong about getting a clean compile. When I looked at the code =
generated by the pre-compiler (which I should have done earlier), there =
was no reference to the length or pointer fields. And lo and behold, =
there were some warning (not error) messages saying that these =
parameters were not valid. No wonder my pointer wasn't working - it =
hadn't been set by the ""get storage"" command, so contained garbage.

Apparently you really can't use these parameters with COBOL LE. Bummer.