The NOF program transfers all data from standard input directly to the application. The data is not formatted in any way by the NOF program, so you need to enter the records in the required format.
The following syntax is used to invoke the interfaces:
NOF.exe --view[<viewname>] [<input>]
Note: --view can be replaced with –v.
Where:
Parameter | Description |
---|---|
<viewname> | The view with which you want to connect. |
<input> | Command line input that is read by NOF.exe. It is possible to pipe a file containing NOF data |
The program waits for your input. Entering any random string (for example, Hello) results in an error because the string is not in the required format.
The following string is in the correct format:
CUST T00002524AUG999908FIR
If you enter this string but you have not populated the CUST ispec (to which it refers) with data, you receive the following message; ** ITEM NOT FOUND **.
Enter BYE
to exit the program.
Note: Ensure that the last four digits of the formatted input correspond to the current account month (in the format YYMM) otherwise you receive an error. The preceding digits, representing a full date, are not important.
Use NOF to access Ispec data
You can also pipe input data and output it as follows:
NOF -v SampleView <NOF.IN>NOF.OUT
An example of the contents of NOF.IN might look like:
CUST T00002524AUG999908FIR CUST T00002624AUG999908NEX CUST T00002724AUG999908INQ 2 CUST T00002824AUG999908NEX CUST T00002924AUG999908LAS BYE
The output from this data would appear as follows:
CUST T00006224AUG999908FIR 1 Customer #1 10001 APos APostal Addr 1 of 1 Postal Addr 2 of 1 Postal Addr 3 of 1 Delivery Addr 1 of 1 Delivery Addr 2 of 1 Delivery Addr 3 of 1 @ 15:53:48:22 INQUIRY REQUEST 0.00 ISPEC CUST CUST T00006324AUG999908NEX 1 Customer #1 10001 APos tal Addr 1 of 1 Postal Addr 2 of 1 Postal Addr 3 of 1 Delivery Addr 1 of 1 Delivery Addr 2 of 1 Delivery Addr 3 of 1 @ 15:53:48:16 INQUIRY REQUEST 0.00 ISPEC CUST ERROR Account month NOT OPEN < error for the INQ line CUST T00006424AUG999908NEX 1 Customer #1 10001 APos tal Addr 1 of 1 Postal Addr 2 of 1 Postal Addr 3 of 1 Delivery Addr 1 of 1 Delivery Addr 2 of 1 Delivery Addr 3 of 1 @ 15:53:48:17 INQUIRY REQUEST 0.00 ISPEC CUST CUST T00006524AUG999908LAS 2 Customer #2 10001 APos tal Addr 1 of 2 Postal Addr 2 of 2 Postal Addr 3 of 2 Delivery Addr 1 of 2 Delivery Addr 2 of 2 Delivery Addr 3 of 2 @ 15:53:48:23 INQUIRY REQUEST 0.00 ISPEC CUST BYE GOOD BYE
You can use the ADD command to add data, but it must be in the correct format to avoid misplacement.