Download - Contexts parameters
-
8/7/2019 Contexts parameters
1/18
Context in the action diagram
Identifying field as a parameter for a
condition or built in function is a two step .
Identify the context of the field
you must select a specific field to belong to that type
DB and Design context : DB1 - Fields in the first data base record
DB2 - Fields in the 2nd data base record
-
8/7/2019 Contexts parameters
2/18
Context in the action diagram
KEY - Fields in Key screen
DTL - Fields in 1st detail screen display 2nd - Fields in the 2nd detail screen display
3rd - Fields in the 3rd detail screen display
CTL - Fields in the sub file control of thescreen
RCD - Fields in the sub file part of the
screen display
-
8/7/2019 Contexts parameters
3/18
Literal context
Literal context :CND - Used to establish that pre defined
condition value to be used
CON - Used to indicate a constant orLiteral value to be supplied
As per the Nike standard use only condition
not Constant
-
8/7/2019 Contexts parameters
4/18
System context
System contextSystem context identifies fields that supply run time information and
fields that can be used to control the execution of programs
JOB - System fields that supply execution time information
Examples (Partial list)
Field Role
User System name of job user
Job Date Current date of job
Job time Current time of job date
-
8/7/2019 Contexts parameters
5/18
System context
Program mode -
Add,Auto,change,display,enter,Select
Return code - Normal,User Quit , etc
Record selected - Yes , No
Reload sub file - Yes , No Scan limit - Enter the No of records
-
8/7/2019 Contexts parameters
6/18
LCL and WRK context
LCL context is Local to a function where
WRK is global to function
As per Nike programming standards we
have to strictly use LCL context rather than
WRK context .
Give preference to LCL where ever it is
a licable
-
8/7/2019 Contexts parameters
7/18
Report device context
Current report Format (CUR) - refers to
format being processed at this point in the
report function
Next report Format(NXT) - refers to the
format following CUR format
-
8/7/2019 Contexts parameters
8/18
NLL(
Null context)
NLL context is used only in the output parameters .
The purpose of NLL is to nullify the output parameters.
The main usage is when we use existing RTVOBJ which
has got many output parameters and you need only few
parameters to be used in the calling functions , retrieve theremaining parameters in the NLL context .
-
8/7/2019 Contexts parameters
9/18
Generartion errors
When errors occur during the generation of
function you can locate the errors and
determine their nature by scanning through
the source code
Type F followed by E* y2 . Any Synon
error message will start with this error
-
8/7/2019 Contexts parameters
10/18
Compilation errors
Go to the spool file and find out the errors
Another method is you can go to Job log
and find the errors
-
8/7/2019 Contexts parameters
11/18
Impact analysis
If you make a change to your database
design and compiled the design objects,you
must recompile all functions using the
database
If you make a change to a internal function
regenerate the all used internal as well as
external functions .
-
8/7/2019 Contexts parameters
12/18
To find the USA
GE
Type U in the Edit function next to the
function which you want to find the usage .
In the scope Type *GENFUN and filter
*GENFUN where all the generated
functions using the functions will be
displayed .
-
8/7/2019 Contexts parameters
13/18
P
arameters
Parameters is the primary method used to
pass values between functions .
This is true for both internal and external
functions .
-
8/7/2019 Contexts parameters
14/18
B
asic properties ofP
arameters
Name
Usage Type
Role
-
8/7/2019 Contexts parameters
15/18
N
ame ,Usage-P
arameter Name : The function parameter name defines the name of the field
to be used as parameter
Usage :Usage is defined in reference to the function which receives it
or returns value
Input only - When a function is called , a value is
passed into the function for the parameter . No value
is returned
Output only - When the function finishes a value is
returned from the function
Both - (input and output) When the function is
called a value is passed in . When the function
finishes a value is returned
-
8/7/2019 Contexts parameters
16/18
P
arameter-N
either
Neither - It is neither input nor output nor
Both . The parameter is mainly used as a
Local variables in the versions when LCL
context was not available
-
8/7/2019 Contexts parameters
17/18
Fu
nction parameters-Role
The role of the function parameter specifies
how the parameter will be used in the
function into which it was passed
MAP parameter- The parameter is
automatically moved into the corresponding
field on the receiving functions panel
design
-
8/7/2019 Contexts parameters
18/18
P
arameter-Role Restrictor parameter - This parameter is used to restrict
which records from a database file will be displayed
changed or printed by the functions . RST parameter mustbe the key fields .
Positions parameter - This parameter is used to position a
function to start reading records from a database file at a
particular record. It must be key fields in the access path
to which the their function attaches .