USR2022N

What does CC 16 mean that I received from USR2022N?
Or where can I find these condition codes?
By the way, it is an API to insert GUID into saved data area.

Thanks,
Dieter Storr

Hi Dieter,

From USR2022T Library SYSEXT:

16 = No Variable for insertion of
GUID found

Aldo

Aldo,

Thanks for the response. I am still struggling with USR2022N.

  1. It seems that DBID and FNR are transposed in the example
    02 P_DBID (I4)
    02 P_FNR (I4)

This is correct:
0010 DEFINE DATA LOCAL
0020 1 PARMS
0030 2 P_AREA (A8)
0040 2 P_LIB (A8)
0050 2 P_FNR (I4)
0060 2 P_DBID (I4)
0070 2 P_PSW (A8)
0080 2 P_CIPH (A8)
0090 2 P_RESPONSE (I4)
0100 END-DEFINE

  1. Supporting the right LDA name results in error 16.
    Maybe a parm field is missing?

0270 *
0280 P_AREA := ‘GUIDLDA2’
0290 P_LIB := ‘SDSYLIB’
0300 P_DBID := 112
0310 P_FNR := 205
0320 * P_PSW := ’ ’
0330 * P_CIPH := ’ ’
0340 P_RESPONSE := 0
0350 *
0360 CALLNAT ‘USR2022N’ PARMS
0370 *
0380 DISPLAY P_RESPONSE
0390 END

Page 1

P_RESPONSE

16

Thanks,
Dieter Storr

Dieter,

As DBID and FNR are already transposed, perhaps that response codes are transposed too and GUID generation is not possible at all on MF.

Response codes in USR2022T:

12 = GUID cannot be generated
16 = No Variable for insertion of
GUID found

Transposed:

16 = GUID cannot be generated
12 = No Variable for insertion of
GUID found

Just an idea …

Aldo

I think that the problem is that I received the following when I tried to mark a field in an LDA with an ‘U’

Local DIET-LDA Library WKSTRS12 DBID 112 FNR 205
Command > +
I T L Name F Length Miscellaneous
All – -------------------------------- - ---------- ------------------------->
U 1 FIELD1 A 36 /* GUID NOT GENERATED
1 FIELD2 A 10

Any ideas?

Dieter Storr

How about generating the GUID with Natural on the PC and cut and paste it to the MF ?

Just an another idea …

Aldo

Hi Dieter
GUID generation requires NaturalX. NaturalX support, however, has been dropped on the MF platform in one of the NAT41 releases. I suppose it was NAT412.

Hi,

Is there way in today’s world of Natural ADABAS to generate a GUID on Natural?

Regards
Sriram

There are a number of UUID / GUID generators out on the net, some with REST APIs, so if the firewall allows you might just want to issue a REQUEST DOCUMENT to retrieve one.

Hi Wolfgang,

Thanks for your reply. I’m more seeing if we could generate a GUID within Natural without using the REQUEST DOCUMENT for the GUID generated by any other softwares.

Is there a way, to do this?

No “natural” way, I’m afraid.

If PL/1 is available there is a function to do this, so a PL/1 program can be called from NATURAL to return e UUID

Thanks Wolfgang, for your reply.