Aller au contenu

Custom Variables

Ce contenu n’est pas encore disponible dans votre langue.

You can create custom variable to use in your “Command to run” strings. To access custom variables:

Use F1, then search for “IBM i Custom variables”:

F1 + IBM i Custom Variable


Or from the User Library List browser:

Library List Browser


In the Work with Variables tab, click on New Variable to add your variable.

Click on a custom variable to change it or delete it.

Variables list after Save


Here we are adding a variable named &TARGET_RLSE.

Press Save and the list of custom variables is shown.

Adding TARGET_RLSE


Example Usage

In all the CRTBNDxxx actions add TGTRLS(&TARGET_RLSE), like this:

?CRTBNDCL PGM(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF) OPTION(*EVENTF) DBGVIEW(*SOURCE) TGTRLS(&TARGET_RLSE)

Now a single change to the TARGET_RLSE custom variable can impact all the CRTBNDxxx actions.