Products Downloads


French version


 

Warning: This can only be used with the RPG version of Adelia.

 

Description

This is not an Adelia instruction but simply an option which is offered when RPG generation is requested. The Info DS of a program allows access to information such as:

  • the program name,

  • the library name where the program is located,

  • the last file used,

  • the job name,

  • the user name,

  • etc.

With Adelia/400 this information can be personalized.

 

To recover this information, either the "Info DS of the program" option must be requested when generating the RPG source, or an Info DS reserved word must be used in the program.

 

This results in the creation of the @DSPGM DS in the RPG source.

 

Example:

  RPG source generation option: (INFOPGM = 'O')

 

W_USER_NAME = *USER

The job user name is assigned to the variable W_USER_NAME

 

↑ Top of page

  • Aucune étiquette