This would have been better on IBM-Main. It is not a question about the 
assembler.

>I have been using a IEANTCR and then a Storage Obtain..

Doing the obtain after IEANTCR seems unlikely to be the proper order.
The name/token protocol is typically something like this, unless you have 
serialization across all potential users so that there cannot be 
concurrent retrieves:

Loop
  IEANTRT to retrieve the token
  If RC indicates "token exists" then
    Leave loop
  Else if bad-RC then 
    error-exit
  Obtain and fill in storage
  Set up 16 byte token to locate that storage
  IEANTCR to create the name/token 
  If RC indicates "name/token already exists" then
    Free the obtained storage
  Else if bad-RC then 
    error-exit
EndLoop

Peter Relson
z/OS Core Technology Design

Reply via email to