Products Downloads


French version


 

 

ADELIA

      

      

      

      

(I/B)

 

 

 

 

 

Syntax

%CREATE_PGM QAVarId ProgramTemplate Option

 

ProgramTemplate

Þ

ProgramTemplateName | None

 

 

 

Option

Þ

*PARAMETERS SeriesVarId | None

 

Note: ProgramTemplate and SeriesVarId can be the name of variables to substitute.

 

Description

This instruction is used for the automatic creation of the description for an ADELIA type program.

This instruction must have an explanatory text. This text must not exceed 6 lines, with a maximum of 75 characters per line preceded by %%.

 

QAVarId is a variable which when returned contains the name of the program created.

 

If "*PARAMETERS SeriesVarId" is indicated, program parameters will be defined; their definition (length and number of decimals) corresponds to the one of the specified variables.

 

An intermediate dialog box used to create a program is presented, allowing you to specify additional information.

You can give the name of an existing program on this dialog box.

 

Example

1.   %CREATE_PGM CREATED_PGM_NME PROGRAM_TEMP_1

%%Explanatory text for program

%%to be created.

 

In this example, a program, with a name corresponding to the contents of the CREATED_PGM_NME variable is created with a program template called PROGRAM_TEMP_1.

 

2.   %CREATE_PGM CREATED_PGM_NME $PROGRAM_TEMP

%%Explanatory text for program

%%to be created.

 

In this example, the same program is created with a program template stipulated by a variable.

 

3.   DECLARE WRETCO;WRETURN_CODE 1

%CREATE_PGM PGM_NAME *PARAMETERS WRETURN_CODE

%%Explanatory text for program

%%to be created.

 

In this example, a program is created with a one character-long alphanumeric parameter (WRETURN_CODE being defined as a 1 character-long alphanumeric variable).

 

List of Q/A instructions by topic

 

↑ Top of page


  • Aucune étiquette