NC90 Routine  
Previous  Top  Next

Description  
 
This routine is used to enter formatted data at a specific point on the screen and validates the type of data entered against the type of data requested. It also allows "hotkeys" to be used and executes the relevant functions.  

Syntax  
 
Uses the common area to pass the required processing information:  
 
Common Variable
Description of how the variable is used
Examples/ranges
C
Column Position of Input Field
0 to 999
L
Line/row of Input Field
0 to 23
Fmt
The Query Language format statement
e.g. L(#10) or R26(#8)
TYP
Type of data to be entered
0-9

0 = Alphanumeric data


1 = Numeric data only


2 = Date only


3 = Time only


4 to 7 = as 0-3 but data is protected (starred-out)


8 = fixed length


9 = WP type text field - word wrapped within the window, must be a multi-valued field.

MSG
Help text to assist operator during entry
**
LKUP
If F3 or "*" is entered NC90 uses the contents of LKUP as the file name to be searched.

ZVAL
The contents are used as the default for input. They are automatically displayed prior to entry. The entered data is also returned in ZVAL

 

document Remarks  
 
The data sent to NC90 via ZVAL must be unformatted (i.e. in internal format) and the data returned will also be in internal format. The data is displayed and must be entered as formatted data (external format).  

A date can be entered as "dd", "mmdd"-"ddmm" or in full. The year can be two digit OR four digit and the separators are optional for entry.  

** MSG can be any text or [nnn] where nnn is a line number within the record MESSAGE in the file _CONTROL that contains the text.  

An alternative routine is also supplied that does not use the common area to pass data but fields are defined within the CALL statement. See the next page MV.INPUT. The routines are slightly different.