Вы находитесь на странице: 1из 18

| 

 
 

‡ 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
|   
  

‡ 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 the
screen
‡ RCD - Fields in the sub file part of the
screen display
þ  

Literal context :
CND - Used to establish that pre defined
condition value to be used
CON - Used to indicate a constant or
Literal value to be supplied
As per the Nike standard use only condition
not Constant
V   

Vystem context
Vystem context identifies fields that supply run time information and
fields that can be used to control the execution of programs

‡ JOB - Vystem fields that supply execution time information


Examples (Partial list)

Field Role
User Vystem name of job user
Job Date Current date of job
Job time Current time of job date
V   

‡ Program mode -
Add,Auto,change,display,enter,Velect
‡ Return code - Normal,User Quit , etc
‡ Record selected - Yes , No
‡ Reload sub file - Yes , No
‡ Vcan limit - Enter the No of records
þ|þ
 

‡ 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


applicable
 
  

‡ 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
4þþ4  
‡ 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 the
remaining parameters in the NLL context .
    

‡ 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 Vynon


error message will start with this error
|   

‡ Go to the spool file and find out the errors

‡ Another method is you can go to Job log


and find the errors
`   

‡ 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 .
¢ 
V 

‡ 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 .
±   

‡ Parameters is the primary method used to


pass values between functions .

‡ This is true for both internal and external


functions .
ë    ±   

‡ Name

‡ Usage Type

‡ Role
4  ±   
‡ 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
±   4

‡ 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
=       

‡ 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 function¶s panel
design
±    
‡ Ä  
  - This parameter is used to restrict
which records from a database file will be displayed
changed or printed by the functions . RVT parameter must
be the key fields .

‡   
  - 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 .

Вам также может понравиться