I am having problem in using the USR1068N API. I am trying to figure out the no. of db calls issued in an online program which is a very old program and it uses reporting mode.
When I tried to run the following it throws NAT0936 error
The CALLNAT statement is placed inside the Histogram statement loop. I can understand from the error, that it is something related to the variable definition, but I am not able to figure out the error:oops: Could you please help me :?:
Format/length conflict in parameter :1: (:2: :3:/:4:/:5:/:6:).
Tx*** Short Text ***
Format/length conflict in parameter :1: (:2: :3:/:4:/:5:/:6:).
Ex*** Explanation ***
The parameter defined at position :1: in object :3: (of type :2:,
loaded from library :4:, database :5:, file number :6:) does
not match the format/length of the corresponding parameter used to
invoke it.
The following conditions must be met:
- The formats must be equal.
USR1068N is expecting 6 parameters to be passed in the following formats: A2, I2, I2, I2, I4, and A1. You are passing 2 parameters, A12 and A1. Your redefinitions make no difference. You will need to define your local fields to match the parameters expected by the module. In report mode that would look like:
Thanks for your suggestion. It is working. I have very little exposure in working with reporting mode. Is there any document which explains about the variable definition in reporting mode?
Since none of the outsource companies in India seem willing to actually send their employees to Natural classes, you must fall back on things like the Natural reference manual, a poor second choice to an interactive class.