Joined: 13 Jun 2007 Posts: 443 Location: Wilmington, DE
The most important concept of IMS is POSITION. IMS is very smart. It knows where it is.
For instance - think about doing a path insert with 2 higher level fully qualified SSA. You do not get spaces in your return status code. What happened? You think maybe the segment was already there, but your status code is NOT II. It is GE. GE indicates not found. Now look at the segment level returned and you will know on which of your fully qualified key ssa statements was in error.
Thanks for the reply.
My program makes a GN call with the primary key for the database which is
num PIC 9(6)
dept PIC X(3).
In the program, I supply the value to the partial Key "NUM" only and use "LOW VALUES" for Dept. When I make the GN call it gives me a code "GE" even if the NUM value is present in the database.
my SSA checks for NUMDEPT >= DB primary key.
Can you please explain this behaviour.
Joined: 13 Jun 2007 Posts: 443 Location: Wilmington, DE
Are you using a boolean SSA with greater or equal? I think you are using just equal and there is no such key. Try displaying the PCB concatenated key value.
Joined: 13 Jun 2007 Posts: 443 Location: Wilmington, DE
If you use just > you must check for a change in num value if you do not want anything other the value that you are loading. If you use a boolean, then you would load num value and load high values in the second part of the ssa for dept and < in the operator.