Advantage 2E Command Reference
Advantage 2E Command Reference
This documentation may not be copied, transferred, reproduced, disclosed or duplicated, in whole or in part,
without the prior written consent of CA. This documentation is proprietary information of CA and protected by the
copyright laws of the United States and international treaties.
Notwithstanding the foregoing, licensed users may print a reasonable number of copies of this documentation for
their own internal use, provided that all CA copyright notices and legends are affixed to each reproduced copy. Only
authorized employees, consultants, or agents of the user who are bound by the confidentiality provisions of the
license for the software are permitted to have access to such copies.
This right to print copies is limited to the period during which the license for the product remains in full force and
effect. Should the license terminate for any reason, it shall be the user’s responsibility to return to CA the reproduced
copies or to certify to CA that same have been destroyed.
To the extent permitted by applicable law, CA provides this documentation “as is” without warranty of any kind,
including without limitation, any implied warranties of merchantability, fitness for a particular purpose or
noninfringement. In no event will CA be liable to the end user or any third party for any loss or damage, direct or
indirect, from the use of this documentation, including without limitation, lost profits, business interruption,
goodwill, or lost data, even if CA is expressly advised of such loss or damage.
The use of any product referenced in this documentation and this documentation is governed by the end user’s
applicable license agreement.
Provided with “Restricted Rights” as set forth in 48 C.F.R. Section 12.212, 48 C.F.R. Sections 52.227-19(c)(1) and (2) or
DFARS Section 252.227-7013(c)(1)(ii) or applicable successor provisions.
All trademarks, trade names, service marks, and logos referenced herein belong to their respective companies.
Contents
Chapter 1: Introduction
Purpose ..................................................................................... 1-1
Organization ................................................................................ 1-1
Contents .................................................................................... 1-1
Acronyms Used in this Module ............................................................... 1-2
Contents iii
YAPYTRNMDL (Apply Translation to Model) Command ........................................ 3-9
Parameters ..............................................................................3-10
Notes ...................................................................................3-11
Example ................................................................................3-11
YBLDJOBLST (Build Job List) Command ......................................................3-11
Parameters ..............................................................................3-12
Notes ...................................................................................3-15
Example ................................................................................3-16
YBLDMDLLST (Build a Model Object List) Command ..........................................3-16
Parameters ..............................................................................3-17
Notes ...................................................................................3-20
Example ................................................................................3-21
YCHGMDLLE (Change a Model Object List Entry) Command ...................................3-21
Parameters ..............................................................................3-21
Notes ...................................................................................3-23
Example ................................................................................3-23
YCHGMDLOBJ (Change Model Object) Command .............................................3-23
Parameters ..............................................................................3-25
Example ................................................................................3-30
YCHGMDLOD (Change Model Object Description) Command ..................................3-30
Parameters ..............................................................................3-31
Notes ...................................................................................3-32
Example ................................................................................3-33
YCHGMDLPRF (Change Model Profile) Command.............................................3-33
Parameters ..............................................................................3-35
Notes ...................................................................................3-40
Example ................................................................................3-40
YCHGMDLVAL (Change Model Value) Command .............................................3-41
Parameters ..............................................................................3-41
Notes ...................................................................................3-41
Model Values in Alphabetical Order .......................................................3-42
Model Values Grouped By Role ...........................................................3-45
YACTSYM ..............................................................................3-47
YCUAPMT ..............................................................................3-48
YLHSFLL ...............................................................................3-49
YWBDCHR .............................................................................3-49
YGENHLP ..............................................................................3-59
Unchangeable Model Values ..............................................................3-63
YCHKDTAMDL (Check Data Model) Command ...............................................3-64
Parameters ..............................................................................3-64
Example ................................................................................3-65
Contents v
Parameters ..............................................................................4-16
Notes ...................................................................................4-21
Example ................................................................................4-28
YCRTGENOBJ (Create Generation Objects) Command ..........................................4-29
Parameters ..............................................................................4-29
Notes ...................................................................................4-31
Example ................................................................................4-32
YCRTJOBLE (Create Job List Entry) Command .................................................4-32
Parameters ..............................................................................4-32
Notes ...................................................................................4-34
Example ................................................................................4-34
YCRTMDLLIB (Create Model Library) Command ..............................................4-35
Parameters ..............................................................................4-36
Notes ...................................................................................4-43
Example ................................................................................4-45
YCRTMDLVSN (Create Model Version) Command .............................................4-46
Parameters ..............................................................................4-47
Notes ...................................................................................4-49
Example ................................................................................4-49
YCRTOBJVSN (Create Object Version) Command ..............................................4-49
Parameters ..............................................................................4-50
Example ................................................................................4-51
YCRTSQLLIB (Create SQL Library) Command .................................................4-51
Parameters ..............................................................................4-51
Notes ...................................................................................4-53
Example ................................................................................4-53
YCVTCNDVAL (Convert Condition Values) Command ........................................4-53
Parameters ..............................................................................4-53
Notes ...................................................................................4-54
Example ................................................................................4-54
YCVTDSTFIL (Convert Distributed Files) Command............................................4-55
Parameters ..............................................................................4-55
Notes ...................................................................................4-56
Example ................................................................................4-56
YCVTJOBLST (Convert a Job List to Advantage 2E 400 Toolkit Object List) Command .............4-56
Parameters ..............................................................................4-57
Notes ...................................................................................4-59
Example ................................................................................4-59
YCVTMDLLST (Convert Model List to Job List) Command ......................................4-59
Parameters ..............................................................................4-60
Notes ...................................................................................4-63
Contents vii
Parameters ............................................................................... 5-5
Notes .................................................................................... 5-6
Example ................................................................................. 5-7
YDOCMDLFLD (Document Model Fields) Command ........................................... 5-7
Parameters ............................................................................... 5-7
Notes .................................................................................... 5-8
Example ................................................................................. 5-8
YDOCMDLFUN (Document Model Functions) Command ....................................... 5-8
Parameters ............................................................................... 5-9
Notes ...................................................................................5-13
Example ................................................................................5-15
YDOCMDLLST (Document a Model Object List) Command .....................................5-15
Parameters ..............................................................................5-15
Notes ...................................................................................5-17
Example ................................................................................5-17
YDOCMDLMSG (Document Model Messages) Command ......................................5-17
Parameters ..............................................................................5-17
Notes ...................................................................................5-18
Example ................................................................................5-18
YDOCMDLREL (Document Model Relations) Command .......................................5-18
Parameters ..............................................................................5-19
Notes ...................................................................................5-20
Example ................................................................................5-21
YDOCURF (Document Unreferenced Objects) Command .......................................5-21
Parameters ..............................................................................5-21
Example ................................................................................5-23
YDSPJOBLST (Display a Job List) Command ...................................................5-23
Parameters ..............................................................................5-23
Notes ...................................................................................5-24
Example ................................................................................5-25
YDSPMDLLST (Display a Model Object List) Command ........................................5-25
Parameters ..............................................................................5-25
Notes ...................................................................................5-26
Example ................................................................................5-26
YDSPMDLOD (Display Model Object Description) Command ...................................5-27
Parameters ..............................................................................5-27
Notes ...................................................................................5-28
Example ................................................................................5-29
YDSPMDLREF (Display Model References) Command .........................................5-29
Parameters ..............................................................................5-31
Notes ...................................................................................5-35
Contents ix
Example ................................................................................5-70
YEXCSQL (Execute SQL Statements) Command ................................................5-70
Parameters ..............................................................................5-70
Example ................................................................................5-71
YFLTMDLLST (Filter a Model Object List) Command ...........................................5-72
Parameters ..............................................................................5-74
Notes ...................................................................................5-83
Examples ...............................................................................5-84
YINXMDLLST (Index a Model List) Command .................................................5-85
Parameters ..............................................................................5-86
Notes ...................................................................................5-87
Example ................................................................................5-87
YOPRMDLLST (Operate on a Model Object List) Command .....................................5-87
Parameters ..............................................................................5-88
Notes ...................................................................................5-90
Examples ...............................................................................5-91
Contents xi
Parameters ..............................................................................6-55
Notes ...................................................................................6-57
Example ................................................................................6-57
Index
Introduction
1
This preface introduces the Command Reference Guide. It provides you with
information on how the module is organized, identifies the contents, and lists the
established conventions. Command Reference is part of a documentation set that
provide instructions on how to use the Advantage 2E product (formerly known
as COOL:2E).
Purpose
This reference module describes Advantage 2E commands. The next chapter tells
you how to execute an Advantage 2E command.
Organization
The information in this guide is organized for quick and easy access. All
Advantage 2E commands are listed in alphabetical order. Each command is
documented according to the OS/400 convention.
Contents
The Command Reference module includes an introductory chapter telling you how
to execute an Advantage 2E command, the commands listed in alphabetical
order, and an appendix grouping the commands by functional area. For each
command there is:
■ A summary of the function of the command.
■ A command diagram.
■ A description of each parameter and allowed values for the command.
■ A list of notes regarding any restrictions or extra considerations.
■ An example or examples using the command.
Introduction 1–1
Acronyms Used in this Module
Executing Commands
2
This chapter describes how to execute an Advantage 2E command and how to
determine which running environment is valid for each command. The
following instructions provide information for executing a command
interactively or submitting the command to batch.
Interactively
In Batch
At the command prompt, enter “SBMJOB” and press F4. Enter the command in
the Command to run (CMD) parameter. Then follow the above instructions,
steps 2 through 4. Press Enter on the SBMJOB panel to submit your job to batch.
The following table shows the possible combinations and their meanings.
Code Meaning
Job: B The command can be run in batch as a
separate function.
Job: I The command can be run interactively
as a separate function.
Job: B,I The command can be run either in
batch or interactively as a separate
function.
Pgm: B The command can be run as part of a
compiled CL program that is called in
batch.
Pgm: I The command can be run as part of a
compiled CL program that is called
interactively.
Pgm: B,I The command can be run as part of a
compiled CL program that is called
either in batch or interactively.
Required
*OBJSGT
*SELECT
*ACP
*NONE *APP
YADDMDLLE OBJNAM
*ARRAYS *ARR
*MESSAGES *CND
object name
owner name *FLD
*FIL
*FUN
*MSG
*OBJNAM
OBJSGT
object surrogate
Optional
*MDLPRF
*MDLLIB/
*USER
MDLLST
*SELECT
model library
list name
*SAME
OUTFLAGVAL *NONE
*SELECTED
*SAME
OUTCPYOBJ *NONE
*SELECTED
Parameters
OBJNAM
The object name to be added. This parameter consists of three elements which
together identify a model object. Values for this parameter are described in the
following:
*OBJSGT—(default) Single value indicating that the object surrogate is used to
identify the model object to be added.
*SELECT—Single value indicating that the object to be added is selected using
an interactive display function.
object owner name—The character name of the object that owns the object to be
added. Thus, for a function, the owning file would be entered.
*ARRAYS—Special value for the product internal file *ARRAYS.
*MESSAGES—Special value for the product internal file *MESSAGES.
object name—The character name of the object to be added.
object type—The object type of the object.
*ACP—Object is of type access path.
*APP—Object is of type application area.
*ARR—Object is of type array.
*CND—Object is of type condition.
OBJSGT
Unique number identifier of the model object that is added. Values for this
parameter are described in the following:
*OBJNAM—(default) Use object name to identify the model object to be added.
object surrogate—The surrogate number of the model object.
MDLLST
The qualified name of the model object list to which the entry is added. Values
for this parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile extension record for the current user in the
specified model library.
*USER—Special value meaning that the user profile name of the current user is
used as the list name for the target of the command.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
list name—The name of the list to be added.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used.
library name—The name of the model library.
OUTFLAGVAL
This parameter specifies the initial value to be placed in the object selected flag
associated with each list entry. Values for this parameter are described in the
following:
*SAME—(default) No flag value is to be used. New entries are written with the
flag indicating that the entry is not selected. There is no change to the selection
status of existing entries.
*NONE—New and existing entries are flagged as not selected.
*SELECTED—New and existing entries are flagged as selected. This flag can be
used by other list commands when selecting list entries.
OUTCPYOBJ
This parameter specifies the initial value to be placed in the copy object flag
associated with each list entry. This flag is used by the Copy Model Object
Command (YCPYMDLOBJ) when selecting objects to copy to a target model.
Values for this parameter are described in the following:
*SAME —(default) No flag value is to be used. New entries are written with the
flag indicating that the entry is not selected. There is no change to the selection
status of existing entries.
*NONE—New and existing entries are flagged as not selected.
*SELECTED—New and existing entries are flagged as selected.
Notes
■ A value other than *MDLLIB for MDLLST can result in the library list being
changed during execution of this command. If the user is currently editing a
model, the switching of the library list will not occur and the command will
fail. If changed during processing, the library list is changed back after
execution.
■ Model objects can either be identified by object name (OBJNAM) or by object
surrogate key number (OBJSGT). If the OBJNAM parameter is used, the
processing program must convert to surrogate key number internally. Thus,
it will normally be more efficient to use the surrogate number if this value is
available. The surrogate number for an object can be obtained using the
Retrieve Model Object command (YRTVMDLOBJ).
■ The object to be added to the target list must exist in the model.
Example
To add the Display Product Details function to model object list WRKLST, and to
have the new entry flagged as selected:
YADDMDLLE OBJNAM('Product' 'Display Product + Details' *FUN)
MDLLST(*MDLLIB/WRKLST) + OUTFLAGVAL(*SELECTED)
Required
*MDLLIB
Parameters
MDLLIB
The name of the model library in which component changes are applied. Values
for this parameter are described in the following:
*MDLLIB—(default) Special value meaning that the model library is the first
model found in the current job's library list.
*CURLIB—Special value meaning that the model library is the current library
for the job.
model library name—The name of the model.
Notes
■ Processing involves the examination of all objects in the model that have
been changed but that have not had component change processing applied.
The using objects of each of these objects are expanded and the change type
associated with the changed object is propagated throughout them. The
changed object is then updated to show that component change processing
has been applied.
■ Processing includes a call to an exit program for each using object
encountered. The details of the call are as follows:
Program : YCMPCHGR1C
Interface : Return code : 7 characters
Original surrogate : 7 decimals
Object surrogate : 7 decimals
Change type : 3 characters (GEN or EDT)
Developers can use the program to include any additional processing they
desire. For example, it can be used to update an external database tracking
changes in the model, or to place an entry onto a model list for later
resolution of the component change that has happened to a given object.
Additional information is included in the source for the exit program which
is shipped in file QCLSRC in library Y2SYSRC.
Example
To apply component changes in the model library that is the highest model in
the current library list:
YAPYCMPCHG MDLLIB( *MDLLIB )
Required
lib name
generic* lib
YAPYMDLCHG MDLLIB
name
*CURLIB
Parameters
MDLLIB
Name of library containing a design model to which the changes are applied. A
generic name is allowed; for example, AB*. Values for this parameter are
described in the following:
*ALL—All models on the machine are upgraded. (Models which have already
been upgraded are ignored).
*CURLIB—Use current library for invoking job.
Notes
■ You should make a backup of the design model before running this
command.
■ You must have object existence rights to the model to be able to run this
command; that is, to all the objects in the model library.
■ The current release level of the design model is indicated by a data area
YMDLLVLRFA, a copy of which resides in each model library. You can see
the value on the model values display.
■ The current release level of the design model expected by Advantage 2E is
indicated by a data area YMDLLVLSYA in the product library. You can see
the value on the system parameter display.
■ The YAPYMDLCHG command is generally cumulative. See your installation
instructions regarding any restrictions. If you have an old model that you
have archived to cartridge or tape and then restored, you can use the
YAPYMDLCHG command to bring the model up to date.
■ The YAPYMDLCHG command invokes the command Apply System Data to
Model (YAPYSYSMDL) if necessary.
■ Once a model has been upgraded to a new level using the YAPYMDLCHG
command, it cannot be converted downwards again.
■ If this command fails, you should resolve the problem with your product
support representative, then restore the backup copy of your model from
tape and start again.
■ If all of the prior level files are not deleted by YAPYMDLCHG, an error
message is issued at the end of the conversion. These files will have been
renamed to start with Z. The usual cause of this problem is user logical files
that are built over design model physical files. The model is properly
converted, but you must manually delete these Z files.
Example
Required
library name
YAPYSYSMDL MDLLIB
*CURLIB
Parameters
MDLLIB
Name of library containing a design model. The system object part of this model
is to be updated. The value for this parameter is described in the following:
*CURLIB—Use current library for invoking job.
Notes
■ The current release level of the system objects in a model is indicated by a
data area YMDLNBRRFA, a copy of which resides in each model library.
You can see the current value on the model values display.
■ The current release level of the system objects required by Advantage 2E is
indicated by the data area YMDLNBRSYA in the product library. The
current value can be seen on the model values display.
■ You automatically invoke this command by using the command Apply
Model Changes (YAPYMDLCHG)
Example
Required
library name
YAPYSYSMDL MDLLIB
*CURLIB
Parameters
MDLLIB
Name of library containing a design model to which the translations are applied.
The value for this parameter is described in the following:
*CURLIB—Use current library for invoking job.
LNG
National language used for translation. Values for this parameter are described
in the following:
DAN—Danish
DTC—German
ELL—Greek
ENG—English
ESP—Spanish
FIN—Finnish
FRN—French
HRZ—Croatian
ITA—Italian
JPN—Japanese
NDL—Dutch
NSK—Norwegian
PTG—Portuguese
SLO—Slovenian
SVK—Swedish
UCS—English Upper Case
Notes
■ You must have the appropriate national language product library installed
on your machine in order for the command to function.
■ You must have object existence rights to all the objects in the model library to
be able to run this command.
■ The current national language of the data model is shown on the system
parameter display (YDSPMDLVAL).
■ The release level of the data model and the national language product level
must be compatible.
Example
Optional
*ALL
YBLDJOBLST APPCDE
application area
*ALL
*ALL
MDLACP *NONE
*ALL
MDLACPYTYP *LGL
*ALL
*ACP
MDLFUN *LGL MDLFUNSEL
*FIL
*GEN
*GEN
ACPACT *CRT FUNACT
*CRT
*NO
*MDLLIB/ *MDLPRF
*CURLIB/ *USER
JOBLST
*MDLPRF/ *WRKSTN
*REPLACE *YES
LSTOPT CUROBJ
*ADD *NO
Parameters
APPCDE
Name of the application area from which the objects to be included in the job list
are selected. The value for this parameter is as follows:
*ALL—(default) Include functions and access paths from all application areas.
MDLFILE
Generic name of files whose dependent access paths and/or functions are
included in the job list. Values for this parameter are described in the following:
*ALL—(default) Include the objects dependent on all user-defined files in the
model.
*GENERIC—Use generic name.
MDLACP
Generic name of access paths that are included in the job list. Values for this
parameter are described in the following:
*ALL—(default) All access paths for the specified files are included.
*NONE—No access paths are included.
*GENERIC—Use generic name.
MDLACPTYP
Specifies the type or types of access paths you want to include in the job list.
Values for this parameter are described in the following:
*ALL—(default) Include all access path types.
*LGL—Include all types of access paths other than PHY.
*PHY—Include only physical access paths.
*UPD—Include only update access paths.
*RTV—Include only retrieval access paths.
*RSQ—Include only resequence access paths.
*QRY—Include only query access paths.
*SPN—Include only span access paths.
MDLFUN
Generic name of functions included in the job list. Values for this parameter are
described in the following:
*ALL—(default) Include all functions for the specified files or access paths.
*NONE—Do not include any functions.
*GENERIC—Use generic name.
MDLFUNSEL
Specifies whether the functions you want to include in the job list are those based
on the selected files or those based on the selected access paths. Values for this
parameter are described in the following:
*ACP—(default) Select functions based on the access paths specified by the
MDLACP and MDLACPTYP parameters.
*FIL—Select functions based on the files specified by the MDLFIL parameter.
ACPACT
Activity to be requested for job list entries for access paths. Values for this
parameter are described in the following:
*GEN—(default) Generate and compile.
*CRT—Compile only.
*NO—Do not add to job list, only use to select functions.
FUNACT
Activity to be requested for job list entries for functions. Values for this
parameter are described in the following:
*GEN—(default) Generate and compile.
*CRT—Compile only.
JOBLST
Qualified name of a job list where you place entries. Values for this parameter
are described in the following:
*MDLPRF—(default) The job list name is retrieved from the model profile
details for the current user.
*MDLLIB/*USER—Default the job list name to user profile name, and store list
in model library.
*WRKSTN—Default the job list name to job name of invoking job.
*MDLPRF/—The job list library is retrieved from the model profile details for
the current user.
LSTOPT
List replacement option. Values for this parameter are described in the
following:
*REPLACE—(default) Create a new list, replacing any previous list's contents.
*ADD—Add to any existing list's contents.
CUROBJ
Controls whether only current objects are included in the output list. Values for
this parameter are described in the following:
*YES—(default) Non-current objects are ignored in the build.
*NO—All objects are included in the build.
Notes
■ If a value of *NONE is specified for the MDLACP parameter, then a value of
*ACP is not allowed for the MDLFUNSEL parameter.
■ If a value of *NONE is specified for the MDLACP parameter, then a value of
*NONE is not allowed for the MDLFUN parameter.
■ For each access path or function selected, the YBLDJOBLST command will
add entries to the job list for the necessary implementation objects. For
example, for an interactive function, both the program and the display file
will be added to the job list.
■ The library specified for the job list must be the same as the model library.
■ A completion message is returned, giving a count of the number of access
paths and functions added to the list.
Example
To build a job list of all access paths and functions in a design model:
YBLDJOBLST
To build a job list of all functions in a design model over all files and access
paths, but omitting the access paths from the job list:
YBLDJOBLST
To build a job list of all logical access paths and functions in a design model
which are based on files whose names start with “Order”:
YBLDJOBLST MDLFILE(ORDER*) + MDLACPTYP(*LGL)
Only certain model objects can be selected for inclusion in a list. See the
command diagram for a list of valid object types.
Once the list has been built, it can be used by the other model list processing
commands. Normally a user will edit a list after creation using the Edit Model
Object List command (YEDTMDLLST), or process entries in the list using one of
the model list processing commands. See the command diagram of these
commands for more details.
*ALLOBJ
*SELECT
*ANY
*NONE
*ACP
*ARR
*MESSAGES
*CND
*FIL
*FUN
*MSG
max 5
*MDLPRF
*MDLLIB/
MDLLST *USER
model library/
list name
*REPLACE
LSTOPT
*ADD
*SAME
OUTFLAGVAL *NONE
*SELECTED
*SAME
OUTCPYOBJ *NONE
*SELECTED
*NO
INCSYSOBJ
*YES
*YES *YES
CUROBJ FILTER
*NO *NO
Parameters
OBJNAM
The object name to be added. This parameter consists of three elements which
together identify a model object. Values for this parameter are described in the
following:
*ALLOBJ—(default) Single value indicating that all model objects are included.
*SELECT—Single value indicating that the object to be added is selected using
an interactive display function.
object owner name—Generic name of the object that owns the object(s) to be
added. Thus, for a function, the owning file would be entered.
*ARRAYS—Special value for the product internal file *ARRAYS.
*MESSAGES—Special value for the product internal file *MESSAGES.
object name—Generic name of the object(s) to be added.
object type—The object type of the object.
*ALL—All object types are added.
*ACP—Object is of type access path.
*APP—Object is of type application area.
*ARR—Object is of type array.
*CND—Object is of type condition.
*FIL—Object is of type file.
*FLD—Object is of type field.
*FUN—Object is of type function.
*MSG—Object is of type message.
MDLLST
The qualified name of the model object list that is built. All output is directed to
the list specified in this parameter. Values for this parameter are described in the
following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile extension record for the current user in the
specified model library.
*USER—Special value meaning that the user profile name of the current user is
used as the list name for the target of the command.
list name—The name of the list to be built can be entered.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used as the target model for the list.
library name—The name of the model library to be the target of the command.
LSTOPT
This parameter specifies the action taken if the list already exists in the model.
Values for this parameter are described in the following:
*REPLACE—(default) The existing model object list is replaced with the output
from this command.
*ADD—The existing model object list is augmented with the output from this
command.
OUTFLAGVAL
This parameter specifies the initial value to be placed in the object selected flag
associated with each list entry. Values for this parameter are described in the
following:
*SAME—(default) No flag value is used. New entries are written with the flag
indicating that the entry is not selected. There is no change to the selection status
of existing entries.
*NONE—New and existing entries are flagged as not selected.
*SELECTED—New and existing list entries are flagged as selected. This flag
may be used by other list commands when selecting list entries.
OUTCPYOBJ
This parameter specifies the initial value to be placed in the copy object flag
associated with each list entry. This flag is used by the Copy Model Object
command (YCPYMDLOBJ) when selecting objects to copy to a target model.
Values for this parameter are described in the following:
*SAME—(default) No flag value is used. New entries are written with the flag
indicating that the entry is not selected. There is no change to the selection status
of existing entries.
*NONE—New and existing entries are flagged as not selected.
*SELECTED—New and existing list entries are flagged as selected.
INCSYSOBJ
This parameter allows the user to control whether system objects are included in
the output list. Values for this parameter are described in the following:
*NO—(default) The system objects are not included.
*YES—System objects are included.
CUROBJ
This parameter allows the user to control whether only current objects are
included in the output list. Values for this parameter are described in the
following:
*YES—(default) Non-current objects are ignored in the build.
*NO—All objects are included in the build.
FILTER
The initial output of the command can be filtered. If specified, this parameter
invokes the Filter Model Object List command (YFLTMDLLST). Values for this
parameter are described in the following:
*NO—(default) The filter command is not invoked.
*YES—Filtering is required.
Notes
■ The target library for output must be a valid model library. Object lists are be
created in file YMDLLSTRFP which resides in the model library. Each list is
a separate member in that file. If a value other than *MDLLIB is used for the
output list, the specified model library will also be used for object selection.
■ A value other than *MDLLIB for MDLLST may result in the library list being
changed. If the user is currently editing a model, the switching of the library
list will not occur and the command will fail. If changed during processing,
the library list is changed back after execution.
■ *SELECT is invalid for OBJNAM if the job in which the command is running
is of type batch.
■ The LSTOPT parameter is ignored if the model object list does not already
exist.
■ The FILTER parameter is ignored if the job running the command is a batch
job, since the method for defining the filter criteria is via the command
prompter, requiring an interactive display.
Example
To build model object list MYLIST from all access paths and functions in the
model contained in the current library list:
YBLDMDLLST OBJNAM( (*ANY *ALL *ACP) +
(*ANY *ALL *FUN) )
Required
Optional
*MDLPRF
*MDLLIB/ *USER
MDLLST
model library *SELECT
list name
*SAME
*NONE
OBJSEL
*SELECTED
*ERROR
*SAME
CPYOBJ *NONE
*SELECTED
Parameters
OBJSGT
Unique number identifier of the model object that is changed. The value for this
parameter is as follows:
object surrogate—The surrogate number of the model object is required.
MDLLST
The qualified name of the model object list in which the entry to be changed
exists. Values for this parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile extension record for the current user in the
specified model library.
*USER—Special value meaning that the user profile name of the current user is
to be used as the list name for the target of the command.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
list name—The name of the list.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used.
library name—The name of the model library.
OBJSEL
This parameter specifies the value to be placed in the object selected field of the
list entry. Values for this parameter are described in the following:
*SAME—(default) The value currently in this field is not changed.
*NONE—The entry is flagged as not selected.
*SELECTED—The entry is flagged as selected.
*ERROR—The entry is flagged in error.
CPYOBJ
This parameter specifies the value placed in the copy object field of the list entry.
Values for this parameter are described in the following:
*SAME—(default) The value currently in this field is not changed.
*NONE—The entry is flagged as not selected.
*SELECTED—The entry is flagged as selected.
Notes
■ The flagging of list entries is intended to allow users to perform operation on
subsets of model objects contained in model object lists. Note that the object
selected field (OBJSEL) is recognized by many of the list commands.
However, the copy object field (CPYOBJ) is recognized only by the Edit
Copy List command (YEDTCPYLST) and the Copy Model Objects command
(YCPYMDLOBJ). A value of *SELECTED in the copy object field effectively
means explicitly selected or selected for copying for the purposes of the
Copy Model Objects command (YCPYMDLOBJ).
■ Both the model object list and the list entry must exist prior to running this
command.
Example
To change the model object list entry for the object identified by surrogate
number 1100911, in model object list DEVLST in the first model library to be
found in the current library list, and to flag the entry as *SELECTED for use in
another list command:
YCHGMDLLE OBJSGT( 1100911 ) MDLLST + (*MDLLIB/DEVLST ) OBJSEL( *SELECTED )
Required
*OBJSGT
*SELECT
*NONE *ACP
*FIL
*FLD
*FUN
*MSG
OBJNAM
OBJSGT
object surrogate
*MDLLIB
MDLLIB
model library
name
Optional
*SAME
*PUBLIC
*PRIVATE
CHGTYP
*GEN
*OBJONLY
*NONE
*SAME
*SAME *ADD
*NO *GEN
*NONE
*SAME
*SAME
*DEV
(1)
VSNTYP *YES
VSNSNC
*PRD
*NO
*ARC
*SAME *SAME
*NONE *NONE
(1) (1)
CHKDTE CHKTME
*DATE *TIME
date time
*SAME
*NONE
(1)
CHKUSR
*USER
user name
*SAME
*NONE
(1)
CHKLST
*USER
model object
list
*SAME
*NONE
(1)
CHKSTS
*USER
character value
Parameters
OBJNAM
The object name to be changed. This parameter consists of three elements that
together identify a model object. Values for this parameter are described in the
following:
*OBJSGT—(default) Single value indicating that the object surrogate is to be
used to identify the model object that is to be changed.
*SELECT—Single value indicating that the object to be changed is selected using
an interactive display function.
object owner name—The character name of the object that owns the object to be
changed. Thus, for a function, the owning file would be entered.
*NONE—Special value indicating that the object concerned does not have an
owner; for example, objects of type *FIL.
*ARRAYS—Special value for the product internal file *ARRAYS.
*MESSAGES—Special value for the product internal file *MESSAGES.
object name—The character name of the object to be changed.
object type—The object type of the object.
*ACP—Object is of type access path.
*APP—Object is of type application area.
OBJSGT
Unique number identifier of the model object whose details are to be changed.
Values for this parameter are described in the following:
*OBJNAM—(default) Use object name to identify the model object to be
changed.
object surrogate—The surrogate number of the model object.
MDLLIB
The data model that is to be edited. Values for this parameter are described in
the following:
*MDLLIB—(default) The model to be edited is the first one found in the current
job's library list.
model name—The name of a specific data model.
CHGTYP
Reflects the type of change that has been made to the object. Note that changing
this field may also cause the Action required flag (ACTRQD) for objects that use
this object to be updated. Values for this parameter are described in the
following:
*SAME—(default) The current model object value is not to be changed.
*PUBLIC—The object has been publicly changed. Appropriate component
change processing will be performed.
*PRIVATE—The object has been privately changed. Appropriate component
change processing will be performed.
*GEN—The object has been changed requiring generation of the implementation
object only. This is only valid for generatable objects. No component change
processing will be performed.
*OBJONLY—The object has been changed. However, the change does not affect
using objects and no source generation is required.
*NONE—The object has been changed but requires no further action. No
component change processing will be performed.
IPCPRC
Indicates whether users of the object have been processed to reflect the effect on
them resulting from the change made to the object. A Change type (CHGTYP) of
*PRIVATE or *PUBLIC recorded for the object will have an effect on its users.
When the effect is established during component change processing, the impact
processed flag is set to *YES. As a result, changing this flag will either cause
component change processing to be performed or avoided, depending on the
value to which it is set. Values for this parameter are described in the following:
*SAME—(default) The current value is not to be changed.
*YES—The object is to be treated as if component change processing had been
performed.
*NO—The object is to be treated as if component change processing had not
been performed. As a result, if the Change type (CHGTYP) value is *PRIVATE or
*PUBLIC, component change processing will be invoked either the next time the
object is changed if component change processing is set to occur interactively
when the Apply Component Changes (YAPYCMPCHG) command is run.
PRMTYP
VSNTYP
This field identifies the status of an object with respect to other members of a
group of objects. A group is defined by those objects that originated (were
copied) from the same object or another member of the group. This field is
intended for use with a promotion procedure and identifies which version of a
group is the development version, the production version, and the archive
version. Values for this parameter are described in the following:
*SAME—(default) The current model object value is not to be changed.
*DEV—Change the model object value to indicate that it is the development
version.
*PRD—Change the model object value to indicate that it is the production
version.
*ARC—Change the model object value to indicate that it is the archive version.
VSNSNC
CHKDTE
CHKTME
CHKUSR
CHKLST
CHKSTS
Example
For more information on using the interactive panel, see online Help for the
specific panel.
Required
*OBJSGT
*SELECT
*NONE *ACP
*FIL
*FLD
*FUN
*MSG
OBJNAM *MDLLIB
OBJSGT MDLLIB
Parameters
OBJNAM
The name of the model object to be changed. This parameter consists of three
elements that together identify a model object. Values for this parameter are
described in the following:
*OBJSGT—(default) Single value indicating that the object surrogate is to be
used to identify the model object that is to be changed.
*SELECT—Single value indicating that the object to be changed is selected using
an interactive display function.
object owner name—The character name of the object that owns the object to be
changed. Thus, for a function, the owning file would be entered.
*NONE—Special value indicating that the object concerned does not have an
owner; for example, objects of type *FIL.
*ARRAYS—Special value for the product internal file *ARRAYS.
*MESSAGES—Special value for the product internal file *MESSAGES.
object name—The character name of the object to be changed.
object type—The object type of the object.
OBJSGT
Unique number identifier of the model object that is to be changed. Values for
this parameter are described in the following:
*OBJNAM—(default) Use object name to identify the model object to be
changed.
object surrogate—The surrogate number of the model object.
MDLLIB
The data model in which the object whose description is to be changed resides.
Values for this parameter are described in the following:
*MDLLIB—(default) The model is the first one to be found in the current library
list.
model name—The name of a specific data model.
Notes
■ A value other than *MDLLIB for MDLLIB may result in the library list being
changed. If you are currently editing a model, the switching of the library list
will not occur and the command will fail. If changed during processing, the
library list is changed back after execution.
■ Model objects can either be identified by object name (OBJNAM) or by object
surrogate key number (OBJSGT). If the OBJNAM parameter is used, the
processing program must convert to surrogate key number internally. Thus,
it will normally be more efficient to use the surrogate number if this value is
available. The surrogate number for an object can be obtained using the
Retrieve Model Object command (YRTVMDLOBJ).
Model object names are structured as follows:
Type Name
ACP File name/Access path name/'ACP'
APP ---/Application area code/'APP'
ARR *Arrays/Array name/'ARR'
CND Field name/Condition name/'CND'
FIL ---/File name/'FIL'
FLD ---/Field name/'FLD'
FUN File name/Function name/'FUN'
MSG *Messages/Message name/'MSG'
Example
To change the Edit Order Details function, which is owned by the Order Details
file, enter the following:
YCHGMDLOD OBJNAM('Order Details' 'Edit Order + Details' *FUN)
Required
Optional
*SAME *SAME
*SAME *SAME
*NO *NO
*SAME
*SAME
*FILE
USROPTMBR *FIRST
*MDLPRF
member name
*SAME
MDLLST *MDLPRF
list name
*SAME *SAME
notepad
*NO
function
*SAME
*CURLIB
*SAME
*SAME
*GENLIB
*GENLIB
GENLIB SRCLIB *CURLIB
*CURLIB
*OBJLIB
library name
library name
*SAME
*MDLLIB
JOBD *MDLVAL
*CURLIB
*LIBL
jobd name
library name/
*SAME
*NONE
CRTJOBD *JOBD
*MDLLIB
library name
*SAME *SAME
*HLD *IMMED
*SAME
*SAME
*MDLVAL
SRNMODE *YES GUIFLR
*NONE
*NO
folder name
Parameters
MDLPRF
The model user profile name that is changed. The value for this parameter is as
follows:
user profile name—The name of the user profile must be entered.
SSNLST
The name of the session list used when editing a model. Values for this
parameter are described in the following:
*SAME—(default) The current value is not changed.
*MDLPRF—This special value indicates that the name of the current user profile
is loaded to the session list field.
list name—The name of the list can be entered.
LOGCHG
This parameter indicates whether changed objects are logged to the specified
session list while editing the model. Values for this parameter are described in
the following:
*SAME—(default) The current value is not changed.
*YES—Changed objects are logged to the session list.
*NO—Changed objects are not logged.
COMPCHG
This parameter indicates whether objects that use a changed object are to be
flagged as having had a component changed. Values for this parameter are
described in the following:
*SAME—(default) The current value is not changed.
*YES—Objects which use a changed object are flagged when the object is
changed.
*NO—Component change processing is not performed when the object is
changed. It may be performed later using the Apply Component Change
command (YAPYCMPCHG).
VIEWONLY
This parameter indicates whether the current user is navigating the model in
*VIEW mode or *EDIT mode. Values for this parameter are described in the
following:
*SAME—(default) The current value is not changed.
*YES—Navigation is in *VIEW mode.
*NO—Navigation is as normal (*EDIT mode).
USROPT
The Edit Model List panel supports the use of user options to be applied to
subfile records. This field stores the user option file name to use. Values for this
parameter are described in the following:
*SAME—(default) The current value is not changed.
QAUOOPT—The system-supplied user option file name.
list name—User-defined file name.
*LIBL—This special value is used as the library name.
library name—A library name can be entered.
USROPTMBR
The member in the user options file that is used. Values for this parameter are
described in the following:
*SAME—(default) The current value is not changed.
*FILE—The member name is the same as the user options file name.
*FIRST—The first member in the file is to be used.
*MDLPRF—The member name is the same as the current user profile name.
member name—The user options member name.
MDLLST
The list used if *MDLPRF is specified on a model object list command. Values for
this parameter are described in the following:
*SAME—(default) The current value is not changed.
*MDLPRF—A list with the same name as the user profile is used.
NPDFUN
The user-defined notepad function to use when using the action diagram editor.
The function specified must either be an Execute External Function
(EXCEXTFUN) or an Execute Internal Function (EXINTFUN). Values for this
parameter are described in the following:
*SAME—(default) The current value is not changed.
*NONE—No particular notepad function is specified, the action diagram editor
will provide an empty notepad for use during editing sessions.
notepad function—The function name must be specified.
ADESRNMODE
This parameter provides the default for full screen mode when using the action
diagram editor. Values for this parameter are described in the following:
*SAME—The current value is not changed.
*YES—The default for the action diagram editor full screen mode is yes.
*NO—The default for full screen mode is no.
JOBLST
When a user invokes the Submit Model Create command (YSBMMDLCRT), this
qualified value can be used to determine the job list that is defaulted. Values for
this parameter are described in the following:
*SAME—(default) The current value is not changed.
*MDLPRF—A job list with the same name as the user profile is the default.
list name—Job list name.
*MDLLIB—This special value is used as the default library name.
GENLIB
The default generation library name may be specified. When a user invokes the
Submit Model Create command (YSBMMDLCRT), this value will be used by
default. Values for this parameter are described in the following:
*SAME—(default) The current value is not changed.
*GENLIB—This special value is the default.
*CURLIB—This special value is the default.
library name—Default library name.
SRCLIB
The default source library name may be specified. When a user invokes the
Submit Model Create command (YSBMMDLCRT), this value will be used by
default. Values for this parameter are described in the following:
*SAME—(default) The current value is not changed.
*GENLIB—This special value is the default.
*CURLIB—This special value is the default.
*OBJLIB—Special value meaning that the source library name is the same as for
the GENLIB parameter.
library name—Default library name.
JOBD
The default job description name to use when a user invokes the Submit Model
Create command (YSBMMDLCRT). This qualified value will be used as the
default. Values for this parameter are described in the following:
*SAME—(default) The current value is not changed.
*MDLVAL—This special value is the default.
job description name—The job description name.
*MDLLIB—This special value is the default library in which to find the job
description.
*CURLIB—This special value is the default library in which to find the job
description.
*LIBL—This special value is the default library in which to find the job
description.
CRTJOBD
The default create job description name to use when a user invokes the Submit
Model Create command (YSBMMDLCRT). This qualified value will be used as
the default. Values for this parameter are described in the following:
*SAME—(default) The current value is not changed.
*JOBD—This special value is the default.
*NONE—This special value is the default.
job description name—The create job description name.
*MDLLIB—This special value is the default library in which to find the job
description.
*LIBL—This special value is the default library in which to find the job
description.
SBMGENOPT
The default generation option value to use when a user invokes the Submit
Model Create command (YSBMMDLCRT). Values for this parameter are
described in the following:
*SAME—(default) The current value is not changed.
*RLS—This special value is the default.
*HLD—This special value is the default.
SBMCRTOPT
The default compilation option value to use when a user invokes the Submit
Model Create command (YSBMMDLCRT). Values for this parameter are
described in the following:
*SAME—(default) The current value is not changed.
*GENOK—This special value is the default.
*IMMED—This special value is the default.
SRNMODE
This parameter determines whether or not the default panel on the Edit Model
List command (YEDTMDLLST) is displayed in full screen mode. Values for this
parameter are described in the following:
*SAME—(default) The current value is not changed.
*YES—The default for full screen mode is yes.
*NO—The default for full screen mode is no.
GUIFLR
This parameter records the default value for the GUI folder value used when
prompting the Submit Model Create (YSBMMDLCRT) command for the
specified user. Values for this parameter are described in the following:
*SAME—(default) The current value is not changed.
*MDLVAL—The value to be prompted is derived from the model value.
*NONE—The default value is *NONE.
folder name—Enter the name of a folder.
Notes
■ User profile values for a particular developer are updated while using the
Edit Model Object List command (YEDTMDLLST). The YCHGMDLPRF
command may be used to adjust values outside the YEDTMDLLST
command.
■ The processing of the VIEWONLY parameter occurs in the user access exit
program (YUSROBJR1C). The shipped default processing switches from
*EDIT to *VIEW mode if the VIEWONLY parameter is set. Users should be
careful, therefore, when changing the processing of this exit program, to take
account of such processing.
Example
To log changed objects to model list CHGOBJ and to perform component change
processing the next time user KATHY edits the model:
YCHGMDLPRF MDLPRF( KATHY ) CHGLST + (CHGOBJ ) LOGCHG( *YES ) COMPCHG( *YES )
Required
(1) (1)
YCHGMDLVAL MDLVAL model value name Value model value
Parameters
MDLVAL
VALUE
Notes
■ Initial values for model values are set by the parameters specified when the
command Create Model Library (YCRTMDLLIB) was run.
■ On the following page is an alphabetical listing of model values. You can
then find related values grouped according to the tables below:
– Design Option Values
– Name Allocation Values
– Access Path Generation Values
– Function Generation Values
– Environment Values
– Help Generation Values
– PWS Environment Values
– System Defaults
– Protected Model Values
YACTSYM
The three characters are shipped with the following initial values:
■ Iteration..: '|'
■ Sequence...: ':'
■ Condition..: ' '
YCUAPMT
Note: If you have Retrieve Condition logic within a USER: user point that you
want processed when you press F4, you will need to move the logic to a CALC:
user point.
If a CALC: user point contains logic that you do not want processed when you
press F4, you can bypass the logic by checking for the F4 prompt condition. For
example:
>CALC:
.––
. DTL.Gender name = Condition name of DTL.Gender <<<
. +–CASE <<<
. |–DTL.*CMD key is *Prompt <<<
. |–*OTHERWISE <<<
. | : <<<
. | (Actions to be bypassed when you press F4=Prompt) <<<
. | : <<<
. +–ENDCASE <<<
Note: Some function types contain logic that reinitializes function fields as
shown in the following table. As a result, if you bypass function field calculation,
when you press F4 the function fields will be reinitialized but not recalculated.
The action diagram logic that processes the key screen for the following
functions does not contain a CALC: user point:
■ DSPRCD
■ DSPRCD2
■ DSPRCD3
■ EDTRCD
■ EDTRCD2
■ EDTRCD3.
YLHSFLL
YLHSFLL takes either the special value *SAA, indicating that the SAA
convention is to be used (. . . :), or a 9 character string is specified, typically
:.:..:..:. The first character (":" in the example) is used as the leader on screen
designs when there is one space between the text and the following field. The
next two characters (".:") are used when there are two spaces between the text
and the following field. The next three characters ("..:") are used when there are
three spaces between the text and the field. The final three characters ("..:") are
used when there are more than three spaces, with the middle character being
repeated as required.
YWBDCHR
YWBDCHR is made up of eight characters that correspond to the eight sides and
corners of a window frame as follows:
Note: If you set the model value for YALCVNM to *MNC, a column of input
fields is created on the define objects panel. Place an M in this column and the
newly defined object name will be added to a file of object names or mnemonics
of 1, 2, and 3 characters. The three variants can then be defined and made
available to the name allocation program
Environment Values
YGENHLP
System Defaults
The following two tables show model values which cannot be changed with
YCHGMDLVAL.
You can change the following system values using the OS/400 CHGDTAARA
command. The name of the data area is the model value name with the suffix
RFA; for example, the name of the null model for the system is contained in the
YNLLMDLRFA data area in the Advantage 2E base product library.
Example
Any integrity issues found are listed on the spooled output. The messages
indicate the surrogate numbers that are in error, as well as the file in which the
errors were found. Contact Product Support if any errors are reported by the
Check Data Model command.
Optional
*MDLLIB
YCHKDTAMDL MDLLIB
model library name
Parameters
MDLLIB
Specifies the name of a Advantage 2E model to check for integrity. Values for
this parameter are described in the following:
*MDLLIB—(default) Special value meaning that the first model library in the
library list is to be used.
model library name—The name of the model library over which an integrity
check should be run.
Example
A report provides details of any errors found. Functions that contain errors may
optionally be added to an output model list.
Required
*MDLPRF
*MDLLIB/
*USER
YCHKFUNACT MDDLST
*SELECT
model library
list name
*PRINT
*NONE
OPTION *EDIT OUTLST
list name
*REFRESH
*REPLACE
OUTLSTOPT
*ADD
Parameters
MDLLST
The qualified name of the model object list that contains the functions to be
checked. Values for this parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile extension record for the current user in the
specified model library.
*USER—Special value meaning that the user profile name of the current user is
used as the list name for the target of the command.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
list name—The model object list name must be entered.
*MDLLIB—(default) Special value meaning that the first model library found in
the user’s current library list is used as the model library for the list.
library name—The model library name for the list.
option
Outlst
The name of the model object list that receives output from the command. Values
for this parameter are described in the following:
*NONE—(default) Special value meaning that no outlist processing is to be
performed.
list name—The model object list name is to be used as output.
outlstopt
This parameter specifies the action taken if the output list already exists. Values
for this parameter are described in the following:
*REPLACE—(default) The existing model object list should be replaced with the
output from this command.
*ADD—The existing model object list should be augmented with the output
from this command.
Example
To check the action diagrams of all functions contained in the model object list
APLIST in the current model library and print a report of all errors found:
YCHKFUNACT MDLLST(*MDLLIB/APLIST)
Optional
*MDDLIB/
*MDLPRF
*MDLPRF/
*USER
YCHKJOBLE JOBLST *CURLIB/
*WRKSTN
*GENLIB/
list name
library name/
*MDDLIB/
*MDLPRF/
*RMVOK
UPDLST *CURLIB/
*RMVERR
*GENLIB/
library name/
*NONE
CHKGUI
*GUIFLR
*NONE
*GENTYPE
CHKFILE
*GENLIB/
*LIB/
*CURLIB/
file name
librarly name/
*NONE
*CHANGE
CHKAUT *ALL
Parameters
JOBLST
Qualified name of a job list where you place entries. Name of the job list whose
entries are checked. Values for this parameter are described in the following:
*MDLPRF—(default) The job list name is retrieved from the model profile
details for the current user.
*WRKSTN—Defaults job name to job list name of invoking job.
*MDLLIB/—Defaults job list name to user profile name in model library.
UPDLST
List update option. Values for this parameter are described in the following:
*RMVOK—(default) Remove verified items from list; that is, if the
corresponding source member (CHKFILE parameter), OS/400 object (CHKLIB
parameter), or specified authorities (CHKAUT parameter) are found.
*RMVERR—Remove items from list that are not verified.
CHKLIB
Name of the library to use when checking for the existence of OS/400 objects
corresponding to each job list entry. Values for this parameter are described in
the following:
*NONE—(default) Do not check for any object's existence.
*GENLIB—Check for objects in the generation library of the model (YGENLIB
model value).
*CURLIB—Check for objects in the current library.
*LIBL—Use the current job's library list.
CHKGUI
Name of shared folder to check for the existence of Synon/TC source objects
corresponding to each job list entry. Values for this parameter are described in
the following:
*NONE—(default) Do not check for any object’s existence.
*GUIFLR—Check for objects in the Synon/TC shared folder of the model
(YGUIFLR).
CHKFILE
Qualified source file name to check for the existence of a source member
corresponding to each job list entry. Values for this parameter are described in
the following:
*NONE—(default) Do not check for a corresponding source member.
*GENTYPE—Use the default source file name as specified by the edit generation
types display; for example, QRPGSRC for RPG III source, QCLSRC for CL
source.
CHKAUT
OS/400 authorities to check after checking for object or source member existence,
as specified by the CHKLIB or CHKFILE. The value for this parameter is as
follows:
*NONE—Do not check for authorities when checking existence of corresponding
source members or OS/400 objects.
Notes
The job list must already exist. Job lists are created using either the command
Build Job List (YBLDJOBLST) or Convert Model List (YCVTMDLLST) from a
command line, or by prompting the command from within a design model.
Example
The ACTION parameter lets you specify whether the internal files or the objects
in your model are to be checked. It also lets you specify whether the command
will run in prepass or update mode. All errors found are reported, and in update
mode, inactive internal records are backed up to files in a library you specify
before being deleted from the model.
Note: If you need to restore data from a backup file, you should take great care
to specify the correct member name. It will be the same as the name of your
model library. When copying data back be sure to specify *ADD for the
MBROPT parameter on the Copy File (CPYF) command.
Optional
YCHKMDL
YCHKMDL MDLLIB
model library name
*ANALYZE *MDLLIB
(1)
ACTION *UPDATE
BAKLIB
*PREPASS library name
*ADD *DFT
(1) (1)
UPDOPT TEXT
*REPLACE member name
(1)
BAKLIB, UPDOPT, and TEXT are
prompted only when ACTION is
set to *UPDATE.
Parameters
MDLLIB
The name of the model to be analyzed. Values for this parameter are described in
the following:
*MDLLIB—(default) Special value indicating the model library is the first one in
the current library list.
model library name—The name of the model to be analyzed may be entered
explicitly.
ACTION
Specifies the type of check to perform and whether to run in prepass or update
mode. A report is produced listing any data in error. Values for this parameter
are described in the following:
*ANALYZE—(default) The command checks each object in the model and all
objects that use the object (usages) and all objects that it refers to (references).
This can be a lengthy process for large models. No update is performed.
This option produces a separate report that shows any unresolvable references
that are encountered during the expansion of a given object; for example, if a
model object refers to an object that has been deleted from the model.
If the report shows any errors, first attempt to remove them using *UPDATE and
run the *ANALYZE analysis again. If there are any entries remaining after
running the second analysis, please contact your local product support
representative who will assist you with their removal.
*PREPASS—The command analyzes those internal files that can automatically
be updated in *UPDATE mode and reports any inactive records. No actual
update is performed.
*UPDATE—The command performs the same analysis as in the *PREPASS
mode, and also deletes inactive records from the internal files.
BAKLIB
The data is written to a file that has a name similar to that of the originating file;
the member name is the same as the name of your model library. For example,
an inactive record in the YSCRENTRFP file (screen or report device entries) in
model library MYMODEL, would be written to file YSCRENTXXP and member
MYMODEL in the backup library. You can therefore specify a single backup
library to store all deleted data from all the models on the system.
This parameter is prompted only in *UPDATE mode. Values for this parameter
are described in the following:
*MDLLIB—(default) Special value indicating the model library is to be the
backup library.
library name—The name of the backup library may be entered explicitly.
UPDOPT
This parameter specifies whether new data written to the backup members
should replace or be added to existing data. This parameter is prompted only in
*UPDATE mode. Values for this parameter are described in the following:
*ADD—(default) Special value indicating that the new data should be added to
any existing data in the backup members.
*REPLACE—The existing data should be cleared during processing.
TEXT
The text to be attached to any new members added to the backup files. This
parameter is prompted only in *UPDATE mode. Values for this parameter are
described in the following:
*DFT—(default) Special value indicating that a standard message will be used as
new member text.
member text—The user may specify the text to be used when adding new
members to the backup files.
Example
An outlist capability allows users to filter entries to an alternative list leaving the
input list unchanged by the filtering process. In other words, if you specify an
output list, the input list will not be updated.
Optional
*MDLPRF
*MDLLIB/
*USER
YCHKMDLLST MDLLST
*SELECT
model library/
list name
*BYSGT
CHKTYPE
byname
*RFSALL
*RFSSGT
*FLAGERR
UPDLIST *FLAGOK
*RMVERR
*RMVOK
max 3
*ANY
FLAGVAL *ERROR
*SELECTED
*MDLLIB
CHKMDL
model name
*ANY
CUROBJ
*YES
*ANY
*MDLLST
CHKLST *MDLPRF
*USER
list name
*ANY
CHKSTS *NONE
status value
max 5
*NONE
CHKMDLLCK
*YES
*NONE
OUTFLAGVAL *ERROR
*SELECTED
*NONE
*REPLACE
*MDLPRF
OUTLST OUTLSTOPT
*USER
*ADD
list name
Parameters
MDLLST
The qualified name of the model object list that is checked. Values for this
parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the model profile details for the current user in the specified
model library.
*USER—Special value meaning that the user profile name of the current user is
used as the list name for the target of the command.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
list name—The name of the list.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used.
library name—The name of the model library.
CHKTYPE
Check list entry method. Values for this parameter are described in the
following:
*BYSGT—(default) The list entries are checked by object surrogate number.
*BYNAME—The list entries are checked by object name.
UPDLST
List update option. Values for this parameter are described in the following:
*RFSALL—(default) The data contained in each list entry are refreshed from the
corresponding model object details.
*RFSSGT—Only the surrogate number of each list entry is refreshed from the
corresponding model object details. The CHKTYPE parameter must be
*BYNAME for this option.
*FLAGERR—If an error occurs during processing of a list entry, the entry is
flagged. The value to use is specified by the OUTFLAGVAL parameter. This
value may be the subject of a later filtering operation. Note that if entries are
flagged, then the OUTFLAGVAL parameter must be set to the desired value.
*FLAGOK—If an error does not occur during processing of a list entry, the entry
is flagged. The value to use is specified by the OUTFLAGVAL parameter. This
value may be the subject of a later filtering operation.
*RMVERR—If an error occurs during processing of a list entry, the entry is
removed from the list.
*RMVOK—If the processing of a list entry completes without error, the entry is
removed from the list.
Note: The updating of model lists is controlled by the UPDLST parameter. For
example, it must specify *RMVERR if invalid entries are deleted from the input
list or omitted from copy to the output list. Users should also note that the
flagging of entries occurs if the UPDLST parameter instructs the program to do
so. However, the appropriate value to use should be specified in the
OUTFLAGVAL parameter to avoid the default value of blank.
When an output list is specified the input list is not updated.
If *RMVERR is specified together with an output list, it has the effect of not
copying input list entries to the output list. Such entries are not removed if they
already exist on the output list.
FLAGVAL
This parameter allows model object list entries to be filtered by the model object
list entry flag value. Values for this parameter are described in the following:
*ANY—(default) No filtering on flag value is to be performed.
*ERROR—Only entries flagged as being in error satisfy the filter. Other entries
are ignored.
*SELECTED—Only explicitly selected model objects satisfy the filter. Other
entries are ignored.
CHKMDL
Check model library name. This parameter enables objects from one model to be
checked against objects of the same name in another model. Values for this
parameter are described in the following:
*MDLLIB—(default) The list entries are checked against objects in the same
model.
model name—The model that entries are checked against.
CUROBJ
This parameter identifies whether the objects on the list are current. Values for
this parameter are described in the following:
*ANY—(default) Objects are not checked.
*YES—Only current objects satisfy the check.
CHKLST
The checked out to list may be examined with this parameter. Values for this
parameter are described in the following:
*ANY—(default) Any value for checked out to list is acceptable.
*MDLLST—List entries must be checked out to the current list.
*MDLPRF—List entries must be checked out to the model object list specified on
the current user's model profile.
*USER—Entries must be checked out to the model list that has the same name as
the current user.
list name—A list name may be specified.
CHKSTS
The check out status of list entries may be checked. Values for this parameter are
described in the following:
*ANY—(default) Check out status is not examined.
*NONE—Special value meaning that entries should have no value for check out
status.
status value—User-defined value. Up to five values may be specified for check
out status.
CHKMDLLCK
This parameter allows the lock status of each object on the list to be examined.
Values for this parameter are described in the following:
*NONE—(default) No examination of object locks is made.
*YES—Objects on the list must not be locked.
OUTFLAGVAL
This parameter specifies the value used in combination with the UPDLST
parameter. Selected list entries are updated with this value if UPDLST is
specified as *FLAGERR or *FLAGOK. Values for this parameter are described in
the following:
*NONE—(default) No updating of the flag value is performed.
*ERROR—Entries which satisfy the filtering criteria are flagged as *ERROR if
UPDLST is specified as *FLAGERR or *FLAGOK.
*SELECTED—Entries that satisfy the filtering criteria are flagged as selected if
UPDLST is specified as *FLAGERR or *FLAGOK.
OUTLST
The name of the model object list which is the target for entries that satisfy any
filter. Values for this parameter are described in the following:
*NONE—(default) Special value meaning that no outlist processing is
performed.
*MDLPRF—Special value meaning that the model object list name is retrieved
from the model profile record for the current user in the specified model library.
*USER—Special value meaning that the user profile name of the current user is
used as the list name.
list name—The name of the target list.
OUTLSTOPT
This parameter specifies the action taken if the outlist specified in the OUTLST
parameter already exists in the model. Values for this parameter are described in
the following:
*REPLACE—(default) The existing model object list is replaced with the output
from this command.
*ADD—The existing model object list is augmented with the output from this
command.
Notes
■ The input model object list must already exist prior to running this
command.
■ A value other than *MDLLIB for MDLLST may result in the library list being
changed. If the user is currently editing a model, the switching of the library
list will not occur and the command will fail. If changed during processing,
the library list is changed back after execution.
■ If an error is detected during processing of the list entries, a diagnostic
message is sent for each error encountered, and an escape message is sent at
the end of processing. When using this command in CL programs, users may
monitor for the escape message which is sent. The message id for this
message is Y2E0328.
■ The OUTLSTOPT parameter is ignored if *NONE is specified for OUTLST. If
the specified OUTLST does not exist prior to running this command, it is
created.
■ If the CHKMDL parameter is specified (i.e., other than *NONE) then the
CHKTYP must specify *BYSGT, since it is not possible to compare objects
between models by surrogate key number.
Example
To refresh model object list OLDLST so that all the list entries are completely up
to date:
YCHKMDLLST MDLLST( *MDLLIB/OLDLST ) + UPDLST( *RFSALL )
To check model object list FUNLST to determine that all objects on the list still
exist in the model:
YCHKMDLLST MDLLST( *MDLLIB/FUNLST ) + UPDLST( *RMVERR )
Using the *RMVERR option for UPDLST will ensure that only valid objects
remain on the list.
Required
*SRCMBR
*NONE *ACP
YCHKMDLOBJ OBJNAM
*ARRAYS *APP
*MESSAGES *ARR
*FIL
*FLD
*FUN
*MSG
*OBJNAM
SRCMBR *ANY
*FILE
*HLPTXT
*MDLLIB/
MDLLIB
model library/
Parameters
OBJNAM
The object name of the object whose existence is checked. This parameter consists
of three elements which together identify a model object. Values for this
parameter are described in the following:
*SRCMBR—(default) Single value indicating that the object implementation
name (source member) is used to identify the model object to be checked.
object owner name—The character name of the object which owns the object to
be checked. Thus, for a function, the owning file would be entered.
*NONE—Special value indicating that the object concerned does not have an
owner (such as objects of type *FIL).
*ARRAYS—Special value for the product internal file *ARRAYS.
*MESSAGES—Special value for the product internal file *MESSAGES.
object name—The character name of the object to be checked.
object type—The object type of the object.
*ACP—Object is of type access path.
*APP—Object is of type application area.
*ARR—Object is of type array.
*CND—Object is of type condition.
*FIL—Object is of type file.
*FLD—Object is of type field.
*FUN—Object is of type function.
*MSG—Object is of type message.
SRCMBR
The source member implementation name of the model object whose existence is
checked. Values for this parameter are described in the following:
*OBJNAM—(default) Use object name to identify the model object to be
checked.
source member name—The source member name of the model object.
implementation object type—The type of object created by the source member.
This value may be required to distinguish between objects that have the same
implementation name, such as a display file in a model that has the same name
as a program.
*ANY—(default) The object type is unspecified.
*PGM—The object is a program.
MDLLIB
This parameter allows the user to specify the model library in which to find the
object. Values for this parameter are described in the following:
*MDLLIB—(default) Use the first model library in the job's current library list.
model library—The name of the model library to use.
RTNOBJSGT
CL variable that is to receive the surrogate key of the object. Decimal variable,
seven digits packed.
Notes
■ A search is made for the model object in the first model library found in the
library list. If the object is found, the command completes normally. If the
object is not found, an exception message (Y2EO311) is sent.
■ If the object being checked is not a primary object (such as the display file or
help file for a panel based function), the surrogate number of the owning
object is returned. Thus, for a display file auxiliary object, the function
surrogate number would be returned.
Example
To check whether the function Edit Order version 2 exists in the model, enter the
following command:
YCHKMDLOBJ OBJNAM( 'Order' 'Edit Order + version 2' *FUN )
To check whether the function UUG2EFR exists in data model DEVMDL, and, if
it does, to receive the corresponding object surrogate key number in parameter
&OBJSGT:
YCHKMDLOBJ SRCMBR( UUG2EFR ) + MDLLIB(DEVMDL) RTNOBJSGT( &OBJSGT )
Required
*CURLIB
YCLRMDL MDLLIB
library name
Optional
*NONE
*NONE
*GENLIB
GENLIB SQLLIB *SQLLIB
*CURLIB
library name
library name
Parameters
MDLLIB
Library containing a design model you want to clear. The value for this
parameter is as follows:
*CURLIB—Use current library for invoking job.
GENLIB
Library containing generated source to be cleared. Values for this parameter are
described in the following:
*NONE—(default) Do not clear the generation library.
*GENLIB—Clear the generation library whose name is given by the YGENLIB
model value.
*CURLIB—Use current library for invoking job.
SQLLIB
Library containing the SQL collection to be cleared. Values for this parameter are
described in the following:
*NONE—(default) Do not clear the collection library.
*SQLLIB—Clear the library containing the SQL collection given by the YSQLLIB
model value.
Notes
■ When you clear a model, the Advantage 2E null model (Y2SYMDL) must be
present. If you specify a library name for the GENLIB parameter, all
programs and files in the library beginning with the system prefix are
deleted (except those beginning with “Q”).
■ Model profiles are not cleared by the YCLRMDL command. To clear model
profiles, you should clear file YMDLPRFRFP in the model.
Example
Optional
*MDLPRF
*MDLLIB/ *USER
YCLRMDLLST MDLLST
model library/ *SELECT
list name
Parameters
MDLLST
The qualified name of the model object list that is to be cleared. Values for this
parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile extension record for the current user in the
specified model library.
*USER—Special value meaning that the user profile name of the current user is
used as the list name for the target of the command.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
list name—The model object list name can be entered.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used as the model library for the list.
library name—Model library name for the list.
Example
To clear entries from model object list LST001 from the model contained in the
current library list:
YCLRMDLLST MDLLST( *MDLLIB/LST001 )
Required
*OBJSGT1
YCMPMDLOBJ OBJNAM1
owner name *FUN
object name
*MESSAGES *MSG
*OBJNAM1
OBJSGT1
model object surrogate
*MDLLIB
MDLLIB1
model library name
*OBJSGT2
OBJNAM2 *OBJNAM1
owner name
*OBJNAM2
*PRD
OBJSGT2
*SELECT
MDLLIB1
MDLLIB2
model library name
Optional
*NO *NO
IGNCASE PRTHDRS
*YES *YES
3
MATCHSIZE
number of lines
1
PRTBEFORE
number of lines
1
PRTAFTER
number of lines
*LIST
PRTDFFOPT
*NOLIST
Parameters
OBJNAM1
The first object name of the two objects which are to be compared. This
parameter consists of three elements which together identify a model object.
Values for this parameter are described in the following:
*OBJSGT1—(default) Single value indicating that the first object surrogate
number parameter is to be used to identify the model object to be compared.
object owner name—The character name of the object which owns the object to
be compared. Thus, for a function, the owning file would be entered.
*MESSAGES—The internal file *Messages is the owner of the object (note that
this value is only allowed for objects of type *MSG).
object name—The character name of the object to be compared.
object type—The object type of the object.
*FUN—Object is of type function.
*MSG—Object is of type message.
OBJSGT1
Unique number identifier of the first model object that is compared. Values for
this parameter are described in the following:
*OBJNAM1—(default) Use the first object name parameter details to identify the
first model object.
object surrogate—The surrogate number of the first model object.
MDLLIB1
This parameter identifies the model in which the first object resides. Values for
this parameter are described in the following:
*MDLLIB—(default) Special value indicating that the first model in the library
list is used.
model name—The name of the model.
OBJNAM2
The name of the second object that is compared. This parameter consists of three
elements which together identify a model object. Values for this parameter are
described in the following:
*OBJSGT2—(default) Single value indicating that the second object surrogate
number parameter is used to identify the model object to be compared.
object owner name—The character name of the object that owns the second
object to be compared.
*MESSAGES—The internal file *Messages is the owner of the object (note that
this value is only allowed for objects of type *MSG).
*OBJNAM1—(default) Special value indicating that the second object name is
the same as the first object name.
object name—The character name of the object to be compared.
*OBJNAM1—(default) Special value indicating that the second object type is the
same as the first object type. This is a required value. That is, the comparison of
different object types is not supported.
OBJSGT2
Unique number identifier of the second model object to be compared. Values for
this parameter are described in the following:
*OBJNAM2—(default) Use the second object name parameter details to identify
the second model object.
*PRD—Use the surrogate number of the production version of the group to
which OBJSGT1 belongs.
*SELECT—Invoke a selection program so you can select a version from the
group to which OBJSGT1 belongs.
object surrogate—The surrogate number of the second model object.
MDLLIB2
This parameter identifies the model in which the second object resides. Values
for this parameter are described in the following:
*MDLLIB1—(default) Special value meaning that the model is the same as that
specified on the MDLLIB1 parameter.
model name—The name of the model.
IGNCASE
Case sensitivity option. Values for this parameter are described in the following:
*NO—(default) Treat upper and lower case text as different when comparing
object details.
*YES—Ignore any differences between text which is the result of a case
difference only. For example, the character x will match with X.
PRTHDRS
This parameter controls the printing of headings and action diagram user points
during processing. Values for this parameter are described in the following:
*NO—(default) Headings will not be printed. If there are no differences between
the two objects compared, no spool file will be produced.
*YES—Headings will be printed. A spool file will be produced even if there are
no significant differences between the two objects. The forced printing of
headings is useful when there is a difference between two large action diagrams
as it identifies the user point in which the difference occurs.
MATCHSIZE
The number of lines required for a match. The value for this parameter is as
follows:
3—(default) Three lines must match.
PRTBEFORE
PRTAFTER
PRTDFFOPT
Indicates whether differences are to be reported. Values for this parameter are
described in the following:
*LIST—(default) Print the mismatched lines.
*NOLIST—No mismatch details are to be reported. Simply indicate whether or
not the objects match.
Notes
■ Each object must exist in the specified model(s) prior to running the
command.
■ If the two objects are found to differ, an exception message is returned to
notify the user.
■ Model objects can either be identified by object name (OBJNAM) or by object
surrogate key number (OBJSGT). If the OBJNAM parameter is used, the
processing program must convert to surrogate key number internally. Thus,
it will normally be more efficient to use the surrogate number if this value is
available. The surrogate number for an object can be obtained using the
Retrieve Model Object command (YRTVMDLOBJ).
■ Users of this command should note that when applied to a function which
has an action diagram, commented code is not ignored.
Example
To check whether the function Display Vehicle Dtls #1 differs from Display
Vehicle Dtls #2, ignoring any case differences in the object definitions, enter the
following command:
YCMPMDLOBJ OBJNAM1( 'Vehicle' 'Display + Vehicle Dtls #1' *FUN )
OBJNAM2( *OBJNAM1 + 'Display Vehicle Dtls #2' *OBJNAM1 ) + IGNCASE( *YES )
Required
Optional
*ADD *YES
MDLOPT CRTMDL
*REPLACE *NO
Parameters
FROMMDLLIB
Name of design model you want to copy. Must be a model library. The value for
this parameter is as follows:
*CURLIB—Use current library for invoking job.
TOMDLLIB
MDLOPT
Model copy option. Values for this parameter are described in the following:
*ADD—(default) Add to the contents of a new model. This option is only
allowed if *YES is specified for the CRTMDL parameter.
*REPLACE—Replace any existing contents of the model named by the
TOMDLLIB parameter.
CRTMDL
Model create option. Values for this parameter are described in the following:
*YES—(default) If the model specified by the TOMDLLIB parameter does not
exist, create it.
*NO—If the model specified by the TOMDLLIB parameter does not exist, do not
copy the model.
Notes
■ You cannot copy a model while it is in use.
■ The YCPYMDL command does not create a Advantage 2E generation
library. If you have created a model using the CRTMDL(*YES) parameter of
YCPYMDL, you will need to create the generation library yourself.
■ To create a generation library:
YCRTMDLLIB MDLLIB(*NONE) GENLIB(NEWGEN)
■ If you wish to copy objects from the generation library of the copied model:
YCRTDUPOBJ OBJ (*ALL) +
FROMLIB (old generation library) +
OBJTYPE (*ALL) +
TOLIB (new generation library) +
DATA (*YES) CRTOPT (*ALL)
■ The YCPYMDL and YCRTDUPOBJ commands leave your new model library
with settings from your old model for some of the Environment model
values. For example:
YGENLI—Generation Library
YSQLLIB—SQL Collection Library
YCPYLIB—Copy Library
YOLDLIB—Old Library
YCMPTXT—Company Text
Use the YCHGMDLVAL command to change the settings of these model
values in your new model as needed.
For more information on the Environment model values, refer to this
chapter, the YCHGMDLVAL command.
Example
Add the generation library name to the list. Save the library list and the job
description on exit.
YCHGMDLVAL MDLVAL(model value name) + VALUE(new value)
If the target list exists prior to the copy it can be replaced or appended to. At the
time of the copy, list entries can be refreshed in the target list and optionally
flagged for further processing.
Required
*MDLLIB/ *MDLPRF
YCPYMDLLST FRMMDLLST
model library name *USER
*SELECT
Optional
*MDLPRF
*FRMMDLLIB
TOMDLLST *USER
model library name
model object list name
*REPLACE
LSTOPT
*ADD
*NONE
TOUPDOPT *RFSALL
*RFSSGT
*ANY
FLAGVAL *ERROR
*SELECTED
Parameters
FRMMDLLST
The qualified name of the list that is copied. Values for this parameter are
described in the following:
list name—The name of the list to copy.
*MDLPRF—Special value meaning that the name of the list is obtained from the
model profile details of the current user.
*USER—Special value indicating that the list to copy has the same name as the
current user.
*SELECT—Special value meaning that the list to copy is selected from an
interactive display.
*MDLLIB—(default) Special value meaning that the first model library in the
library list is used.
model library name—The name of the model library may be entered.
TOMDLLST
The qualified name of the list that is the target of the copy operation. Values for
this parameter are described in the following:
*MDLPRF—(default) Special value meaning that the name of the list is obtained
from the model profile details of the current user.
*USER—Special value indicating that the list to copy has the same name as the
current user.
list name—The name of the target list.
*FRMMDLLIB—(default) Special value meaning that the target model object list
exists or should be created in the same data model library as the list to copy.
model library name—The name of the target model object list model library.
LSTOPT
This parameter specifies the action to be taken if the list already exists in the
model. Values for this parameter are described in the following:
*REPLACE—(default) The existing model object list is replaced with the output
from this command.
*ADD—The existing model object list is augmented with the output from this
command.
TOUPDOPT
To list update option. Values for this parameter are described in the following:
*NONE—(default) No updates are made to the output list entries. This value is
only valid if the target model library is the same as the source model library.
*RFSALL—The data contained in each list entry are refreshed from the
corresponding model object details in the target model.
*RFSSGT—The surrogate number of each list entry is refreshed from the
corresponding model object details.
FLAGVAL
Specifies the flag value of entries processed from the input list during the copy.
Values for this parameter are described in the following:
*ANY—(default) No record selection is performed.
*SELECTED—Only entries flagged as being selected are processed.
*ERROR—Only entries flagged in error are processed.
Notes
■ The library for the input list must be a valid model library.
■ A value other than *MDLLIB for FRMMDLLST may result in the library list
being changed during execution of the command. If the user is currently
editing a model, the switching of the library list will not occur and the
command will fail. If changed during processing, the library list is changed
back after execution.
■ The FRMMDLLST must exist prior to running the command. The target list
will be created if it does not already exist.
■ The LSTOPT parameter will be ignored if the target list does not already
exist.
■ The refreshing of list entries is always by name. That is, the details for each
entry are ascertained by attempting to find the object by name in the model
object file of the target model. If the object cannot be found, the entry in the
input list is flagged in error and the object is not copied to the target list.
■ If the object already exists in the target list, no action is taken to refresh the
entry.
■ The refresh surrogate number option (*RFSSGT) refreshes the surrogate
number, object type, object attribute, owner surrogate and owner name of
the new object entry in the target list.
■ The completion message for this command includes a count of the number of
records that already existed in the target list, the number of records copied
and the number of errors, where objects from the input list could not be
found in the target model.
■ If any errors were encountered, a diagnostic is sent for each one indicating
the reason for the error and at the end of processing an escape message is
sent, for which developers may monitor.
Example
To copy model object list WRKLST from the model contained in the current
library list to a model object list with the same name as the current user:
YCPYMDLLST FRMMDLLST(*MDLLIB/WRKLST) + TOMDLLST(*MDLLIB/*USER)
LSTOPT(*REPLACE)
Required
*CURLIB *CURLIB
YCPYMDLOBJ FRMMDLLIB TOMDLLIB
model library name library name
Optional
*PREPASS *YES
CPYOPT CPYNM
*COPY *NO
*YES
*NO *ALL
CPYTXT CPYCND
*OPR *SELECTED
*FUN
*DBF
*INT
CPYSUBFUN
*ALL
*NONE
*REJECT *CURRENT
MAPDUP MAPVSN
*GENERATE *FIRST
*MDLPRF
*SELECT
CPYLST
*USER
*MDLVAL
TGTGENLIB *NONE
library name
*NEXT
ROBPFX *NONE
list of reserved
file prefixes
*ANY
*NO
(1)
SEVFLT *ERROR
EXPRQDOBJ
*YES
severity filter
0-30
*NONE
*BYOBJECT
(2) (3)
*NOMAX
MDLLCK *MODEL ERRLVL
error level
Parameters
FROMMDLLIB
Name of design model from which objects are copied. You must have previously
built and edited a model list in this library. The value for this parameter is as
follows:
*CURLIB—Use current library for invoking job.
TOMDLLIB
Name of model library to which objects are copied. It must be a valid design
model that has been created with the YCRTMDLLIB or YCPYMDL commands.
The value for this parameter is as follows:
*CURLIB—Use current library for invoking job.
CPYOPT
Model copy option. Values for this parameter are described in the following:
*PREPASS—(default) Check the objects to be copied against the objects in the
target model named by the TOMDLLIB parameter. Produce a report of any
discrepancies found. Do not actually copy objects.
*COPY—Copy the objects in the list to the model named by the TOMDLLIB
parameter. Produce a report of any alterations that have to be made to the target
model.
CPYVNM
CPYTXT
CPYCND
CPYSUBFUN
Note that this parameter affects the expansion of explicitly selected objects. If an
object that does not qualify for expansion is encountered, and it does not exist in
the target model, processing cannot continue past the prepass stage. See the
EXPRQDOBJ parameter and the Notes section for more details. Values for this
parameter are described in the following:
*DBF—(default) When copying a function, also copy any database functions (for
example, CRTOBJ, CHGOBJ) called by the function.
*INT—When copying a function, also copy all internal functions (for example,
EXCINTFUN) called by the function.
*ALL—Copy all subordinate functions called by the function.
*NONE—Do not copy any subordinate functions called by the function.
MAPDUP
MAPVSN
This parameter is used while identifying which version for a versionable object
should be replaced in the target model. Values for this parameter are described
in the following:
*CURRENT—(default) The current version of all objects found in the target
model will be replaced during the copy process. If there is no current version for
an object then the copy will replace the *FIRST version for the group. See the
description of the *FIRST parameter value.
CPYLST
This parameter specifies the model object list that lists the objects to copy to the
target model. Values for this parameter are described in the following:
*MDLPRF—(default) The list name is retrieved from the model profile for the
current user.
*SELECT—An interactive program is called from which you can select a model
object list.
*USER—The list name is the same as the current user name.
list name—The name of a specific model object list.
TGTGENLIB
This parameter specifies the generation library associated with the target model
that receives the source for function types Execute User Program or Execute User
Source which are included in the copy process. Values for this parameter are
described in the following:
*MDLVAL—(default) Use the default generation library name for the target
model.
*NONE—No source is copied to the target model.
library name—The name of the library to receive source.
ROBPFX
Specifies allocation of reserved object prefixes for files when the basic limit (AA-
T9) has been exceeded. Values for this parameter are described in the following:
*NEXT—(default) Use available system prefixes (UU and up).
*NONE—No allocation.
list of reserved file prefixes—String of up to 5 two-character values can be
specified to be used as reserved prefixes for files.
SEVFLT
Note: You can change the default value for the YCPYMDLOBJ messages by first
duplicating them out into a separate message file and then changing their
message severity. If this is do, remember that messages shipped with a severity
of 30 are deemed to be *Error messages. Values for this parameter are described
in the following:
*ANY—(default) Print all messages. This is equivalent to entering a severity
filter of 0.
*ERROR—Only print error messages on the prepass report. This is equivalent to
entering a severity filter of 30.
severity filter—A value from 0 to 30. Only messages with a severity greater than
or equal to this value will be printed on the prepass report.
EXPRQDOBJ
MDLLCK
This parameter specifies how the source model is to be locked during the copy
operation. Only prompted if the CPYOPT parameter is set to *COPY. Values for
this parameter are described in the following:
*BYOBJECT—(default) The source model is placed in a shared lock state and all
objects explicitly or implicitly required are also placed in a shared lock state.
Using this option avoids locking the model during the copy process, however,
locking objects individually involves extra processing. All objects must be
available for processing to succeed, thus, the copy process will stop if any object
cannot be locked.
Since only a read lock is placed on required objects, it will be possible to share
objects while copying them. For example, an access path can be copied and, at
the same time, shared by a programmer editing a function based on that access
path. It would not be possible, however, to attempt to edit the access path.
Use the ERRLVL parameter to specify how many object locks may fail before
stopping. This is useful when a small number of objects is involved so that they
can be released and the copy process restarted. When a large number of objects is
involved it may be easier to stop after the first object lock fails
(ERRLVL(*NONE)), so that processing can be deferred until the whole model
becomes available.
*MODEL—The source model is exclusively locked for the duration of
processing. No concurrent access is allowed in this state.
ERRLVL
Specifies how many object lock errors can occur before processing stops. This
applies only where you lock individual objects in the source model, namely
when MDLLCK is *BYOBJECT.
Note that processing will stop even if only one object cannot be locked. This
parameter simply allows processing to continue so that a given number of errors
may be accumulated before stopping. Values for this parameter are described in
the following:
*NONE—(default) Processing will stop when the first object that cannot be
locked is encountered.
*NOMAX—Processing will stop at the end of the expansion phase if any objects
could not be locked.
error level—Processing will stop when the number of objects which cannot be
locked equals or exceeds the entered value.
Notes
■ You cannot copy to a target model if it is in use by another job. However,
you can run the YCPYMDLOBJ command with the CPYOPT(*PREPASS)
option. For concurrent use of the source model, refer to the MDLLCK
parameter.
■ The model library named in the TOMDLLIB parameter (target model) must
be the first model library in your library list.
■ For SQL you must create an SQL collection before generating source.
Possible referenced objects for the functions object type are as follows:
– The based-on access path.
– Any function parameters, any files used to define function parameters.
– Any objects referenced by the function's action diagram: constants, fields
and conditions.
– Function fields.
– Action bars.
Note: Functions called by a selected function (other than built-in functions
and message functions) are not copied unless they too are selected or unless
CPYSUBFUN is specified to be *DBF, *INT or *ALL as appropriate. See also
the Note later in this section on CPYSUBFUN and EXPRQDOBJ for details.
The possible referenced object for the messages object type is as follows:
– Any parameters (and files and fields named in parameter definition).
There are no referenced objects for the Application areas object type.
Note: The expand list does not automatically include functions of type
SELRCD which are implicitly, rather than explicitly, referenced by other
functions. If there are fields with a user-defined data type of the same name
in both models, fields from the source model will take the attributes of the
data type in the target model, unless the internal/external conversion
functions do not match; that is, the target model data type attributes will not
be overwritten.
Preliminary Check—Makes a preliminary (pre-pass) check against the
model named in the TOMDLLIB parameter. This checks whether an object
with the same Advantage 2E name is already present in the target model and
if so, whether it is the same in all its attributes. If there is a discrepancy, one
of two types of messages will be generated on a report:
Warnings—A warning message indicates an insignificant difference
between the two models, (i.e., one that can be handled automatically by
the subsequent copy process). Warning messages can be subdivided into
two classes by their severity levels:
◆ Severity 10—(Additional objects) These occur when there are fewer
associated objects in the target model than in the source model. In
this case, the additional objects can be copied to the target model
without changing any existing values in the target model.
◆ Severity 20—(Property differences) These occur when the objects
differ in one or more of their properties (for example, fields have
different lengths or data types) but it will be possible to produce a
viable new version simply by replacing the existing version in the
target model with the version from the source model.
Effect on Target
Model
Selection in Model list Already present Not already present
Explicit REPLACE ADD
Implicit DO NOT COPY ADD
The following table shows for each object type the possible referenced
object types that may be copied or replaced.:
Note that:
■ When a field is replaced, any existing conditions it may have in the
target model are retained. In other words, the copy is a merge. New
conditions are added but existing conditions are not updated. If
there is a conflict over the condition values that would prevent the
merge, an error message will be sent.
■ When an application area is replaced, any existing files assigned to it
in the target model are retained.
Example
The following example shows this principle diagrammatically. Assume that you
have a target model that already contains two objects (for example, files) B and
C. Assume that you wish to copy a list of objects from a source model including
an object A (for example, an access path) which depends on four other objects B,
C, D, and E. In your model list you select A, and also C and E. Then the
YCPYMDLOBJ command proceeds as follows when copying object A:
■ Object B is implicitly selected but already present in the target model, so it is
not copied. For example, the new version of A refers to the existing version
B' in the target model.
■ Object C is explicitly selected, so it is replaced with the new version from the
source model.
■ Object D is implicitly selected and not present, so it is added to the target
model.
■ Object E is explicitly selected, so it is added to the target model.
■ Object A is added to the target model.
A B' * A A
B B
C' * B rqd
C C
* C rqd
D D
* D rqd
E E
* E rqd
– If either the name for a field or RPG prefix for a file or source member
name from the source model have already been used in the target model,
a warning will be generated. If the target model is allocating names
automatically (i.e., a value of *YES specified for the YALCVNM model
value), a newly generated name or RPG III prefix will be allocated to the
object when the copy occurs. If you are not auto-allocating names, they
will be left blank for you to supply. The new names will be recorded on
the audit listing.
Note: If different model prefixes are used for the two models (specified with
the YOBJPFX model value), these will be retained in source member names
after copying. In this instance it is very unlikely that there will be any
conflict of source member names.
■ The following considerations apply to the issuing of message identifiers.
– If a message identifier already exists in the target model, and you have
specified that the target model is to allocate message identifiers
automatically (i.e., the YMSGPFX model value is not *NO), a new
identifier will be assigned. If you have not, the identifier will be left
blank.
– If the messages in the source and target models are stored in message
files of different names (the message file is determined by the message
prefix), then a new message file with the same name as that used in the
source model will be created in the target model. This fact is recorded on
the audit listing.
■ The following considerations discuss how the Copy Subfunctions
(CPYSUBFUN) and Expand Required Objects (EXPRQDOBJ) parameters
affect the copying of functions.
– The EXPRQDOBJ parameter applies only when a function is not
included by CPYSUBFUN (does not qualify for expansion) and does not
exist in the target model.
A function qualifies for expansion of references if it is explicitly selected,
it meets the criteria set by the CPYSUBFUN parameter, or if it does not
exist in the target model and EXPRQDOBJ is set to *YES.
– The following table shows how the CPYSUBFUN and EXPRQDOBJ
parameters work together to control whether references are expanded
for a function and whether the function is copied to the target model.
Note that this table applies only if the function is NOT explicitly selected
and the CPYSUBFUN parameter is not set to *ALL.
Example
Optional
*CURLIB *YES
YCRTGENOBJ OBJLIB CRTSRCPF
library name *NO
*YES *YES
CVTCNDVAL CVTMDLMSG
*NO *NO
*YES *ALL
CRTAPPOBJ CRTOPT
*NO *NEW
*CHANGE *LNG
*EXCLUDE *NO
*YES
CRTPMTMSG
*NO
Parameters
OBJLIB
Name of the target library into which the required generation objects are
duplicated. Values for this parameter are described in the following:
Library name—(default) The name of the target library.
*CURLIB—Use current library for invoking job.
CRTSRCPF
Duplicate source physical files into target library. This command duplicates
source physical files for help text or application source. Values for this parameter
are described in the following:
*YES—(default) Duplicate all source physical files.
*NO—Source physical files are not duplicated.
CVTCNDVAL
CVTMDLMSG
CRTAPPOBJ
CRTOPT
Duplicate existing objects option. Values for this parameter are described in the
following:
*ALL—(default) Duplicate all objects. Replace any existing objects with updated
versions.
*NEW—Only duplicate objects that do not already exist in the destination
library.
AUT
Authorization rights granted to created libraries and source files. Values for this
parameter are described in the following:
*CHANGE—(default) Grant operational rights and all data rights.
*EXCLUDE—Do not grant access rights.
*ALL—Grant all rights.
IGCDTA
CRTPMTMSG
Create user prompt message file (NL3). Values for this parameter are described
in the following:
*NO—(default) Do not create user prompt message file.
*YES—Create user prompt message file.
Notes
■ If *YES is specified on the CRTSRCPF parameter, empty source physical files
will be created in the target library. Otherwise, the QTXTSRC file from the
first generation library encountered in the library list will be duplicated.
■ The CRTAPPOBJ parameter will use the CRTOPT parameter to determine
which application objects will be duplicated.
■ You must have a GENLIB attached to the model. (Data area
MDLLIB/YGENLIBRFA cannot contain *NONE).
Example
To create the required generation and application objects into the library APPLIB
creating source physical files:
YCRTGENOBJ OBJLIB(APPLIB)
Required
*OBJSGT
*OBJNAM
OBJSGT
object surrogate
number
*MDLPRF
*MDLPRF/
*USER
JOBLST *MDLLIB/
*JOB
model library/
job list name
Optional
*GENERATE *NO
*PREGEN *EDIT
Parameters
OBJNAM
The object name of the primary object which is placed on the job list. This
parameter consists of three elements which together identify a model object.
Values for this parameter are described in the following:
*OBJSGT—(default) Single value indicating that the object surrogate key
number is used to identify the model object placed on the job list.
object owner name—The character name of the object which owns the object to
be placed. Thus, for a function, the owning file would be entered.
object name—The character name of the object to be placed.
object type—The object type of the object.
*ACP—Object is of type access path.
*FUN—Object is of type function.
OBJSGT
The object surrogate key number of the model object that is placed on the job list.
Values for this parameter are described in the following:
*OBJNAM—(default) Use object name to identify the model object.
object surrogate number—The surrogate key number of the model object.
JOBLST
The name of the Advantage 2E job list that the object is placed on. Values for this
parameter are described in the following:
*MDLPRF—(default) Special value meaning that the job list name should be
taken from the current user's model profile in the model.
*USER—Special value meaning that the user profile name of the current user is
used as the job list name.
*JOB—Special value meaning that a job list with the same name as the current
job name is used.
job list name—The name of the list to be used.
CRTOPT
This parameter specifies the default action for entries on the target job list.
Values for this parameter are described in the following:
*GENERATE—(default) The job list entries should be ready for object
regeneration and recompilation.
*COMPILE—The job list entries should be ready for object recompilation only.
*PREGEN—This option specifies that the source for the object is generated prior
to the entry being placed on the job list for compile. Note that this will involve an
interactive generation if the command is executed in an interactive job.
SBMMDLCRT
This parameter specifies whether the resulting job list is submitted for model
generation/creation. Values for this parameter are described in the following:
*NO—(default) The job list is not submitted.
*YES—The job list is submitted after being updated.
*EDIT—The job list is edited prior to submission.
Notes
■ If the object and its auxiliaries already exist on the target job list, the status is
set to that which is defined on the command. However, note that in certain
cases the command will not be able to convert. For example, if the object is
currently being generated, then it would not be appropriate to adjust its
status. If unable to convert an existing job list entry, an exception message is
sent.
■ Model objects can either be identified by object name (OBJNAM) or by object
surrogate key number (OBJSGT). If the OBJNAM parameter is used, the
processing program must convert to surrogate key number internally. Thus,
it will normally be more efficient to use the surrogate number if this value is
available. The surrogate number for an object can be obtained using the
Retrieve Model Object command (YRTVMDLOBJ).
Example
To place the function Process Orders onto the job list of the current user for
regeneration and recompilation enter the following command:
YCRTJOBLE OBJNAM( 'Order' 'Process Orders' + *FUN ) JOBLST( *USER ) CRTOPT
( *GENERATE )
Optional
Y2MDL *GEN
P
YCRTMDLLIB MDLLIB *NONE GENLIB *NONE
*DBFGEN
*GEN
SQLLIB SYSTXT text
*NONE
library name
*SYS
*CUATEXT UU
DSNSTD OBJPFX
*CUAENTRY prefix
*s38
Y2 USR
prefix prefix
*NPT
*NONE *GUI
CHGCTL WSNGEN
library name *JVA
*VB
*SYS
*MSGID *MSGPFX
PMTGEN MSGVNM
*LITERAL message file
name
*OFF
*SYS *SYSHLL
*SQL *CBL
*HLLGEN
*RPG
HLLVNM *CBL
*RPGCBL
*VNM
*SYSNPH
*YES
NPTHLP *TM GENHLP
*NO
*UIM
*LIBL *LNG
*LIBL/
*MDLLIB
*CURLIB
LIBLST library list name
library name/
*NONE
*MDLLIB
25 maximum QBATCH
LIBL JOBD
library name job description name
*JOBD
*LIBL/
library
name/
*CHANGE
AUT *EXCLUDE
*ALL
Parameters
MDLLIB
Name of library to contain the design model and application design. Sets the
YMDLLIB model value. This name should have the MDL suffix. The value for
this parameter is as follows:
*NONE—Do not create a model library.
GENLIB
Name of library into which source is generated and into which programs and
files are compiled. Sets the YGENLIB model value. Values for this parameter are
described in the following:
*GEN—(default) Derive name of generated source library according to the rules
given in the notes section.
*NONE—Do not create a source library.
SQLLIB
SYSTEXT
Text for the model. Sets the YMDLTXT and YCMPTXT model values.
DSNSTD
Default design standards. Sets the default values for the model values and other
parameters controlling aspects of the user interface design standards. Values for
this parameter are described in the following:
*SYS—(default) Set default according to YSYSSAA model value.
*CUAENTRY—Set default to SAA CUA Entry model standard.
*CUATEXT—Set default to SAA CUA Text model standard.
*S38—Set defaults to System/38 default standard.
OBJPFX
Application object prefix added to the beginning of all member names that
contain source generated by Advantage 2E. The prefix is only used if automatic
generation of member names is specified (system value YALCVNMRFA=Y). For
example, UU+ CUDAP=UUCUDAP, UU+CHCUR=UUCHCUR. Sets the
YOBJPFX model value. The value for this parameter is as follows:
UU—(default) Application prefix.
VLSPFX
Values list object prefix added to the beginning of the names of all objects used
to implement the values list facility (xxVLLSP, xxVLLSL0, xxVLLSR,
xxVLLLSR#). For example, UU+VLLSP=UUVLLSP. Sets the YVLSPFX model
value. Values for this parameter are described in the following:
Y2—(default) Application prefix.
*OBJPFX—Use the same value as that specified for the OBJPFX parameter.
MSGPFX
WSNGEN
Specifies whether functions are implemented for NPT terminals or for Windows
communicating with an iSeries (AS/400) host. This parameter sets the
YWSNGEN model value. Values for this parameter are described in the
following:
*NPT—(default) Generate an NPT implementation.
*GUI—Generate a Windows implementation.
*JVA—Generate a Windows implementation for use with a Web browser.
*VB—Generate a Windows implementation for use with Visual Basic Forms.
PMTGEN
Device prompt generation option. Sets the YPMTGEN model value. Values for
this parameter are described in the following:
*LITERAL—(default) Generate device prompts in display and printer files DDS
as fixed literals.
*MSGID—Generate device prompts in display file DDS source as MSGID
references and message descriptions.
*SYS—Default to value specified by YSYSPMT system model value.
*OFF—A message ID is allocated but is not generated in the message file.
DBFGEN
HLLGEN
Default HLL language in which to generate program source. Sets the YHLLGEN
model value. Values for this parameter are described in the following:
*SYSHLL—(default) Default to value specified by YSYSHLL model value.
*RPG—Generate programs in RPG III by default.
*CBL—Generate in COBOL by default.
HLLVNM
HLL language naming conventions for DDS names generated by Advantage 2E.
Sets the YHLLVNM model value. Values for this parameter are described in the
following:
*RPGCBL—(default) Naming to be compatible with RPG and COBOL
requirements.
*RPG—Naming to be compatible with RPG requirements.
*CBL—Naming to be compatible with COBOL requirements.
CHGCTL
This parameter allows the new model to run with change control. The library
name specified should contain change management exit programs. Values for
this parameter are described in the following:
*NONE—(default) Change control is not enabled for the model.
library name—The library containing change control exit programs.
For more information on change control, see the Start Change Control
(YSTRCHGCTL) command section in this guide.
MSGVNM
GENHLP
Generate help text. Values for this parameter are described in the following:
*YES—(default) Generate help text when generating functions.
*NO—Do not generate help text by default.
NPTHLP
Default NPT help generation language. Values for this parameter are described
in the following:
*SYSNPH—(default) Use system-wide model value YSYSNPH.
*TM—Generate help text in TM/38.
*UIM—Generate help text in UIM.
LNG
National language for system data in model. You must have the appropriate
national language product libraries loaded onto your machine and referenced in
a data area in the base product library. The value for this parameter is as follows:
*LIBL—(default) Use the language of the first product library found in the
library list.
Must be one of the national language options.
Note: When specifying a national language it is advisable to make sure the
library list of the job running the YCRTMDLLIB command is correct. It should
include the following libraries in order:
■ Advantage 2E 400 Toolkit national language library
■ Advantage 2E 400 Toolkit English product library
■ Advantage 2E national language library
■ Advantage 2E English product library
If a model that requires national language support is created without this
prerequisite, edit the model library list, using the Edit Library List command
(YEDTLIBLST), to correct the error.
IGCDTA
LIBLST
Qualified name of a library list that is to be built or updated: the library list will
contain the libraries necessary to use the model that is being created. Values for
this parameter are described in the following:
*MDLLIB—(default) Library list has same name as the model library.
*NONE—Do not create a library list.
LIBL
Libraries that are to be included in library list specified by the LIBLST parameter,
and in the initial library list of the job description specified by the JOBD
parameter. Up to 25 libraries may be specified. The value for this parameter is as
follows:
*MDLLIB—(default) Creates the following library list:
1. QTEMP
2. GENLIB parameter value
3. SQLLIB parameter value
4. MDLLIB parameter value
5. QGPL
6. National language library depending on LNG
7. Advantage 400 Toolkit product library
8. Advantage 2E product library, depending on HLLGEN and WSNGEN
JOBD
JOBQ
Qualified name of job queue where batch requests are submitted. The value for
this parameter is as follows:
*JOBD—(default) Use default job queue name as specified on job description
QBATCH in the null model library.
AUT
Authorization rights granted to created libraries and source files. Values for this
parameter are described in the following:
*CHANGE—(default) Grant operational rights and all data rights.
*EXCLUDE—Do not grant access rights.
*ALL—Grant all rights.
Notes
■ When you run this command you must have all of the appropriate product
libraries in your library list.
■ To use the command, you must be authorized to the following OS/400
commands:
– Create Library (CRTLIB)
– Create Physical File (CRTPF)
– Create Data Area (CRTDTAARA)
– Create Source File (CRTSRCPF)
– Create Job Description (CRTJOBD)
– Create Duplicate Object (CRTDUPOBJ)
– Create Journal (CRTJRN)
– Create Journal Receiver (CRTJRNRCV)
– Create Data Dictionary (CRTDTADCT)
■ This command creates the following objects:
MDLLIB (Model library):
– Creates all files necessary for a Advantage 2E model.
– Creates a message file (OBJPFX + USRMSG).
– Sets model values as indicated on specific parameters.
– Changes INLLIBL of job description specified by JOBD parameter to
LIBL value, unless LIBLST(*NONE) is specified.
GENLIB (Generation library):
– A journal (OBJPFX + JRN), and journal receiver (OBJPFX + 00001).
– A menu file YDSNMNU.
– An action bar file (OBJPFX + ABDAP).
– YDSPHLP command help display data areas (YMHPFLA, HMHPLBA).
■ You can change the model values that you specified by using the command
Change Model Value (YCHGMDLVAL).
■ If you specify a value of *MDLLIB for the LIBLST parameter, then the
appropriate national language product library is included in the library list
automatically. If you specify the library list explicitly, then you should
ensure that the appropriate national language library is in the library list
before either of the Advantage 2E 400 Toolkit or Advantage 2E product
libraries.
■ The DSNSTD parameter controls the initial values for all the parameters
affecting design standards, CUA or non-CUA. DSNSTD sets:
Design Aspects Handling of Field Initial Panel Instruction Set Condition Value
Trailers Layout Form List
*CUATEXT CUA CUA Text Fn= n= Pop-Window
*CUAENTRY CUA CUA Entry Fn= n= Panel
*S38 YLHSFLL S/38 CMD: SEL: Panel
Example
To create a set of model libraries for an RPG and CBL application using
CUATXT design standards:
YCRTMDLLIB SYSTEXT(My system) + MDLLIB(MYMDL) GENLIB(MYGEN) OBJPFX(MY) +
HLLVNM(*RPGCBL) DSNSTD(*CUATEXT)
■ Library list MYMDL—Library list for My system model, which contains the
following libraries:
– QTEMP
– MYMDL
– MYGEN
– QGPL
– Advantage 2E product library
– Advantage 2E 400 Toolkit library
Required
Optional
*SAME *SAME
*SAME *SAME
*NO *NO
*SAME
USROPT
*LIBL QAUOOPT
*SAME
*FILE
USOPTMBR *FIRST
*MDLPRF
member name
*SAME
MDLLST *MDLPRF
list name
*SAME *SAME
Parameters
FRMOBJNAM
The name of the object that is copied. Values for this parameter are described in
the following:
*FRMOBJSGT—(default) Single value indicating that the object surrogate
number parameter is used to identify the model object.
object owner name—The character name of the object which owns the object.
Thus, for a function, the owning file would be entered.
*MESSAGES—The internal file *Messages is the owner of the object (note that
this value is only allowed for objects of type *MSG).
object name—The character name of the object.
object type—The object type of the object.
*FUN—Object is of type function.
*MSG—Object is of type message. Note that for objects of type *MSG, the owner
is the *Messages file.
FRMOBJSGT
Unique number identifier of the model object that is copied. Values for this
parameter are described in the following:
*FRMOBJNAM—(default) Use the object name parameter details to identify this
model object.
object surrogate—The surrogate number of the model object.
TOOBJNAM
The name of the object to which usage dependencies in the model are redirected.
Values for this parameter are described in the following:
*GENERATE—(default) This special value indicates that a new name is
generated for the new version. To control how the name generates, you should
use the shipped exit program YOBJNAMRIC.
object name—The new object name.
CUROBJ
This parameter allows the developer to choose whether to make the new version
current. Values for this parameter are described in the following:
*NO—(default) The new version is not made current.
*YES—The new version is made current.
TFRNAM
CHGTYP
This parameter allows the user to control whether the making of the new version
current is treated as a significant change. If a value other than *NONE is
specified, then component change processing will be invoked to reflect the
change throughout users of the new object. This parameter may only be specified
if CUROBJ is set to *YES. Values for this parameter are described in the
following:
*NONE—(default) The action of making the new version current is not treated
as a significant change in the model; no component change processing is to
occur.
*PRIVATE—Component change processing is to occur to apply a private change
to the users of the new version.
*PUBLIC—Component change processing is to occur to apply a public change to
the users of the new version.
*FRMOBJ—The change type associated with the From object will be examined
by component change processing.
RTNEDTSGT
CL variable that receives the surrogate of the resulting edit object. Decimal
variable, seven digits packed.
RTNNEWSGT
CL variable that receives the surrogate of the new version. Decimal variable,
seven digits packed.
RTNCURSGT
CL variable that receives the surrogate of the current version in the group.
Decimal variable, seven digits packed.
Notes
■ A search is made for the from model object in the first model library found
in the library list.
■ If the 25-character object name is transferred from the source object to the
target object, the source object must be renamed in the process. The shipped
25-character exit program, YOBJNAMRIC, will be used for this purpose.
Example
To create a new version of the Edit Widget function and call it Edit Sprocket
enter the following command:
YCRTMDLVSN FRMOBJNAM( 'Widget' 'Edit + Widget' *FUN ) TOOBJNAM( *FRMOBJNAM + 'Edit
Sprocket' *FRMOBJNAM )
Note: The processing of this command involves the prompting of the Create
Model Version command.
Required
Optional
*YES
ALWADJCUR
*NO
Parameters
FRMOBJSGT
Unique number identifier of the model object that will be copied. The value for
this parameter is as follows:
object surrogate—The surrogate number of the model object.
ALWADJCUR
This parameter indicates whether the user is allowed to adjust the currency
status of versions in the group to which the new version will belong. In practical
terms, it determines whether the CUROBJ and TFRNAM parameters on the
Create Model Version command (YCRTMDLVSN) are prompted. Values for this
parameter are described in the following:
*YES—(default) The user will be allowed to access to the CUROBJ and TFRNAM
parameters on the prompted Create Model Version command.
*NO—The user will not be allowed access to the CUROBJ and TFRNAM
parameters on the prompted Create Model Version command.
Example
This will result in the Create Model Version panel being prompted where the
new name for the object may be entered.
<paratext> <pagenum>
Required
Optional
*MDLLIB *MDLLIB
*LIBL/
*MDLLIB
*CURLIB/
library list name
LIBLST library name/
*NONE
*CHANGE
AUT *EXCLUDE
*ALL
Parameters
SQLLIB
Name of library into which SQL/400 collection is placed. Sets the YSQLLIB
model value.
MDLLIB
Name of the model library in which to set the YSQLLIB model value. Values for
this parameter are described in the following:
*MDLLIB—(default) Default to the first model library name found in the library
list.
*NONE—Do not set model value.
SYSTEXT
Text for the SQL library. Values for this parameter are described in the
following:
*SYSTEXT—(default) Use text found in model value YMDLTXT in library
specified by *MDLLIB.
*NONE—Do not use text for SQL library.
LIBLST
Qualified name of a library list that is built or updated. The library list will
contain the libraries necessary to use the model that is being created. Values for
this parameter are described in the following:
*MDLLIB—(default) Library list has same name as the model library.
*NONE—Do not create a library list.
AUT
Authorization rights granted to created libraries and source files. Values for this
parameter are described in the following:
*CHANGE—(default) Grant operational rights and all data rights.
*EXCLUDE—Do not grant access rights.
*ALL—Grant all rights.
Notes
To use the command, you must be authorized to the following OS/400
commands:
■ Create journal (CRTJRN)
■ Create journal receiver (CRTJRNRCV)
■ Create data dictionary (CRTDTADCT)
Example
This command must be run in order for new or changed values to be available in
the GENLIB for display by an application program. The file must not be in use
when you run this command.
Optional
*MDLLIB *GENLIB
Parameters
MDLLIB
Name of library containing the name of a design model from which the
condition values are converted. Values for this parameter are described in the
following:
*MDLLIB—(default) Use the first model library found in the library list.
*CURLIB—Use current library for invoking job.
GENLIB
Name of library into which converted values are placed. Values for this
parameter are described in the following:
*GENLIB—(default) Use the source generation library named by the YGENLIB
model value in the model library.
*CURLIB—Use current library for invoking job.
Notes
■ The file must not be in use when you run this command.
■ The converted values are placed in a file whose name is constructed from the
Value List Prefix model value (YVLSPFX) and the letters VLLSP; for
example, XX + VLLSP = XXVLLSP. If a version of the file does not already
exist in the library specified by the GENLIB parameter, one will be created.
Any existing records in the file are deleted, except for those records flagged
as user-added (that is, not generated from a Advantage 2E model). User-
added records have a value other than blank in the USRMOD field.
■ The condition values converted by this command are displayed to the user
when using generated programs if a ? or F4 is entered into a status field that
conditions are defined for. The values are displayed by an HLL program
whose name will be constructed from the Value List Prefix model value
(YVLSPFX) and the letters VLLSR; for example, XX + VLLSR = XXVLLSR.
The program will always be duplicated from the product library when the
YCVTCNDVAL command is run. The source for the program is available in
the shipped source library. If the value list prefix model value (YVLSPFX) is
changed, any programs that call the value list display will need to be
regenerated.
Example
Optional
*MDLLIB *GENLIB
Parameters
MDLLIB
Name of library containing the name of a design model from which the
distributed file entries are selected. Values for this parameter are described in the
following:
*MDLLIB—(default) Use the first model library found in the library list.
*CURLIB—Use current library for invoking job.
GENLIB
Name of library containing the database file into which distributed file entries
are placed. Values for this parameter are described in the following:
*GENLIB—(default) Use the source generation library named by the YGENLIB
model value in the model library.
*CURLIB—Use current library for invoking job.
Notes
■ Distributed files are those files which have been flagged with Distributed = Y
on the Edit File Details panel in the model.
■ Entries for all access paths for distributed files are placed in a file Y2DSTFP.
If Y2DSTFP does not already exist in the library specified by the GENLIB
parameter, it will be created.
■ An entry will also be added to the associated configuration file Y2CFGTP for
each access path. If Y2CFGTP does not already exist in the library specified
by the GENLIB parameter, it will be created.
Any existing records in Y2CFGTP will be preserved only if the associated
access path still exists in Y2DSTFP. Otherwise they will be deleted.
■ The editor for the configuration file used by YWRKDSTFIL is shipped as an
application defined in the model under the files *Configuration Table and
*Distributed File. You must generate this application using the design and
generator options you choose before you can use YWRKDSTFIL.
■ The distributed file entries converted are displayed to the user when the
YWRKDSTFIL command is executed.
For more information on working with distributed files and the configuration
table, refer to the YWRKDSTFIL command.
Example
Optional
*MDLPRF/ *MDLFPRF
*MDLLIB/ *USER
YCVTJOBLST JOBLST
*CURLIB/ *JOB
TEMPLST
*QTEMP/
*USER
*JOBLST/
OBJLST *JOB
*CURLIB/
*JOBLST
library name/
list name
*REPLACE *NO
LSTOPT *EDIT
*ADD *YES
*NO *NO
IGNHLD IGNERR
*YES *YES
Parameters
JOBLST
The qualified name of the Advantage 2E job list which is converted. Values for
this parameter are described in the following:
*MDLPRF—(default) Special value meaning that the job list name is to be
retrieved from the model profile details of the current user.
*USER—Special value meaning that the user profile name of the current user is
used as the job list name.
*JOB—Special value meaning that a job list with the same name as the current
job name is used.
list name—The name of the used list.
*MDLPRF—(default) Special value meaning that the job list library name is to be
retrieved from the model profile details of the current user.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used.
*CURLIB—Special value meaning that the model library is derived from the
job's current library.
library name—The name of the library.
OBJLST
The qualified name of the Advantage 2E 400 Toolkit Object List that is the target
of the conversion. Values for this parameter are described in the following:
TEMPLST—(default) Default list name.
*USER—Special value meaning that the user profile name of the current user is
used as the object list name for the target of the command.
*JOB—Special value meaning that a job list with the same name as the current
job name is used.
*JOBLST—The object list has the same name as the job list.
list name—The name of the object list to be built.
QTEMP—(default) The QTEMP temporary library of the current job is used.
*JOBLST—The object list resides in the same library as that of the JOBLST
parameter.
*CURLIB—The object list resides in the current library of the job.
library name—The name of the library to be the target of the command.
LSTOPT
This parameter specifies the action to be taken if the object list already exists.
Values for this parameter are described in the following:
*REPLACE—(default) The existing object list should be replaced with the output
from this command.
*ADD—The existing object list should be augmented with the output from this
command.
EDIT
This parameter specifies whether the resulting list is edited as part of processing.
Values for this parameter are described in the following:
*NO—(default) Editing of the list is not performed.
*YES—Editing of the list is performed.
IGNHLD
This parameter specifies whether or not HELD entries in the job list should be
ignored. Values for this parameter are described in the following:
*NO—(default) Held entries are not ignored.
IGNERR
This parameter specifies whether or not ERROR entries in the job list should be
ignored. Values for this parameter are described in the following:
*NO—(default) Error entries are not ignored.
*YES—Error entries are ignored.
Notes
■ The library specified for the job list must be a valid model library.
■ The EDIT parameter is ignored if the job running the command is a batch
job.
Example
To build object list MOVLST from the current user's job list, to object list
MOVLST in QTEMP, ignoring any entries in error on the job list:
YCVTJOBLST JOBLST( *MDLLIB/*USER ) +
OBJLST( QTEMP/MOVLST ) LSTOPT( *REPLACE) + IGNERR( *YES )
Optional
*MDLPRF
*ALLOBJ
*MDDLIB/ *USER
YCVTMDLLST FRMMDLLST
model library/ *SELECT
*SESSION
list name
*MDLPRF
*USER *GENERATE
JOBLST CRTOPT
*FRMMDLLST *COMPILE
list name
*REPLACE *ANY
LSTOPT FLAGVAL
*ADD *SELECTED
*ANY
COMPCHG *GEN
*EDT
*NO
SBMMDLCRT *YES
*EDIT
*GENLIB *OBJLIB
*NO
CVTASSIM
*YES
Parameters
FRMMDLLST
The qualified name of the model object list that is the source list involved in the
conversion. Values for this parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile extension record for the current user in the
specified model library.
*ALLOBJ—Special value meaning that a model object list is not used, but that all
model objects are included in the command.
*USER—Special value meaning that the user profile name of the current user is
used as the model object list name.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
*SESSION—Special value meaning that the session list recorded on the current
user's model profile is to be used as the model object list name.
list name—The source model object list name may be entered.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used as the model library for the source list.
library name—The model library name for the source list.
JOBLST
The name of the job list that is the target list of the conversion. Values for this
parameter are described in the following:
*MDLPRF—(default) The target list is specified on the current user's model
profile.
*USER—Special value meaning that the user profile name of the current user is
used as the target job list name.
*FRMMDLLST—Special value meaning that the name of the from model object
list is used as the target job list name.
list name—The target job list name.
CRTOPT
This parameter specifies the default action for entries in the target job list. Values
for this parameter are described in the following:
*GENERATE—(default) The job list entries are ready for object regeneration and
recompilation.
*COMPILE—The job list entries are ready for object recompilation only.
LSTOPT
This parameter specifies the action taken if the job list already exists in the target
model. Values for this parameter are described in the following:
*REPLACE—(default) The existing job list is replaced with the output from this
command.
*ADD—The existing job list is augmented with the output from this command.
FLAGVAL
This parameter allows model objects to be filtered by the entry flag value. Values
for this parameter are described in the following:
*ANY—(default) No filtering on flag value.
*SELECTED—Only explicitly selected model objects will satisfy the filter.
COMPCHG
SBMMDLCRT
This parameter specifies whether the resulting job list is submitted for model
generation/creation. Values for this parameter are described in the following:
*NO—(default) The job list is not submitted.
*YES—The job list is submitted after being updated.
*EDIT—The job list is edited prior to submission.
OBJLIB
This parameter specifies the object library name to be used on the Submit Model
Create command (YSBMMDLCRT). Values for this parameter are described in
the following:
*GENLIB—(default) Special value meaning that the object library is the
generation library of the first model found in the current library list.
*CURLIB—Special value meaning that the object library is the current library.
library name—The object library name.
SRCLIB
This parameter specifies the source library name used on the Submit Model
Create command (YSBMMDLCRT). Values for this parameter are described in
the following:
*OBJLIB—(default) Special value meaning that the source library name is the
same as for the OBJLIB parameter.
*GENLIB—Special value meaning that the source library name is the same as for
the OBJLIB parameter.
*CURLIB—Special value meaning that the source library name is the same as for
the OBJLIB parameter.
CVTASSIM
This parameter specifies whether or not assimilated files are converted to the job
list. Values for this parameter are described in the following:
*NO—(default) Assimilated files are not converted.
*YES—Assimilated files are converted.
Notes
■ The specified library for the model object list must be a valid model library.
■ A value other than *MDLLIB for MDLLST may result in the library list being
changed. If the user is currently editing a model, the switching of the library
list will not occur and the command will fail. If changed during processing,
the library list is changed back after execution.
■ The FRMMDLLST must exist prior to running the command.
■ If the target job list does not already exist, it will be created and the LSTOPT
parameter will be ignored.
■ Only generatable objects will be placed onto the job list, all other model
object list entries will be ignored.
■ The CVTASSIM parameter provides the developer with some control over
whether assimilated physical files are placed in the resulting job list. Thus,
for example, where the physical file is part of some third party software, the
developer would wish to avoid attempting to generate and compile the
physical file, but would wish any logical files in the model object list to be
converted in the normal way.
Example
To convert all model objects with a component changed status (action required)
of *GEN (requiring generation and compilation) to job list OUTLIST from the
model library WRKMDL:
YCVTMDLLST FRMMDLLST( WRKMDL/*ALLOBJ ) + JOBLST( OUTLIST ) CRTOPT( *GENERATE ) +
LSTOPT( *REPLACE ) COMPCHG( *GEN )
Optional
*MDLLIB *GENLIB
Parameters
MDLLIB
Name of library containing a design model from which the user messages are
converted. Values for this parameter are described in the following:
*MDLLIB—(default) Use the first model library found in the library list.
*CURLIB—Use current library for invoking job.
GENLIB
Name of library containing a message file into which user messages are placed.
The default name of the message file is obtained from the YMSGVNM model
value. Values for this parameter are described in the following:
*GENLIB—(default) Use the source generation library named by the YGENLIB
model value in the model library.
*CURLIB—Use current library for invoking job.
Notes
■ This command creates OS/400 message descriptions from Advantage 2E
message function definitions. The name of the message file that the message
descriptions are added to is determined for each message function as
follows:
– If there is an override message file name specified for the message
function, then the first message file of that name in the invoking job's
library list is used.
– If no override is specified, then the default message file, (as specified by
the YMSGVNM model value in the generation library, as specified by
the GENLIB model value) is used.
■ The message files you use must already exist in the relevant libraries and the
user must have the necessary authority to update them.
■ The conversion process produces an audit report listing for each user
message, the message file used and the success or failure of the conversion.
Example
Optional
*USER
*ALL
YCVTMDLPNL MDLFILE
model file name
*SELECT
*ALL
MDLFUN
model function name
*FUNC
*ALL
APPCDE CVTTEXT *NONE
application area
*OPER
*MDDLIB/
*LIBL
*CURLIB YDSNPNL
FILE
*USRLIBL screen file
name
*ALLUSR
*library name
*FILE
MBR
member
name
*YES *YES
RPLNAV RPLABW
*NO *NO
*YES *YES
RPLNAR RPLDAT
*NO *NO
Parameters
MDLFILE
MDLFUN
Name of a function whose panel designs are converted. The value for this
parameter is as follows:
*ALL—Convert the panel designs of all functions for the specified files.
APPCDE
Name of an application area containing the files of the functions whose panel
designs are converted. The value for this parameter is as follows:
*ALL—(default) Convert the panel designs of functions attached to files from all
application areas.
CVTTEXT
Specifies whether narrative text for the file is included in the generated panel
designs, and if so, which type of text. Values for this parameter are described in
the following:
*FUNC—(default) Include functional text.
*NONE—Do not include narrative text.
*OPER—Include operational text.
FILE
Qualified name of file to contain panel designs. The value for this parameter is as
follows:
YDSNPNL—(default) File name.
MBR
Name of member in panel design file. The value for this parameter is as follows:
*FILE—(default) The member has the same name as the file.
RPLNAV
Specifies whether to keep or replace the command key navigation that was
defined for the Advantage 2E 400 Toolkit panel design. Values for this parameter
are described in the following:
*YES—(default) The navigation is replaced.
*NO—The navigation is not replaced.
RPLABW
Specifies whether to keep or replace the action bar definition that was defined in
the Advantage 2E 400 Toolkit panel design. Values for this parameter are
described in the following:
*YES—(default) The action bar definition is replaced.
*NO—The action bar definition is not replaced.
RPLNAR
Used to keep or clear any narrative that was entered for the Advantage 2E 400
Toolkit panel design. Values for this parameter are described in the following:
*YES—(default) The narrative is cleared.
*NO—The narrative is kept.
RPLDAT
Used to keep or clear any test data that was entered for the Advantage 2E 400
Toolkit panel design. Values for this parameter are described in the following:
*YES—(default) The test data is cleared.
*NO—The test data is kept.
Notes
■ A library containing the model files must be present in the library list of the
job that executes the YCVTMDLPNL command.
■ The converted panel designs are placed in the nominated panel design file.
The file must already exist in the specified library: new files may be created
using the Advantage 2E 400 Toolkit command Create Design File
(YCRTDSNF).
■ Each prototype panel design is given the name of the program source
member of the function from which it is derived. A suffix is used to number
the panels derived from a single Advantage 2E function.
■ The converted panel designs can be prototyped using the Advantage 2E 400
Toolkit command Display Panel (YDSPPNL). Refer to the Advantage 2E 400
Toolkit manuals for further details.
Example
Required
library name
YCVTMDLVNM MDLLIB
*CURLIB
Parameters
MDLLIB
Name of library containing the design model whose implementation names are
changed. The value for this parameter is as follows:
*CURLIB—Use current library for invoking job.
Notes
■ The YCVTMDLVNM command examines the following implementation
names in the data model, and if necessary, converts them:
– Access path source member names
– Access path format names
– Field or column names
– HLL program source member names
– Device file source member names
– Help text source member names
■ The nature of the conversion is controlled by the current value of the
YHLLVNM model value. This dictates the rules for deciding whether a
name needs converting.
– If the YHLLVNM model value is *CBL, then any instances of the
characters @, # and $ are replaced by the appropriate character specified
for the name type in the generation types table. If there is no replacement
character for the name type in the table, the letter J will be used.
– If the value of YHLLVNM is *RPG, then any instances of the underscore
character will be replaced by the quotation (“) character. Any other valid
characters are replaced by “J.”
For more information about converting a model from one HLL to another, refer
to Generating and Implementing Applications, “Preparing for Generation and
Compilation”.
Example
Required
*LIBL/
QTXTSRC
YCVTTMUIM TMSRCFILE *CURLIB/
source file name
library name/
*SAME/
*LIBL/ QPNLSRC
UIMSRCFILE
*CURLIB/ source file
name
library name
*ALL *NO
SRCMBR REPLACE
generic* name *YES
*YES *NO
EXTHELP TRUNCATE
*NO *YES
QTEMP/
TEMPLST
MBRLST *CURLIB/
list name
library name/
*NO
EDIT
*YES
Parameters
TMSRCFILE
The qualified name of a source file containing TM help text. Values for this
parameter are described in the following:
*LIBL—(default) Use the library list to locate the source file.
*CURLIB—Use current library to locate the source file.
UIMSRCFILE
The qualified name of a source file that the converted UIM help text will be
placed in. You must have *ALL rights to this file. Values for this parameter are
described in the following:
*SAME—(default) The library name is the same as that specified in TMSRCFILE.
*LIBL—The library list is used to locate the source file.
*CURLIB—The current library for the job is used to locate the source file.
SRCMBR
The generic name of the source members to convert. The name assigned to the
UIM member will be the same as that of the TM member. The value for this
parameter is as follows:
*ALL—Convert all source members.
REPLACE
EXTHELP
Specifies if an extended help panel should be generated for the member. This is
functionally equivalent to the existing index panel used by TM. It uses the UIM
:LINK tag to provide two-way hypertext links between each panel and the
extended help panel. Values for this parameter are described in the following:
TRUNCATE
Allows the user to control the action on conversion when a line to be converted is
too long. Values for this parameter are described in the following:
*NO—(default) Excess data is continued on the next line and not truncated.
*YES—Excess data is truncated during conversion.
MBRLST
Specifies a target member list to be used to contain an entry for each member
converted. Values for this parameter are described in the following:
TEMPLST—(default) Default member name.
QTEMP/—Default library name.
*CURLIB/—The library to contain the member list is the current library.
EDIT
Specifies whether the resulting list is to be edited at the end of the conversion
process. Values for this parameter are described in the following:
*NO—(default) The list is not to be edited.
*YES—The list is to be edited.
Notes
■ The converted source can be compiled into a panel group (*PNLGRP). It can
then be used with existing applications, without the need to regenerate those
applications as follows:
– The help display routine (YDDSHPR) will check for the existence of a
panel group with the same name as the help member. If it exists, it will
use that panel group to display UIM help panels.
■ In order to supply cursor sensitive help, help panels must be related to
screen areas.
– For full UIM, this is supplied by DDS keywords in the associated display
file.
Example
■ If CSG client functions are on the job list and the client objects do not exist in
the folder, entries will not be added to the job list for the client objects (the
server object will always be added to the job list).
Required
Optional
*MDLPRF
*MDLLIB/ *USER
MDLLST
model library *SELECT
list name
Parameters
OBJSGT
Unique number identifier of the model object to be deleted. The value for this
parameter is as follows:
Object surrogate—The surrogate number of the model object is required.
MDLLST
The qualified name of the model object list in which the entry to be deleted
exists. Values for this parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile extension record for the current user in the
specified model library.
*USER—Special value meaning that the user profile name of the current user is
used as the list name for the target of the command.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
list name—The name of the list.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used.
library name—The name of the model library.
Note
Both the model object list and the list entry must exist prior to running this
command.
Example
To delete the model object list entry for the object identified by surrogate number
1100547 in model object list DEVRA in the first model library to be found in the
current library list:
YDLTMDLLE OBJSGT( 1100547 ) + MDLLST(*MDLLIB/DEVRA )
Required
list name
*MDLLIB/ *MDLPRF
YDLTMDLLST MDLLST
model library/ *USER
*SELECT
Parameters
MDLLST
The qualified name of the model object list that is to be deleted. Values for this
parameter are described in the following:
list name—(default) The model object list name.
*MDLPRF—Special value meaning that the model object list name is retrieved
from the user profile extension record for the current user in the specified model
library.
*USER—Special value meaning that the user profile name of the current user is
used as the list name for the target of the command.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used as the model library for the list.
library name—The model library name for the list.
Notes
■ The MDLLST must exist prior to running the command.
■ A value other than *MDLLIB for MDLLST may result in the library list being
changed. If the user is currently editing a model, the switching of the library
list will not occur and the command will fail. If changed during processing,
the library list is changed back after execution.
Example
To delete model object list MYLIST from the model contained in the current
library list:
YDLTMDLLST MDLLST( *MDLLIB/MYLIST )
Required
*OBJSGT
*ARCHIVES
YDLTMDLVSN OBJNAM
owner name *FUN
object name
*MESSAGES *MSG
*OBJNAM
OBJSGT
object surrogate
Optional
*DELETE
*YES
OPTION *HIDE DLTOBJSRC
*NO
*PREPASS
*MDLPRF
*GENLIB
*USER
GENLIB *CURLIB OUTLST
*SELECT
library name
list name
*GENLIB
*REPLACE
OUTLSTOPT RETAIN *CURLIB
*ADD
library name
Parameters
OBJNAM
The name of the object that is deleted. Values for this parameter are described in
the following:
*OBJSGT—(default) Single value indicating that the object surrogate number
parameter is used to identify the model object.
*ARCHIVES—This generic value instructs the processing program to examine
all archive versions in the model. In this mode, all entries are written to the
specified output list. The RETAIN parameter specifies how many archives are
preserved in a particular group.
object owner name—The character name of the object which owns the object.
Thus, for a function, the owning file would be entered.
*MESSAGES—The internal file *Messages is the owner of the object (note that
this value is only allowed for objects of type *MSG).
object name—The character name of the object.
object type—The object type of the object.
*FUN—Object is of type function.
*MSG—Object is of type message. Note that for objects of type *MSG, the owner
is the *Messages file.
OBJSGT
Unique number identifier of the model object that is copied. Values for this
parameter are described in the following:
OBJNAM—(default) Use the object name parameter details to identify this
model object.
object surrogate—The surrogate number of the model object.
OPTION
This parameter provides the user with some flexibility when deleting model
versions. For a model version, the user can either physically delete it or hide it by
making the version non-current. When using the generic delete for archives, the
user can perform a prepass, which will build a list of affected versions without
actually deleting them.
Only qualified versions will be processed, meaning that the version must not be
used by any other model object. Values for this parameter are described in the
following:
*DELETE—(default) Special value meaning that versions that qualify for
processing are physically deleted.
*HIDE—Special value meaning that versions that qualify for processing are not
deleted but made non-current. They will not, by default, be shown on model
panels. If a version is already non-current it remains unaffected by this process.
*PREPASS—For the *ARCHIVES processing only. Special value meaning that
the archives that qualify for processing should be written to the out list but not
physically deleted.
DLTOBJSRC
This parameter allows the user to specify that the object and source
corresponding with the model design object are deleted at the same time the
design object is deleted from the model. Values for this parameter are described
in the following:
*YES—(default) The object and source are deleted.
*NO—The object and source are not deleted.
GENLIB
The name of the generation library that contains the source and object
corresponding with the model object that is deleted. Values for this parameter
are described in the following:
*GENLIB—(default) Special value meaning that the generation library for the
model is used.
*CURLIB—Special value meaning that the generation library is the current
library for the job.
library name—The generation library name.
OUTLST
The name of the model object list that is to receive an entry for each archive
version which satisfies the RETAIN parameter (i.e., qualifies for the delete
operation). This parameter is only prompted if *ARCHIVES is specified for the
OBJNAM parameter. Values for this parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile details for the current user.
*USER—Special value meaning that the user profile name of the current user is
used as the list name.
*SELECT—Special value meaning that an interactive select program is invoked.
The output list will be selected.
list name—The name of the target list.
OUTLSTOPT
This parameter specifies the action to be taken if the output list already exists in
the model. This parameter is only prompted if *ARCHIVES is specified for the
OBJNAM parameter. Values for this parameter are described in the following:
*REPLACE—(default) The existing model object list is to be replaced with the
output from this command.
*ADD—The existing model object list is augmented with the output from this
command.
RETAIN
This parameter specifies the number of archive versions (version type ARC) that
are retained. This parameter is only prompted when the OBJNAM parameter is
*ARCHIVES. The archive versions are examined in reverse chronological order,
the excess number above this parameter being deleted. Values for this parameter
are described in the following:
*ALL—(default) All archive versions are retained.
*NONE—No archive versions are retained.
numeric value—The developer may specify a discreet number of versions that
are retained.
Notes
■ It is intended that this command be used as part of a change control system.
The primary purpose is for the removal of archives from the model as they
become redundant with the creation of later versions.
■ No version can be deleted if it is used by any other model object.
■ When *ARCHIVES are being processed, all versions that are processed are
written to the specified output list. If it is not possible to make a current
version non-current or to delete a non-current version, the entry is flagged
*ERROR.
Example
To delete the model version Edit Customer 3 from the model, accepting the
default removal of object and source from the generation library for the model,
enter the following:
YDLTMDLVSN OBJNAM( 'Customer' 'Edit + Customer 3' '*FUN' )
Optional
*USER
YDOCMDLACP MDLFILE
*ALL
*NONE
*ALL
APPCDE PRTTEXT *FUNC
application data
*OPER
*ALL
*NO
PRTACPDTL PRTACPTYP
*YES One of the following:
*PHY *UPD *RTV
*RSQ *SPN *QRY
*DFT
BGNNEWPAG
*FILE
Parameters
MDLFILE
Types of files whose access paths are documented. Values for this parameter are
described in the following:
*USER—(default) List the access paths of all user-defined files in the model.
*ALL—List the access paths of all files in the model, including system files.
APPCDE
Name of an application area to which the files whose access paths are listed
belong. The value for this parameter is as follows:
*ALL —(default) List the access paths of files from all application areas.
PRTTEXT
Specifies whether narrative text for the access path is included in the generated
documentation, and if so, which type of text. Values for this parameter are
described in the following:
*NONE—(default) Do not include narrative text.
*FUNC—Include functional text.
*OPER—Include operational text.
PRTACPDTL
Specifies whether the details of the access path are included in the generated
documentation. Values for this parameter are described in the following:
*NO—(default) Do not include full details.
*YES—Include full details.
PRTACPTYP
Specifies the types of access path that are included in the generated
documentation. Values for this parameter are described in the following:
*ALL—(default) Include all access path types.
*PHY—Include only physical access paths.
*UPD—Include only update access paths.
*RTV—Include only retrieval access paths.
*RSQ—Include only resequence access paths.
BGNNEWPAG
Notes
A library containing the model files must be present in the library list of the job
that executes the commands.
Example
Optional
*ALL *NONE
*NO *NO
PRTFILES BGNNEWPAG
*YES *YES
Parameters
APPCDE
Name of an application area that is documented. Values for this parameter are
described in the following:
*ALL—(default) List all application areas.
*SYS—List the system application area (this contains all files in the model).
PRTTEXT
Specifies whether narrative text for the file is included in the generated
documentation, and if so, which type of text. Values for this parameter are
described in the following:
*NONE—(default) Do not include narrative text.
*FUNC—Include functional text.
*OPER—Include operational text.
PRTFILES
Specifies whether the files belonging to the application area(s) specified in the
APPCDE parameter are included in the generated documentation. Values for
this parameter are described in the following:
*YES—(default) Include files.
*NO—Do not include files.
BGNNEWPAG
Notes
A library containing the model files must be present in the library list of the job
that executes the YDOCMDLAPP command.
Example
To print all details about the model application areas in a model library,
including functional text and files within each area:
YDOCMDLAPP PRTTEXT(*FUNC) PRTFILE(*YES)
Optional
*USER
*NONE
*ALL
APPCDE PRTTEXT *FUNC
application area
*OPER
*NO
*NO *NO
PRTREL *YES PRTACCPTH PRTFUN
*YES *YES
*FULL
Parameters
MDLFILE
Specifies name of files you want to include in the listing. Values for this
parameter are described in the following:
*USER—(default) List all user-defined files in the model.
*ALL—List all files in the model, including system files.
APPCDE
Name of an application area to which the files that are listed belong. Values for
this parameter are described in the following:
*ALL—(default) List files from all application areas.
PRTTEXT
Specifies whether narrative text for the file is included in the generated
documentation, and if so, which type of text. Values for this parameter are
described in the following:
*NONE—(default) Do not include narrative text.
*FUNC—Include functional text.
*OPER—Include operational text.
PRTREL
Specifies whether the relations that reference the file are included in the
generated documentation. Values for this parameter are described in the
following:
*NO—(default) Do not include relations.
*YES—Include relations.
*FULL—Print relations and associated field entries together with details of the
field entry.
PRTACCPTH
Specifies whether the names of the access paths referenced by each file are
included in the generated documentation. Values for this parameter are
described in the following:
*NO—(default) Do not include access paths.
*YES—Include access paths.
PRTFUN
Specifies whether the names of the functions that reference the file are included
in the generated documentation. Values for this parameter are described in the
following:
*NO—(default) Do not include functions.
*YES—Include functions.
Notes
A library containing the model files must be present in the library list of the job
that executes the YDOCMDLF command.
Example
Optional
*NONE
*USER
YDOCMDLFLD MDLFLD PRTTEXT *FUNC
*ALL
*OPER
*NO *NO
PRTFLDDTL PRTCND
*YES *YES
Parameters
MDLFLD
Specifies whether you want to omit system fields from the listing. Values for this
parameter are described in the following:
*USER—(default) List all user-defined fields in the model.
*ALL—List all fields in the model, including system fields.
PRTTEXT
Specifies whether narrative text for the fields should be included in the
generated documentation, and if so, which type of text. Values for this parameter
are described in the following:
*NONE—(default) Do not include narrative text.
*FUNC—Include functional text.
*OPER—Include operational text.
PRTFLDDTL
Specifies whether you want to include full details for the fields in the generated
documentation. Values for this parameter are described in the following:
*NO—(default) Do not include field details.
*YES—Include field details.
PRTCND
Specifies whether the names of any field conditions referenced by the fields are
included in the generated documentation. Values for this parameter are
described in the following:
*NO—(default) Do not include conditions.
*YES—Include conditions.
Notes
A library containing the model files must be present in the library list of the job
that executes the YDOCMDLFLD command.
Example
Optional
*USER
*ALL
YDOCMDLFUN MDLFILE
*SELECT (1)
*ALL
MDLFUN
model function name
*ALL
APPCDE
application area
*ALL
*NO
FUNTYPE function type (2) PRTFUNOPT
*YES
*NONE *NONE
*NO
PRETTEXT *FUNC PRTPARM *ALL PRTDEVSTR
*YES
*OPER *ENTRY
*NONE
*NO
PRTDEVDSN PRTDEVDTL *BASIC
*YES
*FULL
*NONE
*FULL
*NO *SUMMARY
PRTFUNREL PRTACTDIAG
*YES *USER
*USERMOD
*FUN
*NONE
PRTABO *BASIC
*FUN
*NONE
1 *ALL
FUNLVL PRTCHGDAT
integer *EQ
*LT date
*GT
*DFT
BGNNEWPAG *FILE
*FUNCTION
Parameters
MDLFILE
Name of a file, or generic name of some files, to which the functions that are
listed belong. Values for this parameter are described in the following:
MDLFUN
Name of a function that is listed, or generic name of functions that are listed. The
value for this parameter is as follows:
*ALL—(default) List all functions for the specified files.
APPCDE
Name of an application area to which the files referenced by the listed functions
belong. The value for this parameter is as follows:
*ALL—(default) List functions that reference files from all application areas.
FUNTYPE
Types of functions you want listed. Must be one of the standard function types
or a special value. Values for this parameter are described in the following:
*ALL—(default) List all types of functions.
*INT—List only internal functions.
*EXT—List only external functions.
*DBF—List only database functions.
*DEV—List only device functions.
*DFN—List only define screen/report format functions.
*FLD—List only field functions.
*MSG—List only message functions.
*USR—List only user functions.
*SCR—List only display device functions.
*RPT—List only report device functions.
*DSP—List only display functions.
*UPD—List only edit functions.
Other values—See the notes section for function types and classes.
PRTFUNOPT
PRTTEXT
Specifies whether any narrative text for the function is included in the generated
documentation, and if so, which type of text. Values for this parameter are
described in the following:
*NONE—(default) Do not include narrative text.
*FUNC—Include functional text.
*OPER—Include operational text.
PRTPARM
Specifies whether the parameters of the listed functions are included in the
listing. Values for this parameter are described in the following:
*NONE—(default) Do not print any function parameters.
*ENTRY—Include the entry parameters of each function in the listing.
*ALL—Include the *ENTRY parameters of each function in the listing. Include
the parameters used to call other functions in each function's action diagram.
PRTDEVSTR
Specifies whether the device structures of the listed functions are included in the
listing. Only report design functions (types PRTOBJ and PRTFIL) have device
structures. Values for this parameter are described in the following:
*NO—(default) Do not print any function device structures.
*YES—Include the function device structures in the listing.
PRTDEVDSN
Specifies whether the device (panel and report) designs of the listed functions
are included in the listing. Values for this parameter are described in the
following:
*NO—(default) Do not print any function device designs.
PRTDEVDTL
Specifies whether the device details (that is, field details listed by format) of the
listed functions are included in the listing. Values for this parameter are
described in the following:
*NONE—(default) Do not print any function device details.
*BASIC—Print basic details of all fields on each format of the device design.
*FULL—Print details of display attributes of fields present on the device design
(that is, not hidden or dropped) as well as basic details of all fields on each
format of the device design.
PRTFUNREL
Specifies whether the device design relations of the listed functions are included
in the listing. Values for this parameter are described in the following:
*NO—(default) Do not print any function relations.
*YES—Include the function relations in the listing.
PRTACTDIAG
Specifies whether the action diagrams of the listed functions are included in the
listing, and if so, to what level of detail the diagrams are reported. Values for this
parameter are described in the following:
*NONE—(default) Do not print any action diagrams.
*FULL—Print complete action diagram.
*SUMMARY—Print only the summary or top level of the action diagram.
*USER—Print only the user modifiable points in each action diagram.
*USERMOD—Print only the user modifications to action diagrams.
*FUN—Print only the calls to other functions.
PRTABO
Specifies whether the action bar details of the listed functions are included in the
listing. Ignored if PRTDEVDSN (*NO) is specified. Values for this parameter are
described in the following:
*NONE—(default) Do not print any function action bar details.
FUNLVL
PRTCHGDAT
Specifies the change dates printed for the action diagrams of the listed functions.
Values for this parameter are described in the following:
*NONE—(default) Do not print any change dates.
*ALL—Print all change dates.
Otherwise, PRTCHGDAT is a list parameter made up of two elements:
■ Date operator:
– *EQ—(default) Equal to
– *LT—Less than
– *GT—Greater than
■ Date (entered in system date format)
BGNNEWPAG
Notes
■ A library containing the model files must be present in the library list of the
job that executes the YDOCMDLFUN command.
Example
To print all details about the functions attached to all model files in a model
library:
YDOCMDLFUN PRTTEXT(*FUNC) + PRTFUNPAR(*YES) PRTDEVDSN(*YES) + PRTACTDIAG(*YES)
Required
*MDLPRF
*MDLLIB/ *USER
YDOCMDLLST MDLFILE
model library *SELECT
list name
*NAME
*CHANGE
*CHECKOUT
VIEW
*COMPCHG
*CPYSTS
*GEN
*BASIC
DETAIL
*FULL
Parameters
MDLLST
The qualified name of the model object list that is documented. Values for this
parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile extension record for the current user in the
specified model library.
*USER—Special value meaning that the user profile name of the current user is
used as the list name for the target of the command.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
list name—The model object list name must be entered.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used as the model library for the list.
library name—The model library name for the list.
VIEW
This parameter enables different data to be displayed for each list entry. It is
prompted only if the DETAIL parameter is set to *BASIC. Values for this
parameter are described in the following:
*NAME—(default) Details are printed of the object name, attribute, type, and
owner.
*CHANGE—In addition to name, the change date and time details are printed.
*CHECKOUT—In addition to name, the check out details are printed.
*COMPCHG—In addition to name, the component change details are printed.
*CPYSTS—In addition to name, the details relating to the copying of the object
by the Copy Model Objects (YCPYMDLOBJ) command are printed.
*GEN—In addition to name, the generation details are printed.
DETAIL
The level of detail which is displayed. Values for this parameter are described in
the following:
*BASIC—(default) Minimal level of detail.
*FULL—Maximum level of detail.
Notes
■ The MDLLST must exist before running the command.
■ A value other than *MDLLIB for MDLLST may result in the library list being
changed. If the user is currently editing a model, the switching of the library
list will not occur and the command will fail. If changed during processing,
the library list is changed back after execution.
Example
To document the model object list with the name retrieved from the user profile
extension record of the current user in the model library contained in the current
library list:
YDOCMDLLST MDLLST( *MDLLIB/*MDLPRF )
Optional
YDOCMDLMSG
*ALL *ALL
6 maximum
Parameters
MSGPFX
Prefix of messages which are listed. Values for this parameter are described in
the following:
*ALL —(default) List all message functions in the model, including shipped
messages.
*USER —List all user-defined message functions in the model.
MSGTYPE
Type of message function to be listed. Values for this parameter are described in
the following:
*ALL —(default) List all messages for the specified files.
Message type —One of the six message function types:
■ INF
■ ERR
■ CMP
■ STS
■ EXC
■ RTV
Notes
A library containing the model files must be present in the library list of the job
that executes the YDOCMDLMSG command.
Example
Optional
*USER *ALL
YDOCMDLREL MDLREL APPCPE
*ALL application code
*ALL
*DEN
*NONE
*ALL
PRTCHGDAT
*EQ
*LT date
*GT
Parameters
MDLREL
Listed relations. Values for this parameter are described in the following:
*USER—(default) List only the user-defined relations in the model.
*ALL—List all relations in the model including the relations that define
Advantage 2E internal objects.
APPCDE
Name of an application area that the files referenced by the listed relations
belong to. The value for this parameter is as follows:
*ALL—(default) Include relations that use files from all application areas.
PRTTEXT
Specifies whether narrative text for the relations is included in the generated
documentation, and if so, which type of text. Values for this parameter are
described in the following:
*NONE—(default) Do not include narrative text.
*FUNC—Include functional text.
*OPER—Include operational text.
RELPRTLVL
PRTENT
Specifies whether the entries from file-to-file relations are included in the
generated documentation. Values for this parameter are described in the
following:
*NONE—(default) Do not list entries.
*RDR—List only redirected entries.
*ALL—All entries from file-to-file relations (Owned by, Refers to) are listed after
the relations that give rise to them.
PRTCHGDAT
Specifies whether the change dates for relations are printed. Values for this
parameter are described in the following:
*NONE—(default) Do not print any change dates.
*ALL—Print all change dates.
Otherwise, PRTCHGDAT is a list parameter made up of two elements:
■ Date operator:
– *EQ—(default) Equal to.
– *LT—Less than.
– *GT—Greater than.
■ Date (entered in system date format)
Notes
A library containing the model files must be present in the library list of the job
that executes the YDOCMDLREL command.
Example
To print details about all model files in a model library, including the functional
narrative text:
YDOCMDLREL PRTTEXT(*FUNC) RELPRTLVL(*ALL)
Optional
*MDLLIB
YDOCURF MDDLIB
model library
name
*ANY
*ACP
*ARR
*CND
OBJTYP
*FIL
*FLD
*FUN
*MSG
*NONE *REPLACE
OUTLST OUTLSTOPT
list name *ADD
Parameters
MDLLIB
The name of the model library whose objects are to be analyzed. Values for this
parameter are described in the following:
*MDDLIB—(default) Special value meaning that the first model library found in
the user’s current library list is used as the model library.
library name—The name of a specific model library.
OBJTYP
A list of up to six special values that may be used to select which object types
should be analyzed by the command. Values for this parameter are described in
the following:
*ANY—(default) Special value meaning that any object type should be included
in the analysis.
*ACP—Include access paths in the analysis.
*ARR—Include arrays in the analysis.
*CND—Include conditions in the analysis.
*FIL—Include files in the analysis.
*FLD—Include fields in the analysis.
*FUN—Include functions in the analysis.
*MSG—Include messages in the analysis.
OUTLST
The name of the model object list that receives output from the command. Values
for this parameter are described in the following:
*NONE—(default) Special value meaning that no outlist processing is to be
performed.
list name—The name of the model object list to be used as output.
OUTLSTOPT
Specifies the action to take if the output list already exists. Values for this
parameter are described in the following:
*REPLACE—(default) The existing model object list should be replaced with the
output from this command.
*ADD—The existing model object list should be augmented with the output
from this command.
Example
Optional
*MDLPRF
*MDLLIB/ *USER
YDSPJOBLST JOBLST
model library *SELECT
*MDLPRF
*OBJLIB *MDLPRF
*CURLIB *CURLIB
Parameters
JOBLST
The qualified name of the Advantage 2E job list that is displayed. Values for this
parameter are described in the following:
*MDLPRF—(default) Special value meaning that the list name is retrieved from
the model profile of the current user.
*USER—Special value meaning that the user profile name of the current user is
used as the job list name.
*SELECT—Special value meaning that the list is selected.
list name—The name of the list that is used can be entered.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used.
library name—The name of the library.
SRCLIB
This parameter specifies the library from which source associated with job list
entry is edited. Values for this parameter are described in the following:
*MDLPRF—(default) Use the source library defined in the model profile
associated with the current user.
*OBJLIB—The source library to use is the same one as that specified for the
object library in the model profile associated with the current user.
*GENLIB—Use the name of the generation library from the model value
(YGENLIB) as a source library.
*CURLIB—Use the current library as a source library.
library name—The library name for source.
GENLIB
This parameter specifies the library in which to place compiled objects. Values
for this parameter are described in the following:
*MDLPRF—(default) The value is retrieved from the model profile details
associated with the current user.
*GENLIB—Retrieve the name of the generation library from the model value
(YGENLIB).
*CURLIB—Use the current library for invoking job.
Notes
■ The library specified for the job list must be a valid model library.
■ Note that the YGENSRC job entries are displayed in chronological order at
the top of the subfile, above the generate/compile requests. This allows the
user to select a particular YGENSRC. If one is selected, only the requests for
that YGENSRC are displayed.
■ The status fields shown in the subfile control relate to the job list entries. If a
particular YGENSRC request is selected, then the statistics relate just to that
YGENSRC.
■ Type, Act, Status and YGENSRC can be used to select records in the list for
display.
Example
Optional
list name
*MDLPRF
*MDLLIB/ *ALLOBJ
YDSPMDLLST MDLLST
model library *USER
*SELECT
*DFTCPY
*YES
LODMDL
*NO
Parameters
MDLLST
The qualified name of the model object list that is displayed. Values for this
parameter are described in the following:
list name—(default) The model object list name must be entered.
*MDLPRF—Special value meaning that the model object list name is retrieved
from the user profile extension record for the current user in the specified model
library. The change list value is retrieved.
*ALLOBJ—Special value meaning that a model object list is not used, but that all
model objects are included in the command.
*USER—Special value meaning that the user profile name of the current user is
used as the list name for the target of the command.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
*DFTCPY—Special value meaning that the model object list name is defaulted to
YCPYLSTRFP.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used as the model library for the list.
library name—Model library name for the list.
LODMDL
Indicates whether the model environment is loaded before displaying the panel.
Values for this parameter are described in the following:
*YES—(default) Special value meaning that the model environment is to be
loaded before displaying the panel.
*NO—The model environment is to be loaded only if required to process a
particular subfile option. Note that in this case:
■ A lock is not placed on the model before the panel is displayed.
■ The model will be loaded for each subfile option that requires it and the
model will be unloaded when returning to the display. In other words, you
incur additional overhead each time you use a subfile option that requires
the model to be loaded.
Notes
■ The MDLLST must exist before you run the command.
■ A value other than *MDLLIB for MDLLST may result in the library list being
changed. If the user is currently editing a model, the switching of the library
list will not occur and the command will fail. If changed during processing,
the library list is changed back after execution.
Example
This section contains an example of the command as it might look using real
data. To display model object list LST0001 from the model contained in the
current library list:
YDSPMDLLST MDLLST(*MDLLIB/LST0001)
Details relate to the creation and subsequent change of the object. For more
information, please refer to the help text for the panel.
Required
*OBJSGT
*SELECT
*FIL
*FLD
*FUN
*MSG
*OBJNAM *MDLLIB
OBJSGT MDLLIB
object surrogate model name
Parameters
OBJNAM
The name of the object whose details are displayed. This parameter consists of
three elements that together identify a model object. Values for this parameter
are described in the following:
*OBJSGT—(default) Single value indicating that the object surrogate is to be
used to identify the model object that is displayed.
*SELECT—Single value indicating that the displayed object is selected using an
interactive display function.
object owner name—The character name of the object that owns the object to be
displayed. Thus, for a function, the owning file would be entered.
OBJSGT
Unique number identifier of the model object that is displayed. Values for this
parameter are described in the following:
*OBJNAM—(default) Use object name to identify the displayed model object.
object surrogate—The surrogate number of the model object.
MDLLIB
The data model in which the object whose description is to be displayed resides.
Values for this parameter are described in the following:
*MDLLIB—(default) The model is the first one to be found in the current library
list.
model name—The name of a specific data model.
Notes
■ A value other than *MDLLIB for MDLLIB may result in the library list being
changed. If the user is currently editing a model, the switching of the library
list will not occur and the command will fail. If changed during processing,
the library list is changed back after execution.
Type Name
ACP File name/Access path name/'ACP'
APP ---/Application area code/'APP'
ARR *Arrays/Array name/'ARR'
CND Field name/Condition name/'CND'
FIL ---/File name/'FIL'
FLD ---/Field name/'FLD'
FUN File name/Function name/'FUN'
MSG *Messages/Message name/'MSG'
Example
To display the Edit Order Details function, which is owned by the order details
file, enter the following:
YDSPMDLOD OBJNAM( 'Order Details' 'Edit + Order Details' *FUN)
Required
*USER
*MDLLIB/
YDSPMDLREF MDLLST *MDLPRF
model library
list name
OUTPUT *MDLLST
*MDLLST
*USER
OUTMDLLST
*MDLPRF
list name
*REPLACE *MDLLST
OUTLSTOPT *MDLLST
*ADD *MDLLST
*MDLLIB/
*MDLPRF
*GENLIB/
*USER
*SRCLIB/
JOBLST *WORKSTN
*LIBL/
*SELECT
*CURLIB/
job list name
job list name/
*MDLPRF
*USER
SSNLST
*SELECT
list name
*NOMAX *ANY
*EXTFUN *DBFFUN
*ERR
*EXTFUN
*INTFUN
*ACP
*ARR
*APP
*CND
*FIL
*FLD
*FUN
*MSG
*YES
EXCSYS
*NO
*YES
CUROBJ
*NO
*FIRST
REASON *ALL
*REASON
*ANY
FLAGVAL *ERROR
*SELECTED
Parameters
MDLLST
The qualified name of the model object list containing the objects whose
references are displayed. Values for this parameter are described in the
following:
*MDLPRF—Special value meaning that the model object list name is retrieved
from the user defaults for the current user in the specified model library.
list name—The model object list name.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used as the model library.
library name—The model library name for the list.
OUTPUT
This parameter determines how the references are presented. Values for this
parameter are described in the following:
*—(default) References are displayed.
*MDLLST—References are directed to a model object list. This option enables
users to perform further list operations on the list entries.
*PRINT—References are printed.
Note: If referenced objects are subject to filtering, then the primary object details
are only printed if at least one referenced object satisfies the filtering criteria
specified. This reduces the volume of output.
OUTMDLLST
The name of the model object list that receives output from the command. Values
for this parameter are described in the following:
*MDLLST—(default) Special value meaning that the output should be placed in
the input list.
*USER—Special value meaning that the model object list name is the same as the
name of the current user.
*MDLPRF—Special value meaning that the model object list name is retrieved
from the user defaults for the current user in the specified model library.
list name—The target model object list name.
OUTLSTOPT
This parameter specifies the action to be taken if the output list already exists.
Values for this parameter are described in the following:
*REPLACE—(default) The existing model object list should be replaced with the
output from this command.
*ADD—The existing model object list should be augmented with the output
from this command.
EDIT
This parameter specifies whether the resulting output list is edited as part of
processing. Values for this parameter are described in the following:
*NO—(default) Editing of the list is not performed.
*YES—Editing of the list is performed.
JOBLST
Qualified name of job list that contains the names of source members to be
generated and/or compiled. If the nominated job list does not already exist, it
will be created. Values for this parameter are described in the following:
*MDLPRF—(default) Retrieve the job list name from the model profile details of
the current user.
*USER—The job list name is the same name as the current user.
*WORKSTN—Use device name of current work station as list name.
*SELECT—Display a list of existing job lists, one of which may be selected. The
name of the job list may be entered
*MDLLIB/—The job list library is the first model library found in the library list.
*GENLIB/—Use the generation library specified in the first model found in the
library list.
*SRCLIB/—Use the source library specified on the model profile of the current
user.
*LIBL/—The job list library is the first model found in the library list.
*CURLIB/—The model library is found in the current library for the current job.
The job list library can be entered.
SSNLST
This parameter specifies the session list to use while editing the model. Values
for this parameter are described in the following:
*MDLPRF—(default) The session list is to be retrieved from the model profile
details for the current user.
*USER—The session list has the same name as the current user.
*SELECT—An interactive display is used to select a model object list to be used
as the session list.
For more information on the purpose of SSNLST, refer to the Change Model
Profile command (YCHGMDLPRF).
SCOPE
This parameter allows the user to control the extent to which references are
traced. Values for this parameter are described in the following:
*NOMAX—(default) No maximum level of expansion.
*NEXT—Expansion proceeds to the next level only.
*EXTFUN—This option is intended for use with objects of type FUN. Expansion
proceeds up to and including the first external function on each chain of
references. This enables the user to determine the functions referenced by a
given program.
FILTER
This parameter allows the user to specify filtering on the objects displayed.
Values for this parameter are described in the following:
*ANY—(default) No filtering of objects is performed.
*GENOBJ—Only generatable objects are displayed.
*DBFFUN—Only database functions are displayed.
*ERR—Only references to deleted objects are displayed.
*EXTFUN—Expand references down to and including the first generatable
function.
*INTFUN—Only internal functions are displayed.
Object type—A specific object type may be entered for filtering purposes. They
are: *ACP, *ARR, *APP, *CND, *FIL, *FLD, *FUN, and *MSG
EXCSYS
This parameter allows the exclusion of system objects from the analysis. System
objects are the internal objects used by Advantage 2E such as the ‘*Standard
Header/Footer’ internal file. The value for this parameter is as follows:
*YES—(default) System objects are excluded.
*NO—Include system objects.
CUROBJ
This parameter allows the exclusion of non-current versions from the analysis.
Currency only applies to objects that are supported for versioning. Values for
this parameter are described in the following:
*YES—(default) Only current objects are included.
*NO—Include system objects.
For more information on versions, see the “Working with Advantage 2E Model
Objects” chapter in the Generating and Implementing Applications guide.
REASON
This parameter allows the reason for the dependency between objects to be part
of the filtering process. Values for this parameter are described in the following:
*FIRST—(default) The processing program will note the first reason when an
object is encountered.
*ALL—All subsequent encounters with a given object are included.
REASON—A specific reason may be entered. The processing program will
search for dependencies of the specified reason.
FLAGVAL
This parameter allows the input list entries to be filtered according to the value
of the object selected indicator for each entry. Values for this parameter are
described in the following:
*ANY—No selection processing is performed.
*ERROR—Only process entries flagged in error are considered.
*SELECTED—Only process selected entries are considered.
Notes
■ The model library specified must be a valid model library.
■ A value other than *MDLLIB for MDLLST may result in the library list being
changed. If the user is currently editing a model, the switching of the library
list will not occur and the command will fail. If changed during processing,
the library list is not changed back after execution.
■ If the output model list does not exist prior to running the command, it is
created.
■ If the list is printed, the display model references panel is used. This panel is
described below.
■ If the resulting list is printed, the Document Model Object list command
(YDOCMDLLST) is called.
■ The edit parameters are ignored if the running job is a batch job.
■ The filtering parameter is applied to the expanded details. Thus, if the
output is to display, the filtering may be adjusted without having to rebuild
the expansion. If output is to a model list, the filtering is performed when the
entries are written to the list.
■ An indented output format is used for the *PRINT option whenever this is
appropriate. If the default of *FIRST is used for the REASON filter, the
objects are sorted in a keyed sequence. It would be inappropriate to indent
this sequence because the relationships between the objects are purely
arbitrary. However, any other value for REASON will cause the processing
program to examine objects strictly in the order of expansion; the indented
format here clearly shows the hierarchy of dependencies to assist
developers.
Reference Table
The Ref level value refers to the level of reference by a given object to the original
object that is displayed on the subfile control. This value may be changed by the
user and will control the data shown in the subfile. By manipulating the range of
levels available, all possible reference levels can be viewed individually or in
combination.
The Ref type column in the subfile refers to the reason for the reference. The
following table shows the possible reasons for references between model objects.
Actual references to a given model object will depend upon the model object
type.
The Note column indicates whether or not there is a reciprocal entry in the usage
table by the referenced object. The numbers in the column refer to the following
explanations as to why there will not be a corresponding usage entry:
1 The referenced object is not a primary object.
2 Reference is for object redefinition only, the relationship is already noted
using *FILENT.
3 The usage of FIL to FUN is not a useful piece of information. The usage
might, however, be discernible via ACP. In other words, usage on a FIL will
display any ACP objects attached to the FIL. These in turn will display any
using FUN objects.
4 The relationship between FLD and FUN represents the interdependency of
these two objects on each other. The FLD object actually uses the FUN.
However, the FUN is not a primary object. It is not treated as a function in its
own right and is not accessible except through the FLD object.
5 The reference of FUN to FLD for screen text is not treated as a bona fide
usage since the fields involved are internal product objects only.
Example
To edit the list of generatable object references to objects existing on model object
list TMPLST:
YDSPMDLREF MDLLST( *MDLLIB/TMPLST ) + OUTPUT( *MDLLST ) EDIT( *YES ) +
FILTER( *GENOBJ )
Optional
*USER
*MDLLIB/
YDSPMDLUSG MDLLST *MDLPRF
model library/
list name
OUTPUT *MDLLST
*MDLLST
*USER
OUTMDLLST
*MDLPRF
list name
*REPLACE *YES
OUTLSTOPT EDIT
*ADD *NO
*MDLLIB/
*MDLPRF
*GENLIB/
*USER
*SRCLIB/
JOBLST *WORKSTN
*LIBL/
*SELECT
*CURLIB/
job list name
job list name/
*MDLPRF
*USER
SSNLST
*SELECT
list name
*NOMAX *ANY
*GENFUN *ERR
*GENOBJ *EXTFUN
*DBFFUN *GENFUN
*EXTFUN *GENOBJ
*INTFUN *INTFUN
*ACP *ACP
*ARR *ARR
*APP *APP
*CND *CND
*FIL *FIL
*FLD *FLD
*FUN *FUN
*MSG *MSG
*YES
EXCSYS
*NO
*YES
CUROBJ
*NO
*FIRST
REASON *ALL
REASON
*ANY
FLAGVAL *ERROR
*SELECTED
Parameters
MDLLST
The qualified name of the model object list containing the objects whose usages
are displayed. Values for this parameter are described in the following:
*USER—(default) Special value meaning that the model object list name is the
same as the name of the current user.
*MDLPRF—Special value meaning that the model object list name is retrieved
from the user defaults for the current user in the specified model library.
list name—The model object list name.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used as the model library.
library name—The model library name for the list.
OUTPUT
This parameter determines how the usages are presented. Values for this
parameter are described in the following:
*—(default) References are displayed.
*MDLLST—Usages are directed to a model object list. This option enables users
to perform further list operations on the list entries.
*PRINT—Usages are printed.
OUTMDLLST
The name of the model object list that receives output from the command. Values
for this parameter are described in the following:
*MDLLST—(default) Special value meaning that the output should be placed in
the input list.
*USER—Special value meaning that the model object list name is the same as the
name of the current user.
*MDLPRF—Special value meaning that the model object list name is retrieved
from the user defaults for the current user in the specified model library.
list name—The target model object list name.
OUTLSTOPT
This parameter specifies the action taken if the output list already exists. Values
for this parameter are described in the following:
*REPLACE—(default) The existing model object list should be replaced with the
output from this command.
*ADD—The existing model object list should be augmented with the output
from this command.
EDIT
This parameter specifies whether the resulting output list is edited as part of
processing. Values for this parameter are described in the following:
*NO—(default) Editing of the list is not performed.
JOBLST
Qualified name of job list that contains the names of source members to be
generated and/or compiled. If the nominated job list does not already exist, it
will be created. Values for this parameter are described in the following:
*MDLPRF—(default) Retrieve the job list name from the model profile details of
the current user.
*USER—The job list name is the same name as the current user.
*WORKSTN—Use device name of current work station as list name.
SELECT—Display a list of existing job lists, one of which may be selected. The
name of the job list may be entered.
*MDLLIB/—The job list library is the first model library found in the library list.
*GENLIB/—Use the generation library specified in the first model found in the
library list.
*SRCLIB/—Use the source library specified on the model profile of the current
user.
*LIBL/—The job list library is the first model found in the library list.
*CURLIB/—The model library is found in the current library for the current job.
The job list library can be entered.
SSNLST
This parameter specifies the session list to use while editing the model. Values
for this parameter are described in the following:
*MDLPRF—(default) The session list is retrieved from the model profile details
for the current user.
*USER—The session list has the same name as the current user.
*SELECT—An interactive display is used to select a model object list used as the
session list. The name of the list can be entered.
For more information on the purpose of SSNLST, see the Change Model Profile
command (YCHGMDLPRF) section in this chapter.
SCOPE
This parameter allows the user to control the extent to which usages are traced.
Values for this parameter are described in the following:
FILTER
This parameter allows the user to specify filtering on the objects displayed.
Values for this parameter are described in the following:
*ANY—(default) No filtering of objects is performed.
*DBFFUN—Only database functions are displayed.
*ERR—Only error usages are displayed; namely, usages by deleted objects.
*EXTFUN—Only external functions are displayed.
*GENFUN—Only generatable functions are displayed.
*GENOBJ—Only generatable objects are displayed.
*INTFUN—Only internal functions are displayed.
object type—A specific object type may be entered for filtering purposes. They
are: *ACP, *ARR, *APP, *CND, *FIL, *FLD, *FUN, and *MSG.
EXCSYS
This parameter allows the exclusion of system objects from the analysis. System
objects are the internal objects used by Advantage 2E such as the *Standard
Header/Footer internal file. Values for this parameter are described in the
following:
*YES—(default) System objects are excluded.
*NO—Include system objects.
CUROBJ
This parameter allows the exclusion of non-current versions from the analysis.
Currency only applies to objects that are supported for versioning. Values for
this parameter are described in the following:
*YES—(default) Only current objects are included.
*NO—Include system objects.
For more information on versions, see the “Working with Advantage 2E Model
Objects” chapter in the Generating and Implementing Applications guide.
REASON
This parameter allows the reason for the dependency between objects to be part
of the filtering process. Values for this parameter are described in the following:
*FIRST—(default) The processing program will note the first reason when an
object is encountered.
*ALL—All subsequent encounters with a given object are included.
REASON—A specific reason may be entered. The processing program will
search for dependencies of the specified reason.
FLAGVAL
This parameter allows the input list entries to be filtered according to the value
of the object selected indicator for each entry. Values for this parameter are
described in the following:
*ANY—No selection processing is performed.
*ERROR—Only process entries flagged in error are considered.
*SELECTED—Only process selected entries are considered.
Notes
■ The model library specified must be a valid model library.
■ A value other than *MDLLIB for MDLLST may result in the library list being
changed. If the user is currently editing a model, the switching of the library
list will not occur and the command will fail. If changed during processing,
the library list is not changed back after execution.
■ If the output model list does not exist prior to running the command, it is
created.
■ If the list is to be printed, the display model object references panel is used.
This panel is described below.
■ If the resulting list is to be printed, the Document Model Object list
command (YDOCMDLLST) is called.
■ The edit parameters are ignored if the running job is a batch job.
■ The scope parameter will limit the expansion. This will normally be useful to
prevent unnecessary objects from being included in the analysis. Note that a
scoped expansion means that an expansion will need to be repeated if
additional objects are to be included.
■ The filtering parameter is applied to the expanded details. Thus, if the
output is to display, the filtering may be adjusted without having to rebuild
the expansion. If output is to a model list, the filtering is performed when the
entries are written to the list.
■ An indented output format is used for the *PRINT option whenever this is
appropriate. If the default of *FIRST is used for the REASON filter, the
objects are sorted in a keyed sequence. It would be inappropriate to indent
this sequence because the relationships between the objects are purely
arbitrary. However, any other value for REASON will cause the processing
program to examine objects strictly in the order of expansion; the indented
format here clearly shows the hierarchy of dependencies to assist
developers.
Usage Table
The Usg level value refers to the level of usage of a given object to the original
object that is displayed on the subfile control. This value may be changed by the
user and will control the data shown in the subfile. By manipulating the range of
levels available, all possible usage levels can be viewed individually or in
combination.
The Usg type column in the subfile refers to the reason for the usage. The
following table shows the possible reasons for usages between model objects.
Actual usages to a given model object depend upon the model object type.
Used by Usage
Obj Type Object Type Code Reason Note
All *ENTRY Displayed only on the first panel when you access the
YDSPMDLUSG panel for a model object list rather
than for a single list entry; for example, by using the
YDSPMDLUSG command or F20 from the
YEDTMDLLST panel. It indicates that each list entry
displayed has simply been updated to reflect its
current state in the model; no usages have been
expanded. Your original list is not changed. You can
now perform impact analysis on single list entries
using the selection options. See also the online Help
for the panel and the Impact Analysis topic in chapter
1 of Generating and Implementing Applications.
ACP ACP *ACPENT For joining access path.
ACP *ASSACP For associated access path.
ACP *REFACP For referring access path. Subject access path is used
as referenced access path due to file-to-file relation.
ARR *ARRDTL For array detail definition.
FUN *BASED Function based on access path.
FUN *FUNPAR For function/message parameter definition.
FUN *RELFUN For functions using related access path. That is, access 1
path is present as a *REFACP and FUN uses access
path, such as for validation.
APP FIL *APPFIL For association in application area.
ARR FUN *BASED Function based-on array.
FUN *FUNPAR For function/message parameter definition.
CND ACP *ACPCND For access path condition.
CND *LSTCND Member of list condition.
FIL *MAPFLD For field mapping (user-defined field types).
FLD *DFTFLD Default field condition.
FLD *FLDCND Field condition.
FUN *ABOCND Action bar condition.
Used by Usage
Obj Type Object Type Code Reason Note
FUN *ACTCND Action diagram condition.
FUN *DEVCND Device entry condition.
FUN *DFTDEV Default device entry condition.
FUN *INPOVR Device input override condition.
FUN *OUTOVR Device output override condition.
FUN *PARAM Action diagram parameter.
FUN *SCRMAP For screen field mapping (user-defined field types).
FIL ACP *REFFIL For owning file.
APP *APPARA For application area. 2
FLD ACP *ACPCND For access path condition. 3
ARR *ARRENT For array entry.
FIL *ENTAUX For entry redirection.
FIL *FILENT For key/attribute entry.
FIL *MAPFLD For field mapping (user-defined field types).
FIL *VRTENT For virtual entry.
FLD *REFFLD For domain definition.
FLD *RNMFLD For rename by entry.
FUN *ACTION For action diagram action.
FUN *ACTCND Action diagram condition.
FUN *ACTCMP Action diagram compare.
FUN *DEVCND For device conditioning.
FUN *DEVENT For device entry.
FUN *FUNPAR For function/message parameter definition.
FUN *FUNPDT For function/message parameter detail definition.
FUN *PARAM For action diagram parameter.
FUN *SCRMAP For screen field mapping (user-defined field types).
FUN ACP *SELRCD For select record override function.
ACP *ACPFUN For access path function.
Used by Usage
Obj Type Object Type Code Reason Note
FLD *EXTINT For external/internal conversion function (user-
defined field type).
FLD *FLDUSR Field-attached user source function (enabled)
FLD *INTEXT For internal/external conversion function (user-
defined field type).
FUN *ARCVSN For archived version. 1
FUN *ACTION For action diagram function.
FUN *DFTDBF Default database function.
FUN *DEVSTR For device structure usage.
FUN *DEVUSR Device-attached user source function
FUN *ENTUSR Entry-attached user source function
FUN *FLDUSR Field-attached user source function (disabled)
FUN *FMTUSR Format-attached user source function
FUN *RPTUSR Report-attached user source function
FUN *SCRUSR Screen-attached user source function
FUN *SELRCD For select record override function.
MSG FIL *RCDEXS For record exists message.
FIL *RCDNFD For record not found message.
FUN *ACTION For action diagram function.
MSG *ARCVSN For archived version. 1
The Note column indicates whether or not there is a reciprocal entry in the
reference table by the using object. The numbers in the column refer to the
following explanations as to why there will not be a corresponding reference
entry:
1 The using object is not required by the used object as part of its definition.
Thus, it is not shown in the reference table.
2 FIL objects are not included as defining an application area because this
would make the scope of APP references too large. For this reason there is no
corresponding entry for the APP object type in the reference table.
3 The reference of ACP to FLD is accomplished through the Access Path
Condition (*ACPCND on the reference table).
4 Developers will note from the table that there is no direct relationship
between objects of type FLD and ACP. That is, a change to a FLD has no
direct effect on the ACP objects that use it. The change is propagated
through the FIL objects on which the FLD appears as a file entry. This is a
valuable feature in the product, where it provides the capacity to
accommodate changes to the data model. When an ACP is required for DDS
source generation, or for the construction of a device design, the structure is
determined dynamically, incorporating any changes that may have occurred
since the last time the structure was required. The dynamic nature of ACP
objects means, however, that there is no database representation available
for interrogation by impact analysis. The result is that changes to a FLD
impact the FILs which use it and are propagated to all ACP objects, even if
the FLD is not used by each individual ACP.
Example
Optional
*ALL
*DSN
*NME
*GENACP
YDSPMDLVAL MDLVAL
*GENFUN
*GENHLP
*ENV
*ENVPWS
*VRS
Parameters
MDLVAL
Type of model value displayed. Values for this parameter are described in the
following:
*ALL—(default) Display all model values.
*DSN—Display model values controlling design options.
*NME—Display model values controlling naming options.
GENACP—Display model values controlling access path generation options.
GENFUN—Display model values controlling function generation options.
*GENHLP—Display the model values controlling help generation options.
*ENV—Display model values controlling development and run time
environment options.
*ENVPWS—Display model values controlling PWS development and run time
environment options.
*VRS—Display model values recording product version levels.
For more information on the role of each model value, refer to the Change Model
Value command (YCHGMDLVAL).
Example
Optional
*GENLIB *ALL
*CUAENT
*CUATXT
*Y1HLP
Y1MNU
CSG
*ALL
CRTOPT
*NEW
Parameters
GENLIB
Name of library into which required objects are duplicated. Values for this
parameter are described in the following:
*GENLIB—(default) Use the default generated source library name as specified
by the YGENLIB model value in the first model found in the library list.
*CURLIB—Use current library for invoking job.
DUPOPT
Types of application objects that are duplicated. Values for this parameter are
described in the following:
*ALL—(default) Duplicate all objects.
*CRT—Only duplicate objects needed for compilation.
*EXEC—Only duplicate objects needed for execution, both for CUA Text and
CUA Entry.
CUAENT—Duplicate objects needed for execution but without support for CUA
Text.
*CUATXT—Duplicate objects needed for the CUA Text subset.
*Y1HLP—Duplicate Advantage 2E 400 Toolkit objects needed for help text
display.
CRTOPT
Duplicate existing objects option. Values for this parameter are described in the
following:
*ALL—(default) Duplicate all objects. Replace any existing objects with updated
versions.
*NEW—Only duplicate objects that do not already exist in the destination
library.
Notes
■ You should implement this command over your generation library or over a
copy of your generation library.
■ The source for the Advantage 2E objects is supplied in the Synon/2E
shipped source library.
Example
For a diagram illustrating the entries of the two intersecting lists, see the
YOPRMDLLST command in this chapter. You can also invoke this command
using its short form, Y2
Optional
*MDLPRF
*MDLLIB/ *DFTCPY
*NO *NO
CREATE BUILD
*YES *YES
Parameters
BUILD
Build list option. Values for this parameter are described in the following:
*NO—(default) Edit an existing model list.
*YES—Invoke the command Build Model List (YBLDMDLLST) to build
(populate) a new list before editing it.
Notes
Calls an interactive program to edit a model object list for a design model. The
model list can subsequently be used by the command Copy Model Objects
(YCPYMDLOBJ):
■ To determine which Advantage 2E objects from the source model are copied
to another model.
■ To obtain an alternative name to give to a Advantage 2E object in the
destination model to which it is copied.
Example
Optional
*MDLLIB/
library name/
Parameters
MDLLIB
Name of library containing the name of a design model for which the default
attributes are changed. Values for this parameter are described in the following:
*MDLLIB—(default) Use the first model library found in the library list.
*CURLIB—Use current library for invoking job.
Notes
The display attributes are used when creating new designs or when adding new
fields to existing screen designs. The field attributes of existing fields on existing
designs are not changed. You can override the display attributes of an individual
field using the screen editor (Edit Screen Field Display Attributes display).
Example
Short Form
Y2
Long Form
Optional
*DSNR
*MDLLIB
YEDTMDL USER *PGMR MDLLIB
model library name
*USER
*MDLLIB/
*MDLPRF
*GENLIB/
*USER
*SRCLIB/
JOBLST *WORKSTN
*LIBL/
*SELECT
*CURLIB/
job list name
library name/
*EDTDBREL *MDLPRF
*EDTMDLLST *USER
ENTRY SSNLST
*NONE *SELECT
*USER
*MDLVAL
OPNACC MDLLST *ALLOBJ
*NO
*SELECT
model list
name
Advantage 2E Modules: *ALL Job: I Pgm: I
Parameters
USER
Type of user. Values for this parameter are described in the following:
*DSNR—(default) A designer can change any aspect of the model, including the
database.
*PGMR—A programmer can add or change any functions that are in the model,
but cannot alter the relations, files or fields.
*USER—A user can view all aspects of the model but cannot change any design
objects. This class of user is useful to allow the data model to be examined
without the possibility of change.
MDLLIB
This parameter specifies the data model that is edited. Values for this parameter
are described in the following:
*MDLLIB—(default) The model to be edited is the first one found in the current
job's library list.
model name—The model library name.
JOBLST
Qualified name of job list that contains the names of source members to be
generated and/or compiled. If the nominated job list does not already exist, it
will be created. Values for this parameter are described in the following:
*MDLPRF—(default) Retrieve the job list name from the model profile details of
the current user.
*USER—The job list name is the same name as the current user.
*WORKSTN—Use device name of current workstation as list name.
*SELECT—Display a list of existing job lists, one of which may be selected. The
name of the job list can be entered.
*MDLLIB/—The job list library is the first model library found in the library list.
*GENLIB/—Use the generation library specified in the first model found in the
library list.
*SRCLIB/—Use the source library specified on the model profile of the current
user.
*LIBL/—The job list library is the first model found in the library list.
*CURLIB/—The model library is found in the current library for the current job.
The job list library can be entered.
ENTRY
This parameter provides the user with multiple entry points to the specified
model. Values for this parameter are described in the following:
*EDTDBREL—(default) The first panel to be accessed is the Edit Database
Relations panel.
*EDTMDLLST—The mode of entry to the model is via the Edit Model List
panel. If this value is specified, the MDLLST parameter specifies the model list
that is edited.
*SERVICES—The services menu is the first panel accessed.
*NONE—This option can be used to establish a model environment but without
any particular entry to the model. In this case the model environment is started
and the developer is presented with the Command Entry panel. Numerous
commands require the model environment to be active and will check to ensure
that it is active when invoked. These commands will adopt an already active
environment. Thus, if a series of commands are run, it will be more efficient to
use this option before executing such commands. Another advantage of this
option is that the lock applied to the model will be established for the entire
session, preventing interference by another developer.
SSNLST
This parameter specifies the session list to use while editing the model. Values
for this parameter are described in the following:
*MDLPRF—(default) The session list is retrieved from the model profile details
for the current user.
*USER—The session list has the same name as the current user.
*SELECT—An interactive display is used to select a model object list to be used
as the session list.
For more information on the purpose of SSNLST, refer to the Change Model
Profile command (YCHGMDLPRF).
OPNACC
This parameter enables the current user to override to *NO (if authorized) the
Open Access model value. The intention with this parameter is to provide a
*DSNR with the opportunity to gain exclusive access to the data model. Values
for this parameter are described in the following:
For more information on Open Access, see the Change Model Value command
(YCHGMDLVAL) in this chapter and the “Creating and Managing Your Model”
chapter in the Advantage 2E Administrator Guide.
MDLLST
The qualified name of the model object list that is edited. Values for this
parameter are described in the following:
*USER—The list to be edited has the same name as the current user.
*ALLOBJ—The all objects list is to be edited.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
Notes
■ The model can either be set up to allow concurrent *DSNRs and
*PGMRs/*USERs into the model by setting the model value YOPNACC to
*YES, or the model value can be left as *NO where either a single *DNSR or
multiple *PGMRs/*USERs can be in the model concurrently.
■ To add and remove permanent locks, or to change the Open Access
(YOPNACC) model value, you must have all rights to the data model.
(Designer with locks capability).
■ To edit a model as a user of type *DSNR, you must have at least all rights
except for existence to the model. Generally the most convenient way to
arrange this is to grant all rights to all the objects in the model library (the
default), and then to control access to the model by granting or revoking
rights to use the data area YMDLLIBRFA in the model library. The
YEDTMDL command checks the user's authority to this data area before
allowing entry to the model.
■ For example, to revoke all rights to user profile IVAN to edit or view a
model MYMDL:
RVKOBJAUT OBJ(MYMDL/YMDLLIBRFA) + OBJTYPE(*DTAARA) USER (IVAN) AUT(*ALL)
Examples
To edit a model as a programmer, using a list named after the current device
name:
YEDTMDL USER(*PGMR) JOBLST(*WORKSTN)
Optional
*MDLPRF
*USER
*MDLLIB/
*ALLOBJ
YEDTMDLLST MDLLST *CURLIB/
*SELECT
model library
name/ *SESSION
model list
name
*DSNR
USER *PGMR
*USER
*MDLLIB/
*MDLPRF
*GENLIB/
*USER
*SRCLIB/
JOBLST *WORKSTN
*LIBL/
*SELECT
*CURLIB/
job list name
job list name/
*MDLPRF
*USER
SSNLST
*SELECT
list name
*NO *NO
CREATE BUILD
*YES *YES
Parameters
MDLLST
The qualified name of the model object list that is edited. Values for this
parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile extension record for the current user in the
specified model library.
*ALLOBJ—Special value meaning that all model objects are edited. In this mode,
the objects displayed are not list entries, but the actual model objects themselves.
*USER—Special value meaning that the model object list name is the same as the
name of the current user.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
*SESSION—Special value meaning that the session list named on the current
user's model profile is edited.
list name—The name of the list that is worked with.
*MDLLIB/—The model library is the first model found in the library list.
*CURLIB/—The model library is found in the current library for the current job.
library name—The model library name can be entered. If this is not the highest
model library in the library list, the library list is switched. The list is returned to
its original state at the end of processing.
USER
This parameter specifies the user class of the session. Values for this parameter
are described in the following:
*DSNR—(default) The edit session is performed as a designer user of the model.
JOBLST
Qualified name of job list that contains the names of source members to be
generated and/or compiled. If the nominated job list does not already exist, it
will be created. Values for this parameter are described in the following:
*MDLPRF—(default) Retrieve the job list name from the model profile details of
the current user.
*USER—The job list name is the same name as the current user.
*WORKSTN—Use device name of current work station as list name.
*SELECT—Display a list of existing job lists, one of which may be selected. The
name of the job list can be entered.
*MDLLIB/—The job list library is to be the first model library found in the
library list.
*GENLIB/—Use the generation library specified in the first model found in the
library list.
*SRCLIB/—Use the source library specified on the model profile of the current
user.
*LIBL/—The job list library is the first model found in the library list.
*CURLIB/—The model library is found in the current library for the current job.
SSNLST
This parameter specifies the session list to use while editing the model. Values
for this parameter are described in the following:
*MDLPRF—(default) The session list is retrieved from the model profile details
for the current user.
*USER—The session list has the same name as the current user.
*SELECT—An interactive display is used to select a model object list that is used
as the session list.
For more information on the purpose of SSNLST, see the Change Model Profile
(YCHGMDLPRF) command section in this chapter.
CREATE
This parameter defines whether the list is created if it does not already exist prior
to running the command. Values for this parameter are described in the
following:
*NO—(default) The list is not created if it does not already exist when the
command is invoked.
*YES—The list is created if it does not already exist.
BUILD
Indicates whether the specified list is built, if it does not exist, or added to if it
does exist. Values for this parameter are described in the following:
*NO—(default) The list is not built.
*YES—The Build Model Object List command (YBLDMDLLST) is prompted to
create or augment the list.
Notes
■ The *ALLOBJ value for model object list provides the user with the edit
panel functionality over all the model objects.
■ If *YES is specified for BUILD, the Build Model Object List command
(YBLDMDLLST) is prompted.
■ The BUILD parameter is ignored if *ALLOBJ is specified for MDLLST.
■ The interactive display for this command is documented separately.
Note: For more information on the YEDTMDLLST interactive display, see
the “Managing Model Objects” chapter in the Generating and Implementing
Applications guide.
■ The user class that is adopted has implications for the lock applied to the
model.
Note: For more information on the locks applied, see details relating to the
Open Access model value in the Change Model Value (YCHGMDLVAL)
command section in this chapter, and the “Creating and Managing Your
Model” chapter in the Advantage 2E Administrator Guide.
Example
To edit the model object list referenced on the current user's model profile in the
first model library in the current library list:
YEDTMDLLST MDLLST( *MDLPRF )
Required
*USER
YEDTMDLPRF MDLPRF
model profile
name
Advantage 2E Modules: *ALL Job: I Pgm: I
Parameters
MDLPRF
The name of the model profile that is edited. Values for this parameter are
described in the following:
*USER—(default) Special value indicating that the model profile of the current
user is edited.
model profile name—The name of the model profile to be edited can be entered.
Notes
■ The first model library in the current library list is used to find the specified
model profile.
■ If the model profile does not exist, it is created. A special profile, YSYS, is
used to provide default values for a new model profile.
Example
Required
*MDLLIB
YEDTNXTMNC MDLLIB
*CURLIB
Parameters
MDLLIB
Name of library containing the YALCVNMRFP file associated with the model,
usually the design model library. Values for this parameter are described in the
following:
*MDLLIB—(default) Use the first model library found in the library list.
*CURLIB—Use the current library for invoking the job.
Example
To call an interactive program to edit the type mnemonics for automatic naming
in the current model library:
YEDTNXTMNC
Required
*MDLPRF
*MDLLST/ *USER
MDLLST
model library/ *SELECT
list name
*NONE
ERRLVL *NOMAX
number
*NONE
*FLAGERR *CMD
*RMVOK
*NO
*NONE
INCAUX *YES USROPT
user option
*GEN
*MDLPRF
OPTFIL
*LIBL/
file name
library name/
*MDLPRF
OPTMBR *FILE
member name
*ANY
FLAGVAL *ERROR
*SELECTED
Parameters
CMD
The command string containing the details of the command that is executed for
each entry in the model object list.
MDLLST
The qualified name of the model object list that is executed. Values for this
parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile extension record for the current user in the
specified model library. The change list value is retrieved.
*USER—Special value meaning that the user profile name of the current user is
used as the list name for the target of the command.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
list name—The model object list name must be entered.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used as the model library for the list.
library name—The model library name for the list can be entered.
ERRLVL
The number of errors tolerated by the command can be specified. Values for this
parameter are described in the following:
*NONE—(default) No errors allowed. The command will stop at the first error
encountered.
*NOMAX—There is no limit to the number of errors.
number of errors—The number of errors can be specified.
UPDLST
List update option. Values for this parameter are described in the following:
*NONE—(default) The list entries are not updated.
*FLAGERR—If an error occurs during processing of a list entry, the entry is
flagged. The value to use is specified by the OUTFLAGVAL parameter. This
value may be the subject of a later filtering operation.
*FLAGOK—If an error does not occur during processing of a list entry, the entry
is flagged. The value to use is specified by the OUTFLAGVAL parameter. This
value may be the subject of a later filtering operation.
*RMVERR—If an error occurs during processing of a list entry, the entry is
removed from the list.
*RMVOK—If the processing of a list entry completes without error, the entry is
removed from the list.
RQSDTA
The request data command string containing the details of the command that is
executed for each entry in the model object list. For a list of supported
substitution variables, see details relating to the CMD parameter. Values for this
parameter are described in the following:
*CMD—(default) The command string parameter contains the request to be
executed.
*USROPT—The request data command string is retrieved from the user options
file/member specified using the user option parameters.
INCAUX
This parameter lets you choose whether or not to include object auxiliaries, such
as the display and help members for an interactive function, in the processing.
Values for this parameter are described in the following:
*NO—(default) Auxiliaries are not included in processing.
*YES—Auxiliaries are included in processing.
*GEN—Auxiliaries are only included in processing if they are currently
generatable as part of the normal generation of the access path or function.
Note: For functions that have help text, which auxiliaries are included in
processing when INCAUX is set to *GEN is affected by the setting of the
YGENHLP model value (or the corresponding GENHLP function option). The
YGENHLP model value specifies whether the function only (*NO), the help text
only (*ONLY), or both (*YES) are to be generated.
■ If YGENHLP IS *NO, the help auxiliary is excluded from YEXCMDLLST
processing.
■ If YGENHLP is *ONLY, only the help auxiliary is included in processing.
■ If YGENHLP is *YES, all generatable auxiliaries are included. YGENHLP has
no effect on functions that do not have help text.
USROPT
OPTFIL
Qualified name of the file containing the user-defined option text. The value for
this parameter is as follows:
*MDLPRF—(default) Single value meaning that the value for the user option file
is retrieved from the model profile details for the current user.
OPTMBR
Name of the member containing the user-defined option text. Values for this
parameter are described in the following:
*MDLPRF—(default) Single value meaning that the value for the user option file
is retrieved from the model profile details for the current user.
*FILE—The member has the same name as the file.
FLAGVAL
This parameter allows list entries to be selected for execution. Values for this
parameter are described in the following:
*ANY—(default) Execute all list entries.
*ERROR—Only entries flagged in *ERROR are executed.
*SELECTED—Only *SELECTED entries are executed.
Notes
■ The MDLLST must exist prior to running the command.
■ A value other than *MDLLIB for MDLLST may result in the library list being
changed. If the user is currently editing a model, the switching of the library
list will not occur and the command will fail. If changed during processing,
the library list is changed back after execution.
■ If *USROPT is specified for parameter RQSDTA, then the USROPT
parameter cannot be *NONE.
Example
To print each function by executing model object list IM0033 from the model
contained in the current library list with the Document Model Functions
command (YDOCMDLFUN):
YEXCMDLLST CMD( YDOCMDLFUN + MDLFILE(&YO) MDLFUN(&YN) ) MDLLST + (*MDLLIB/IM0033 )
Required
*CURLIB
YEXCSQL OBJLIB
library name
Optional
*LIBL/
QSQLRSRC
SRCFILE *CURLIB/
source file
library name/ name
*FIRST
MBR
member name
*SQL
NAMING
*SYS
Parameters
OBJLIB
Collection in which to place SQL/400 statements. Values for this parameter are
described in the following:
*CURLIB—(default) Use current library for invoking job.
library name—Specific library name.
SRCFILE
Qualified name of file from which SQL statements are processed. Values for this
parameter are described in the following:
*LIBL—(default) Libraries named in the job library list to be processed.
*CURLIB—Current library for the job to be processed.
library name—Specific library name.
QSQLRSRC—(default) SQL statements are in the QSQLRSRC source file.
source file name—Specific name of source file containing the SQL statements.
MBR
Member name of source file to be executed. Values for this parameter are
described in the following:
*FIRST—(default) Use first member in source file.
member name—Name of specific member in source file.
NAMING
Naming convention used for naming the objects in SQL statements. Values for
this parameter are described in the following:
*SQL—(default) Use SQL naming convention (collection-name.table-name).
*SYS—Use system naming convention (library-name/file-name).
Example
An outlist capability allows users to filter entries to an alternative list leaving the
input list unchanged by the filtering process.
Required
*SELECT
YFLTMDLLST FILTER
*OMIT
Optional
*MDLPRF
*ALLOBJ
*MDLLIB/
MDLLST *USER
model library/
*SELECT
list name
*NONE
*MDLPRF *REPLACE
OUTLST OUTLSTOPT
*USER *ADD
list name
*ANY
OBJNAM *ANY
*NONE *ANY
*MESSAGES *APP
*CND
*FIL
*FLD
*FUN
*MSG
*ANY
LSTDATE
*CRT *EQ
*QDATE *ANY
*CHG *GT
date time
*GEN *LT
*CHK *NE
*ANY
OBJDATE
*CRT *EQ
*QDATE *ANY
date
time
*CHG *GT
date time
*GEN *LT
*CHK *NE
*IMP
*ANY
CHGUSR *CURRENT
user name
*ANY
*NONE *ANY
*GEN *NO
*EDT
*ANY
*ANY
*PUBLIC
SYSOBJ *YES CHGTYP
*PRIVATE
*NO
*GEN
*ANY
*ANY
*ADD
IPCPRC *YES PRMTYP
*CHG
*NO
*GEN
*ANY
*ANY
*DEV
VSNTYP VSNSNC *YES
*PRD
*NO
*ARC
*ANY
*CURRENT
CHKUSR
*NONE
user name
*ANY
*CURRENT *ANY
CHKLST CHKSTS
*NONE value
list name
*ANY *ANY
*NONE *NONE
*ANY *ANY
CPYSTS GENATR
(1)
*NEW
general
attribute type
*ANY
OBJATR
object attribute
*ANY
FLAGVAL *ERROR
*SELECTED
*SAME
OUTFLAGVAL *NONE
*SELECTED
*SAME
OUTCPYOBJ *NONE
*SELECTED
(1) The following general attribute types are valid: *ANY, *OBJDLT, *GENFUN, *GENOBJ, *DBFFUN, *DEVFUN,
*DSPFUN, *EDTFUN, *EXTFUN, *INTFUN, *PRTFUN, *CHGOBJ, *CRTOBJ, *DLTOBJ, *DSPFIL, *DSPRCD,
*DSPTRN, *EDTFIL, *EDTRCD, *EDTTRN, *EXCEXT, *EXCINT, *PMTRCD, *PRTFIL, *PRTOBJ, *SELRCD,
*USRPGM, *USRSRC.
Parameters
FILTER
Type of filtering to apply to the model object list entries. Values for this
parameter are described in the following:
*SELECT—(default) Keep entries that satisfy all the filter conditions.
*OMIT—Reject entries that satisfy all the filter conditions.
DLLST
The qualified name of the model object list that is filtered. Values for this
parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile extension record for the current user in the
specified model library. The change list value is retrieved.
*USER—Special value meaning that the user profile name of the current user is
used as the list name for the target of the command.
*ALLOBJ—Special value meaning that a model object list is not used, but that all
model objects are included in the command. If this value is specified for
MDLLST, then an OUTLST must also be specified.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
list name—The name of the list to be filtered.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used.
library name—The name of the model library.
OUTLST
The name of the target model object list for entries that satisfy the filter. Values
for this parameter are described in the following:
*NONE—(default) Special value meaning that no outlist processing is
performed. In this case, all changes are made to the input list.
*MDLPRF—Special value meaning that the model object list name is retrieved
from the user profile extension record for the current user in the specified model
library. The outlist value is retrieved.
*USER—Special value meaning that the user profile name of the current user is
used as the list name.
list name—The name of the target list.
OUTLSTOPT
This parameter specifies the action taken if the outlist specified in the OUTLST
parameter already exists in the model. Values for this parameter are described in
the following:
*REPLACE—(default) The existing model object list is replaced with the output
from this command.
*ADD—The existing model object list is augmented with the output from this
command.
OBJNAM
The object name details on which to filter. This parameter consists of up to five
sets of three elements which together identify the model objects. Values for this
parameter are described in the following:
*ANY—(default) No filtering by model object name.
*ALL—All model object owners are included.
owner name—Name mask of the file to which model objects to be included must
belong. That is, the condition is satisfied if a given object is owned by the
specified file.
*ARRAYS—Special value for the product internal file *ARRAYS.
*MESSAGES—Special value for the product internal file *MESSAGES.
object name—Name mask of the object that is satisfied for a given object to be
included.
*ALL—(default) All objects are added.
*ACP—Objects of type access path.
*APP—Objects of type application area.
*ARR—Objects of type array.
*CND—Objects of type condition.
*FIL—Objects of type file.
*FLD—Objects of type field.
*FUN—Objects of type function.
*MSG—Objects of type message.
LSTDATE
The date stored on the model object list entry on which to filter. The value for
this parameter is as follows:
*ANY—(default) No filtering on list entry date.
Otherwise, LSTDATE is a list parameter made up of the following elements:
■ Date type on which to filter:
– *CHG—(default) Filter on last change date of object.
– *CRT—Filter on create date of object.
– *GEN—For generatable objects, filter on last successful generation date
of object.
– *CHK—Filter on the check out date of object.
■ date operator:
– *EQ—(default) Equal to.
– *NE—Not equal to.
– *GT—Greater than.
– *LT—Less than.
■ date (Entered in system date format):
OBJDATE
The date stored on the model object record on which to filter. The value for this
parameter is as follows:
*ANY—(default) No filtering on list entry date.
Otherwise, OBJDATE is a list parameter made up of the following elements:
■ Date type on which to filter:
– *CHG—(default) Filter on last change date of object.
– *CRT—Filter on create date of object.
– *GEN—For generatable objects, filter on last successful generation date
of object.
– *CHK—Filter on the check out date of object.
– *IMP—Filter on the import date of the object.
■ Date operator:
– *EQ—(default) Equal to.
– *NE—Not equal to.
– *GT—Greater than.
– *LT—Less than.
CHGUSR
The name of the user who made the change to model objects on which to filter. If
used, model objects in the list are filtered according to the current value of the
change user field on the model object record corresponding with each list entry.
Values for this parameter are described in the following:
*ANY—(default) No filtering on change user.
*CURRENT—The name of the current user is used to filter model objects.
user name—The user name on which to filter.
ACTRQD
The model object action required flag on which to filter. If used, model objects in
the list are filtered according to the current status of the action required flag on
the model object record corresponding with each list entry. Values for this
parameter are described in the following:
*ANY—(default) No filtering on action required flag.
*NONE—Model objects with no action required flag set.
*ALL—Model objects with action required flag set.
*GEN—Model objects with status *GEN satisfy the condition.
*EDT—Model objects with status *EDT satisfy the condition.
CUROBJ
The model object current object flag on which to filter. If used, model objects in
the list are filtered according to the status of the current object flag on the model
object record corresponding with each list entry. Values for this parameter are
described in the following:
*ANY—(default) No filtering on current object flag.
*YES—Model objects with status *YES satisfy the condition.
*NO—Model objects with status *NO satisfy the condition.
SYSOBJ
CHGTYP
The change type value assigned to a model object on which to filter. If used,
model objects in the list are filtered according to the status of the change type
flag on the model object record corresponding with each list entry. Values for
this parameter are described in the following:
*ANY—(default) No filtering on change type flag.
*PUBLIC—Model objects with status *PUB satisfy the condition.
*PRIVATE—Model objects with status *PRV satisfy the condition.
IPCPRC
Impact processed indicator shows whether the impact of a change to the object
has been applied to the using objects of the changed object. Values for this
parameter are described in the following:
*ANY—(default) No filtering on impact processed indicator.
*YES—Model objects with impact processed *YES will satisfy the condition.
*NO—Model objects with impact processed *NO will satisfy the condition.
PRMTYP
The promotion type value assigned to a model object list entry on which to filter.
Values for this parameter are described in the following:
*ANY—(default) No filtering on promotion type flag.
*ADD—Model object list entries with status *ADD satisfy the condition.
*CHG—Model object list entries with status *CHG satisfy the condition.
*GEN—Model object list entries with status *GEN satisfy the condition.
VSNTYP
The model object version type flag on which to filter. If used, model objects in
the list are filtered according to the current status of the version type flag on the
model object record corresponding with each list entry. Values for this parameter
are described in the following:
*ANY—(default) No filtering on version type flag.
*DEV—Model objects with status *DEV satisfy the condition.
*PRD—Model objects with status *PRD satisfy the condition.
*ARC—Model objects with status *ARC satisfy the condition.
VSNSNC
The model object version synchronized flag on which to filter. If used, model
objects in the list are filtered according to the current status of the version
synchronized flag on the model object record corresponding with each list entry.
Values for this parameter are described in the following:
*ANY—(default) No filtering on version synchronized flag.
*YES—Model objects with status *YES satisfy the condition.
*NO—Model objects with status *NO satisfy the condition.
CHKUSR
The user who checked out the list entry on which to filter. If used, model objects
in the list are filtered according to the check out user value on the model object
record corresponding with each list entry. Values for this parameter are
described in the following:
*ANY—(default) No filtering on check out user.
*CURRENT—The current user name is used.
user name—The user name on which to filter.
CHKLST
The list name on which a given list entry is currently checked out. If used, model
objects in the list are filtered according to the check out list value on the model
object record corresponding with each list entry. Values for this parameter are
described in the following:
*ANY—(default) No filtering on check out list.
*CURRENT—The current user name is used for list name filtering.
*NONE—Only those objects that have no value specified for check out list
satisfy the condition.
list name—The list name on which to filter.
CHKSTS
The check out status on which to filter. If used, model objects in the list are
filtered according to the check out status value on the model object record
corresponding with each list entry. Values for this parameter are described in the
following:
*ANY—(default) No filtering on check out status.
CPYOBJ
The status of the copy object indicator on the list entry. Values for this parameter
are described in the following:
*ANY—(default) No filtering.
*SELECTED—Selected entries satisfy the condition. Selected means explicitly
selected for the purposes of the Copy Model Objects command (YCPYMDLOBJ).
*NONE—Entries that are not selected satisfy the condition.
CPYRQD
The status of the copy required indicator on the list entry. Values for this
parameter are described in the following:
*ANY—(default) No filtering.
*SELECTED—Selected entries satisfy the condition. Selected means implicitly
selected for the purposes of the Copy Model Objects command (YCPYMDLOBJ).
*NONE—Entries that are not selected satisfy the condition.
CPYSTS
The status of the copy status indicator on the list entry. Values for this parameter
are described in the following:
*ANY—(default) No filtering.
*NEW—Entries with a value of *NEW satisfy the condition.
GENATR
OBJATR
FLAGVAL
This parameter allows model objects to be filtered by the model object list entry
flag value. Values for this parameter are described in the following:
*ANY—(default) No filtering on flag value is performed.
*ERROR—Only entries flagged as being in error satisfy the filter.
*SELECTED—Only explicitly selected model objects satisfy the filter.
OUTFLAGVAL
This parameter specifies the initial value to be placed in the object selected flag
associated with each list entry. Values for this parameter are described in the
following:
*SAME—(default) No flag value is used. New entries are written with the flag
indicating that the entry is not selected. No change to the selection status of
existing entries.
*NONE—New and existing entries are flagged as not selected.
*SELECTED—New and existing list entries are flagged as selected. This flag can
be used by other list commands when selecting list entries.
OUTCPYOBJ
This parameter specifies the initial value to be placed in the copy object flag
associated with each list entry. This flag is used by the Copy Model Object
command (YCPYMDLOBJ) when selecting objects to copy to a target model.
Values for this parameter are described in the following:
*SAME—(default) No flag value is used. New entries are written with the flag
indicating that the entry is not selected. No change to the selection status of
existing entries.
*NONE—New and existing entries are flagged as not selected.
*SELECTED—New and existing list entries are flagged as selected.
Notes
■ The input model object list must already exist prior to running this
command.
■ A value other than *MDLLIB for MDLLST may result in the library list being
changed. If the user is currently editing a model, the switching of the library
list will not occur and the command will fail. If changed during processing,
the library list is changed back after execution.
■ If *ANY is used for a parameter, that parameter is not used for filtering.
■ The various parameters are ANDed together. Thus, the following request
would select all functions from the input list changed today:
YFLTMDLLST OBJNAM( *ALL *ALL *FUN ) + DATE(*CHG *EQ *QDATE *ANY )
■ Where a list of values may be specified for a parameter the elements are
ORed together. Thus, the following would select access paths or functions
that have had an action required since they were last generated:
YFLTMDLLST OBJNAM((*ALL *ALL *ACP) (*ALL + *ALL *FUN)) ACTRQD(*ALL)
■ When *ALLOBJ is specified for MDLLST, meaning that all current model
objects are examined, then the OUTLST parameter must specify a target
model object list.
■ When filtering on LSTDATE, list entries are filtered according to the value
recorded on the list entry. Note that this is historic data relating to the time
that the entry was written. Use the Check Model Object list command
(YCHKMDLLST) to refresh list entries.
■ The OUTLSTOPT parameter is ignored if *NONE is specified for OUTLST or
if the target model object list does not already exist.
■ It should be noted that if an OUTLST is specified, there will be no changes to
the input list.
■ Where a name mask is supported, users may specify wild card characters to
filter object names. Upper and lower case differences are ignored in these
fields. ? may be used as a wild card character in any position in the string
and means match on any character. * anywhere within the mask indicates a
floating scan. * at the end of the mask indicates a generic name. For example:
– *INV001*—Would select all objects with INV001 anywhere in the name.
– *INV001—Would select all objects ending with INV001.
– *INV???—Would select all objects ending with INV at the 4th, 5th and
6th positions from the end.
– INV*UPD*—Would select objects starting with INV and containing
UPD.
Examples
To filter model object list WRKOBJS to out list WRKLST so that it contains all
objects requiring a visit due to updates made to component objects:
YFLTMDLLST ( *EDT ) MDLLST +
(*MDLLIB/WRKOBJS ) OUTLST +
(*MDLLIB/WRKLST) OUTLSTOPT +
( *REPLACE ) ACTRQD
To filter model object list FUNLST so that it contains only objects relating to
Costing (note that a reliable naming convention is required for this type of
filtering):
YFLTMDLLST ( '*COST*' ) MDLLST + (*MDLLIB/FUNLST) OBJNAM
The command is mainly intended for use internally by Synon/2E, but should be
used by developers if an empty list is required for user-defined processing.
Required
list name
*MDLLIB/
YINXMDLLST MDLLST
*LIBL/
model library
name
*ALL
LSTLF YMDLLST00L
YMDLLST01L
YMDLLST02L
YMDLLST03L
YMDLLST04L
YMDLLST05L
YMDLLST06L
YMDLLST07L
YMDLLST08L
YMDLLST09L
YMDLLST10L
YMDLLST11L
max 8
*DFT
LSTLF *NONE
character
string
Advantage 2E Modules: *ALL Job: B,I Pgm: B,I
Parameters
MDLLST
The qualified model list name that is created, or whose indexes are checked.
Values for this parameter are described in the following:
model list name—(default) The list name must be entered.
*MDLLIB/—The library, in which the model list file to be checked exists, is the
first model library found in the current job's library.
*LIBL/—The library list is searched to find the first model library.
model library name—The model library name.
LSTLF
The name of the logical file that is checked. Values for this parameter are
described in the following:
YMDLLST00L—(default) The member in file YMDLLST00L is checked for
existence. If it does not exist, it is created.
YMDLLST01L - 11L—Processed as for YMDLLST00L.
*ALL—Single value indicating that all logical files are checked. A new logical file
member is added to any file that does not already have one for the specified
model list.
TEXT
Up to fifty characters can be entered to describe the list. This is stored as member
text for the particular list member specified. Values for this parameter are
described in the following:
*DFT—(default) A formatted string is used. It contains the model, list and
current user id.
*NONE—No text is specified.
Notes
Example
To check for the existence of list TSTLST, and to check/create the YMDLLST00L
and YMDLLST06L indexes, enter the following command:
YINXMDLLST MDLLST( TSTLST ) LSTLF +
( YMDLLST00L YMDLLST06L ) TEXT( 'Test list.' )
Required
list name
*ALLOBJ
*MDLLIB/
YOPRMDLLST MDLLSTA *MDLPRF
model library/
*USER
*SELECT
Optional
*SUB
*DIF
LSTOPR
*INTERSECT
*UNION
*MDLPRF *MDLLSTA
*ALLOBJ *MDLPRF
MDLLSTB TOMDLLST
*USER *USER
*REPLACE
LSTOPT
*ADD
*OBJNAM
OPRTYPE
*OBJSGT
*YES *YES
IGNCRTDTE IGNCHGDTE
*NO *NO
Parameters
MDLLSTA
The qualified name of the model object list that is the first operand list involved
in the operation. Values for this parameter are described in the following:
list name—(default) The first model object list name must be entered.
*ALLOBJ—Special value meaning that a model object list is not used, but that all
model objects are used as input to the command.
*MDLPRF—Special value meaning that the model object list name is retrieved
from the user profile extension record for the current user in the specified model
library. The change list value is retrieved.
*USER—Special value meaning that the model object list name is the same as the
name of the current user.
*SELECT—Special value meaning that the model object list is selected using an
interactive display function.
*MDLLIB—(default) Special value meaning that the first model library found in
the user's current library list is used as the model library for the first list.
library name—The model library name for the first list.
LSTOPR
The operation to be performed on the two lists (sets). See the notes that follow
for more details. Values for this parameter are described in the following:
*SUB—(default) Subtract the contents of MDLLSTB from MDLLSTA.
*DIFF—Calculate the difference between the two input lists.
*INTERSECT—Calculate the intersection of the two input lists.
*UNION—Calculate the union of the two input lists.
MDLLSTB
The name of the model object list that is the second operand list involved in the
operation. Values for this parameter are described in the following:
*MDLPRF—(default) Special value meaning that the model object list name is
retrieved from the user profile extension record for the current user in the
specified model library. The change list value is retrieved.
*ALLOBJ—Special value meaning that a model object list is not used, but that all
model objects are used as input to the command.
*USER—Special value meaning that the model object list name is the same as the
name of the current user.
list name—The second model object list name must be entered.
TOMDLLST
The qualified name of the model object list that is the target list involved in the
operation. Values for this parameter are described in the following:
*MDLLSTA—(default) Single value meaning that the target list of the operation
is the first input list.
*MDLPRF—Special value meaning that the model object list name is retrieved
from the user profile extension record for the current user in the specified model
library. The outlist value is retrieved.
*USER—Special value meaning that the model object list name is the same as the
name of the current user.
list name—The target model object list name.
LSTOPT
This parameter specifies the action taken if the list already exists in the target
model. Values for this parameter are described in the following:
*REPLACE—(default) The existing model object list is replaced with the output
from this command.
*ADD—The existing model object list is augmented with the output from this
command.
OPRTYPE
Operation method. Values for this parameter are described in the following:
*OBJNAM—(default) The list entries are compared by object name.
*OBJSGT—The list entries are compared by object surrogate number. This
method of comparison may be useful when comparing lists containing objects
that have been renamed since the list was created, and the developer does not
wish to refresh the list entry prior to the comparison.
IGNCRTDTE
This parameter specifies that create dates on the records are ignored when
comparing list entries. This parameter is intended for use when comparing
objects from different models. Values for this parameter are described in the
following:
*YES—(default) Ignore create dates when comparing objects.
*NO—Do not ignore create dates when comparing objects.
IGNCHGDTE
This parameter specifies that change dates on the records are ignored when
comparing list entries. Although possible when comparing lists within a
particular model, this parameter is most useful when comparing lists of the same
objects between different models. Values for this parameter are described in the
following:
*YES—(default) Ignore change dates when comparing objects.
*NO—Do not ignore change dates when comparing objects.
Notes
■ The model library specified must be a valid model library.
■ A value other than *MDLLIB for MDLLST may result in the library list being
changed. If the user is currently editing a model, the switching of the library
list will not occur and the command will fail. If changed during processing,
the library list is changed back after execution.
■ Both MDLLSTA and MDLLSTB must exist prior to running the command.
■ The MDLLSTA and MDLLSTB lists cannot be the same.
■ List operations are as follows:
– This diagram illustrates the entries of the two intersecting lists:
M D LLST B
M D LLSTA
(Z)
(Y)
(X)
■ The LSTOPT parameter is ignored if the target list does not already exist.
Examples
To output a model object list WRKLST to contain all objects from input list
INLSTA that are not in input list INLSTB:
YOPRMDLLST MDLLSTA( *MDLLIB/INLSTA ) +
LSTOPR( *SUB ) MDLLSTB( INLSTB ) TOMDLLST +
( WRKLST ) LSTOPT( *REPLACE )
To compare list entries between two models to detect whether objects have been
changed in one of the models:
YCPYMDLLST FRMMDLLST(YOURMDL/WRKLST)+
TOMDLLST( MYMDL/*USER ) LSTOPT(*REPLACE)
YOPRMDLLST MDLLSTA( MYMDL/*USER ) +
LSTOPR( *DIFF ) MDLLSTB( *ALLOBJ )+
TOMDLLST( *MDLLSTA ) IGNCHGDTE( *NO )
Required
*FRMOBJSGT
*CURRENT
*FRMOBJNAM
FRMOBJSGT
model object
surrogat
*TOOBJSGT
TOOBJNAM *FRMOBJNAM
*MESSAGES
owner name
*TOOBJNAM
TOOBJSGT
model object
surrogate
*PUBLIC
*NO *PRIVATE
TFRNAM CHGTYP
*YES *TOOBJ
*NONE
Parameters
FRMOBJNAM
The name of the object from which usage dependencies in the model are
redirected. Values for this parameter are described in the following:
*FRMOBJSGT—(default) Single value indicating that the object surrogate
number parameter is used to identify the model object.
*CURRENT—Single value indicating that the To model object is made current
regardless of whichever version in its group is current.
object owner name—(default) The character name of the object that owns the
object. Thus, for a function, the owning file would be entered.
*SELECT—Special value indicating that the object to be redirected from is
selected using an interactive display function.
*MESSAGES—The internal file *Messages is the owner of the object (note that
this value is only allowed for objects of type *MSG).
object name—The character name of the object.
object type—The object type of the object.
*FUN—Object is of type function.
*MSG—Object is of type message. Note that for objects of type *MSG, the owner
is the *Messages file.
FRMOBJSGT
Unique number identifier of the model object from which usage dependencies in
the model are redirected. Values for this parameter are described in the
following:
*FRMOBJNAM—(default) Use the object name parameter details to identify this
model object.
TOOBJNAM
The name of the object to which usage dependencies in the model are redirected.
Values for this parameter are described in the following:
*TOOBJSGT—(default) Single value indicating that the object surrogate number
parameter is used to identify the model object.
object owner name—The character name of the object that owns the object.
Thus, for a function, the owning file would be entered.
*SELECT—Special value indicating that the object to be redirected from is
selected using an interactive display function.
*MESSAGES—The internal file *Messages is the owner of the object (note that
this value is only allowed for objects of type *MSG).
object name—The character name of the object.
object type—The object type of the object.
*FUN—Object is of type function.
*MSG—Object is of type message. Note that for objects of type *MSG the owner
is the *Messages file.
TOOBJSGT
TFRNAM
This parameter allows the developer to choose whether or not to transfer the 25-
character object name at the same time as redirecting model usages. Values for
this parameter are described in the following:
*NO—(default) The from object name is not transferred.
*YES—The from object name is transferred.
CHGTYP
This field may be used to specify the type of change that the processing
programs are to consider the redirection of references to be. Changing this field
can cause the component changed flag (COMPCHG) on objects that use this
object to be updated also. This will indicate the action required by the user to
accommodate the change. Values for this parameter are described in the
following:
*PUBLIC—(default) The object is considered to have been publicly changed.
Appropriate component change processing is performed.
*PRIVATE—The object is considered to have been privately changed.
Appropriate component change processing is performed.
*TOOBJ—The change type associated with the to object will be examined by
component change processing.
*NONE—The redirection of references is not to be considered a change to the
object. No component change processing is performed.
Notes
■ A search is made for the two model objects in the first model library found in
the library list.
■ Redirecting references involves repointing model objects. Since the primary
key of model objects is the internal surrogate number, it is this value that is
involved in the repointing mechanism. In effect, repointing involves
changing the foreign key references of model objects from the source
surrogate number to the target surrogate number. Note the following points:
– Only objects of type FUN and MSG can be repointed.
– It is not possible to repoint between a MSG and a FUN.
– Any usages of the source object are switched to use the target object.
– Archive objects will not be updated during the repointing process. This
has repercussions for partial rollback. See the Synon/CM Enhancements
section on Rollback procedure for more details.
– The from object must be the current member of its group.
– If the target of the command is not a member of the same group, then it
must be the current member of its group.
– If the target of the command is not a member of the same group, then the
from object remains current after the transfer, and the implementation
name (if there is one) is not transferred. This is necessary to ensure that
there is a current member in the from group.
Example
To redirect model object dependencies from Edit Owner to Edit Owner (new ver)
enter the following command:
YRDRMDLOBJ FRMOBJNAM +
( 'Owner' 'Edit Owner' *FUN ) TOOBJNAM +
(*FRMOBJNAM 'Edit Owner (new ver)' + *FRMOBJNAM )
Required
library name
YRGZMDL MDLLIB
*CURLIB
*MDL
RGZOPT
*JOBLST
Parameters
MDLLIB
Name of library containing a design model or job list that is reorganized. The
value for this parameter is as follows:
*CURLIB—Use current library for invoking job.
RGZOPT
Notes
Example
Required
*CURLIB *SAME
YRNMMDL MDLLIB NEWMDLLIB
library name library name
Optional
*GENLIB
*SAME
GENLIB *CURLIB NEWGENLIB
library name
library name
*GUIFLR *SAME
GUIFLR NEWGUILIB
folder name library name
*LIBL/ *MDLLIB
*LIBL/ *NEWMDLLIB
*SAME
*NEWLIBLST/
*ALL
*LIBL/
library list name
UPDLIBLST library name/
*SAME
*CRTJBD
*NONE
JOBD
*CURLIB
job description
name
Advantage 2E Modules: *ALL Job: B,I Pgm: B,I
Parameters
MDLLIB
Name of library to contain the design model that is renamed. Must be a model
library. The value for this parameter is as follows:
*CURLIB—(default) Current library invokes job.
NEWMDLLIB
New name for the model library. The value for this parameter is as follows:
*SAME—(default) Do not rename model library.
GENLIB
NEWGENLIB
New name for generation library. The value for this parameter is as follows:
*SAME—(default) Do not rename the generation library.
GUIFLR'
NEWGUIFLR
New name for the shared folder used by Synon/TC to transfer information to
the PC. Values for this parameter are described in the following:
*SAME—(default) Do not rename the Synon/TC shared folder.
folder name—Valid shared folder name.
LIBLST
Qualified name of a library list that is renamed. Values for this parameter are
described in the following:
*MDLLIB—(default) Library list has the same name as the model library.
*NONE—Do not rename the library list.
NEWLIBLST
New name for library list. Values for this parameter are described in the
following:
*NEWMDLLIB—(default) Rename library list to have same name as that
specified by the NEWMDLLIB parameter.
*SAME—Do not rename library list.
UPDLIBLST
Qualified name of library lists that are updated to reflect the new names of the
model and/or generation libraries. Values for this parameter are described in the
following:
*NEWLIBLST/*ALL—(default) All library lists in the library list file of the
library specified by the NEWLIBLST parameter are updated.
*NONE—Do not update any library lists.
JOBD
Job description name in the library given by the MDLLIB parameter whose
initial library list is updated. Values for this parameter are described in the
following:
*CRTJBD—(default) Name is specified by YCRTJBD model value of model
named by MDLLIB parameter.
*NONE—Do not update job description.
*CURLIB—Current library.
Notes
■ You cannot rename a model or a generation library while they are in use.
■ Prior to running the command, all journals and journal receivers must be
removed from each library to be renamed.
■ If specifying a LIBL to be updated, the LIBL must exist at the start of running
the command. If the only LIBL the user wants to update is the one that gets
renamed from LIBLST to NEWLIBLST, the user should enter LIBLIST name
for UPDLIBLST.
Example
Required
*OBJSGT
*ARRAYS *APP
object name
*MESSAGES *ARR
*FIL
*FLD
*FUN
*MSG
*OBJNAM
OBJSGT
object surrogate
*MDLLIB
MDLLIB
model library
name
Optional
Parameters
OBJNAM
The object name of the object whose details are retrieved. This parameter consists
of three elements that together identify a model object. Values for this parameter
are described in the following:
*OBJSGT—(default) Single value indicating that the object surrogate is used to
identify the model object.
object owner name—The character name of the object that owns the object.
Thus, for a function, the owning file would be entered.
object name—The character name of the object.
object type—The object type of the object.
*ACP—Object is of type access path.
*APP—Object is of type application area.
*ARR—Object is of type array.
*CND—Object is of type condition.
*FIL—Object is of type file.
*FLD—Object is of type field.
*FUN—Object is of type function.
*MSG—Object is of type message.
OBJSGT
Unique number identifier of the model object whose details are retrieved. Values
for this parameter are described in the following:
*OBJNAM—(default) Use object name to identify the model object.
object surrogate—The surrogate number of the model object.
MDLLIB
This parameter specifies the data model that is edited. Values for this parameter
are described in the following:
*MDLLIB—(default) The model to be edited is the first one found in the current
job's library list.
model name—The model library name.
RTNOWNNAM
CL variable that receives the name of the owner of the object. If the object has no
owner, then *NONE is returned. Character variable, twenty-five bytes long.
RTNOBJNAM
CL variable that receives the name of the object. Character variable, twenty-five
bytes long.
RTNOBJTYP
CL variable that receives the object type of the object. Character variable, three
bytes long.
TNOWNSGT
CL variable that receives the surrogate key of the owner of the object. Decimal
variable, seven digits packed.
RTNOBJSGT
CL variable that receives the surrogate key of the object. Decimal variable, seven
digits packed.
OBJATR
CL variable that receives the object attribute of the object. Character variable,
three bytes long.
CRTDTE
CL variable that receives the value of the creation date of the object. Character
variable, eight bytes long.
CRTTME
CL variable that receives the value of the creation time of the object. Character
variable, six bytes long.
CHGDTE
CL variable that receives the value of the last change date of the object. Character
variable, eight bytes long.
CHGTME
CL variable that receives the value of the last change time of the object. Character
variable, six bytes long.
CHGUSR
CL variable that receives the name of the user who last changed the object.
Character variable, ten bytes long.
CHGTYP
CL variable that receives the current value of the change type that has occurs for
the object. Character variable, eight bytes long. Values for this parameter are
described in the following:
blank—No changes have occurred to this object since it was last updated for
non-generatable objects or last generated for generatable objects.
*PRIVATE—A private change has been made to the object, such as a change to
the panel design of an interactive function type.
*PUBLIC—A public change has been made to the object, such as a change to the
parameters of a function.
*GEN—A change has been made to the object requiring generation/compilation
of the implementation objects only, such as a change to the source member text.
*OBJ—A change has been made to the object which affects no other objects and
does not require regeneration of any source.
IPCPRC
CL variable that receives the component change processed value for the object.
Character variable, four bytes long.
GENDTE
CL variable that receives the value of the last successful generation date of the
object. Character variable, eight bytes long.
ENTME
CL variable that receives the value of the last successful generation time of the
object. Character variable, six bytes long.
ACTRQD
CL variable that receives the current value of the component change indicator for
the object. Character variable, four bytes long. Values for this parameter are
described in the following:
blank—No components of this object have been changed since it was last edited
for non-generatable objects or last generated for generatable objects.
*EDT—A component of the object has been changed requiring that the object be
revisited and edited to resolve the changes. If this is a generatable object, it must
also be regenerated.
*GEN—A component of the object has changed requiring that this generatable
object be regenerated.
OMPDTE
CL variable that receives the last date that the object or one of its components
was changed. Character variable, eight bytes long.
COMPTME
CL variable that receives the last time that the object or one of its components
was changed. Character variable, six bytes long.
CUROBJ
CL variable that receives the current value of the current object indicator for the
object. Character variable, four bytes long. Values for this parameter are
described in the following:
*YES—This is a current object, which means that it is visible on model panels
and can be used extensively throughout the data model.
*NO—This is not a current object. This means that it is not visible on normal
model panels. It is visible on model object lists and on the Display Versions
panel. This does not necessarily mean that the object is not used.
PRMTYP
CL variable that receives the current value of the promotion type that occurs for
the object.
Character variable, four bytes long. Values for this parameter are described in
the following:
blank—No promotion type set.
*ADD—The object is added to a target environment.
*CHG—The object replaces an existing version of itself in the target
environment.
*GEN—The object is generated from the target environment. The design object is
not promoted.
SNTYP
CL variable that receives the current value of the version type indicator for the
object.
Character variable, four bytes long. Values for this parameter are described in
the following:
blank—The object is not part of a group.
*PRD—This is a production object. There can only be one member of a group
with this status.
*DEV—This is a development version of the object.
*ARC—This is an archive version of the object.
RPSGT
CL variable that receives the current value of the group object surrogate key
number. This value will be zero if the object does not currently belong to a
group.
ARCSEQ
CL variable that receives the current value of the archive sequence number of the
object. This value is only set for archive versions.
ARCSGT
CL variable that receives the current value of the archive surrogate number. This
value is only set for production versions that have an archive version in
existence.
VSNSNC
CL variable that receives the current value of the version synchronized indicator
for the object. This field is intended for use as part of a change control system.
Character variable, four bytes long. Values for this parameter are described in
the following:
*YES—The object is synchronized.
*NO—The object is not synchronized.
MPDTE
CL variable that receives the last import date for the object. This value is set by
the import program when the object is created in the model as part of an import
process from another model or another product. Thus, for example, this date
might represent the date the object was created in the model as part of
processing by the Copy Model Object command (YCPYMDLOBJ).
IMPTME
CL variable that receives the last import time for the object. This value is set by
the import program when the object is created in the model as part of an import
process from another model or another product. Thus, for example, this time
might represent the time the object was created in the model as part of
processing by the Copy Model Object command (YCPYMDLOBJ).
CHKDTE
CL variable that receives the value of the checkout date of the object. Character
variable, eight bytes long.
CHKTME
CL variable that receives the value of the checkout time of the object. Character
variable, six bytes long.
CHKUSR
CL variable that receives the name of the user who last checked out the object.
Character variable, ten bytes long.
CHKLST
CL variable that receives the name of the list on which the object checked out.
Character variable, ten bytes long.
CHKSTS
CL variable that receives the checkout status of the object. Character variable,
seven bytes long.
IMPNAM
ARR—blank
CND—blank
FIL—generation prefix
FLD—DDS name
FUN—source member name, or blank (internal functions)
MSG—message identifier
SEUTYP
CL variable that receives the system SEU type of the object. This value is blank
for non-source based objects. Character variable, ten bytes long.
ASSOJ
Notes
Object data can be retrieved using either the object name or the object surrogate
identifier. Whichever method is used, all return variables contain the
appropriate data.
Example
To find out the date and time that the Customer file was last changed, and who
made that change:
YRTVMDLOBJ OBJNAM( *NONE 'Customer' +
*FIL ) CHGDTE( &CHGDTE ) CHGTME +
( &CHGTME ) CHGUSR( &CHGUSR )
This information could then be used for comparison with the same object (by
name) in another data model.
Required
Optional
Parameters
MDLPRF
The name of the model user profile that is retrieved. The value for this parameter
is as follows:
user profile name—The name of the user profile must be entered.
SSNLST
CL variable that receives the name of the session list for the specified user.
Character variable, ten bytes long.
LOGCHG
CL variable that receives the log changed objects indicator. Character variable,
four bytes long.
COMPCHG
MDLLST
CL variable that receives the name of the model object list that is retrieved when
*MDLPRF is specified on list and other commands. Character variable, ten bytes
long.
VIEWONLY
CL variable that receives the view only indicator. Character variable, four bytes
long.
USROPT
CL variable that receives the name of the user options file. Character variable,
ten bytes long.
USROPTLIB
CL variable that receives the name of the user options file library. Character
variable, ten bytes long.
USROPTMBR
CL variable that receives the name of the user options file member. Character
variable, ten bytes long.
MDLLST
CL variable that receives the name of the model object list that is retrieved when
*MDLPRF is specified on list and other commands. Character variable, ten bytes
long.
NPDFIL
CL variable that receives the name of notepad function owning file. Character
variable, twenty-five bytes long.
NPDFUN
ADESRNMODE
CL variable that receives the default value for the action diagram full screen
mode. Character variable, four bytes long.
JOBLST
CL variable that receives the name of the job list to be defaulted in the Submit
Model Creates command (YSBMMDLCRT). Character variable, ten bytes long.
JOBLSTLIB
CL variable that receives the name of the job list library to be defaulted in the
Submit Model Creates command (YSBMMDLCRT). Character variable, ten bytes
long.
GENLIB
CL variable that receives the name of the generation library to be defaulted in the
Submit Model Creates command (YSBMMDLCRT). Character variable, ten bytes
long.
SRCLIB
CL variable that receives the name of the library where source is placed.
Character variable, ten bytes long.
JOBD
CL variable that receives the name of the job description to be defaulted in the
Submit Model Creates command (YSBMMDLCRT). Character variable, ten bytes
long.
JOBDLIB
CL variable that receives the name of the job description library to be defaulted
in the Submit Model Creates command (YSBMMDLCRT). Character variable, ten
bytes long.
CRTJOBD
CL variable that receives the name of the create job description library to be
defaulted in the Submit Model Creates command (YSBMMDLCRT). Character
variable, ten bytes long.
CRTJOBDLIB
CL variable that receives the name of the create job description library to be
defaulted in the Submit Model Creates command (YSBMMDLCRT). Character
variable, ten bytes long.
SBMGENOPT
CL variable that receives the default value for the submit generation option
parameter on the Submit Model Creates command (YSBMMDLCRT). Character
variable, four bytes long.
SBMCRTOPT
CL variable that receives the default value for the submit compilation option
parameter on the Submit Model Creates command (YSBMMDLCRT). Character
variable, six bytes long.
SRNMODE
CL variable that receives the default value for full screen mode. It is used by the
Edit Model List command (YEDTMDLLST). Character variable, one byte long.
GUIFLR
CL variable that receives the default value for the GUI folder parameter on the
Submit Model Creates command (YSBMMDLCRT). Character variable, sixty-
three bytes long.
Notes
The model profile name must exist prior to running this command.
Example
Required
(1)
YRTVMDLVAL MDLVAL model value name VALUE CL var
Parameters
MDLVAL
See the YCHGMDLVAL (Change Model Value) command in this chapter for
further details about the allowed model values.
VALUE
Notes
■ See the YCHGMDLVAL command section in this chapter for further
information about the role of the various model values.
■ This command can only be executed within a CL program.
Example
Required
*ALL/
*LIBL/ *USRLIBL/
library name/
Optional
*YES *NONE
RMVFLDPFX REFILE
*NO file name
Parameters
FILE
Qualified generic name of physical files whose descriptions are retrieved into the
model. The value for this parameter is as follows:
*ALL—Retrieve all files.
RMVFLDPFX
Specifies whether any action is taken to remove a prefix from the DDS field
names of the fields in the retrieved physical files. Values for this parameter are
described in the following:
*YES—(default) The first two characters of each field name are considered to be
a prefix that is dropped from the name. For example, field name XXCUCD will
be translated to XX+CUCD.
*NO—Do not remove the first two characters from the field names.
REFFILE
Name of file to treat as the field reference file. No file or Has relations are created
for this file but all fields are added to the data dictionary. File should be among
the list of files specified by the FILE parameter. The value for this parameter is as
follows:
*NONE—(default) No file is treated as a field reference file.
Notes
The YRTVPFMDL command retrieves into a model all file and field definitions
not already present in the model. For each named database file, the command
proceeds in the following manner.
■ The OS/400 command Display File Field Description (DSPFFD) is used to
obtain the object's file, format and field definitions.
■ The existing model is examined to determine if a file already exists in the
model with a source member name that is the same as the OS/400 object
name of the file. (The source member names for files are specified with the
Edit Access Path Details display: the name is held on the PHY (Physical)
access path).
If an access path of type PHY with the same member name already exists in
the model, the retrieved file is ignored. If one does not exist, then a new file
is added to the model as follows:
– The text (if any) of the database file is used as the name: for example,
Customer file. If another file already exists with the text, then a number
is appended to the text of the new file name to make it unique. For
example, Customer file 01265. If the file has no text then the OS/400
object name is used as the Synon/2E name.
– The new file has a file type of REF.
– An access path of type Physical (PHY) is defined. The source member
name held for the access path is the OS/400 object name of the retrieved
file.
– The Assimilated file flag on the file details is set to yes.
– A Defined as relation is created for the file.
■ For each field in the database file definition or column in the table definition,
the YRTVPFMDL command proceeds in the following manner:
The existing model is examined to determine if a field already exists in
the model with a DDS name that is the same as that of the retrieved field.
The comparison is done as follows:
– If RMVFLDPFX(*YES) was specified, the field prefix is dropped from the
retrieved DDS field name for purposes of comparison. For example,
JJCUCD is compared with CUCD. The field names, against which the
retrieved field name is compared, are the values (i.e., those shown on the
Edit Field Details and the Display Field References displays).
– If RMVFLDPFX(*NO) was specified, the full DDS name of the retrieved
field is used for the comparison. For example, JJCUCD is compared with
JJCUCD. The field names against which the retrieved field name is
compared are not the values, but rather old field names.
– If the name matches, a further comparison is made between the length
and OS/400 data type (packed, zoned, or alphanumeric) of the retrieved
field and the existing model fields.
– If a field of the correct name and type exists in the model, no new field is
added. If one does not exist, then a new field is added to the model as
follows:
– The text of the retrieved field is used as the name: for instance,
“Customer code”. If another field already exists with the text, then a
number is appended to the text of the new name to make it unique. For
example, Customer code 012654. If the retrieved field has no text, then
the retrieved DDS name is used as the Synon/2E name.
– The new field is given a data type according to the OS/400 data type of
the retrieved field as follows:
– Alter the relation type of files containing fields that are the keys to other
files from Has to Refers to, or Owned by, and change the referenced field
of such relations to be the appropriate referenced Synon/2E file. (Type
over the existing relation using Edit Database Relations display. Also
delete superfluous relations using the D option).
You should also amend the field details in order to specify additional data
types and to add field conditions:
– Change the field attributes of non-key fields to be the appropriate type
(for example, TXT, STS). (Select Z2 to invoke the Edit Field Details
display for the non-key fields, and use F8 to change the attributes).
– Use the Edit Condition Details display to add conditions. Use the Edit
Field Details display to change the field attributes to specify a check
condition.
■ The removing of field prefixes that takes place if RMVFLDPFX(*YES) is
specified is done by a CL program, YRTVPHYR1C, the source of which is
supplied. You may modify this program if you wish. An example would be
if you need to retrieve file descriptions from systems where a convention of
appending a prefix to the end of field names, rather than the beginning, has
been used.
■ The use of the reference file parameter is not related to the Synon field
reference files specified by the model value YFRFVNM.
Example
To retrieve all the physical file descriptions of files whose names begin with “C”
and reside in library QGPL, removing field prefixes from the DDS fields:
YRTVPFMDL FILE(QGPL/C*)
You will probably want to change them to the following set of statements:
Note: For more information about this example, see the YRTVPFMDL command
in this guide.
Optional
*MDLPRF
*MDLPRF/
*USER
*MDLLIB/
YSBMMDLCRT JOBLST *SELECT(1)
*CURLIB/
*WRKSTN
library name/
list name
*MDLPRF
*NO *GENLIB
EDIT GENLIB
*YES (2) *CURLIB
library name
*MDLPRF
*OBJLIB
SRCLIB *GENLIB
*CURLIB
library name
*MDLPRF/
*MDLLIB/ *MDLPRF
library name
*CURRENT
*JOBD
JOBPTY CURLIB *CRTDFT
priority
*USRPRF
*JOBD
INLLIBL
*CURRENT
*WRKSTN
*NONE
MSGQ *USRPRF
*LIBL
message queue name
library name/
*JOBD
*NONE
CRTJOBD
*MDLPRF/
*LIBL/ *MDLPRF
*MDLPRF
*CRTJOBD
CRTJOBD SBMGENOPT *RLS
priority
*HLD
*MDLPRF
*MDLPRF
*GUIFLR
SBMCRTOPT *GENOK GUIFLR
*MDLVAL
*IMMED
folder name
*CHANGE
*USE *NO
AUT REPLACE
*EXCLUDE *YES
*ALL
*FRFVNM *NONE
OLDLIB *OLDLIB
library name
(1) *SELECT and (2) EDIT are valid only in an interative environment.
Parameters
JOBLST
Qualified name of a job list generated by Advantage 2E. Values for this
parameter are described in the following:
*MDLPRF—(default) The value is retrieved from the model profile details
associated with the current user.
*MDLLIB/*USER—Default job list name to user profile name, and store list in
model library.
*WRKSTN—Default the job list name to job name of invoking job.
*SELECT—Display a list of existing lists, one of which may be selected.
EDIT
Edit list option. Values for this parameter are described in the following:
*NO—(default) Do not invoke list edit function.
*YES—Invoke the list edit function before proceeding with compilations.
GENLIB
Library in which to place compiled objects. Values for this parameter are
described in the following:
*MDLPRF—The value is retrieved from the model profile details associated
with the current user.
*GENLIB—Retrieve the name of the generation library from the model value
(YGENLIB).
*CURLIB—Use the current library for invoking the job.
SRCLIB
This parameter specifies the library into which source is generated or which
contains the source for a create object request. Values for this parameter are
described in the following:
*MDLPRF—(default) The value is retrieved from the model profile details
associated with the current user.
*OBJLIB—The library to use is the same one as that specified for the GENLIB
parameter.
*GENLIB—Retrieve the name of the generation library from the model value
(YGENLIB).
*CURLIB—Use current library for invoking job.
library name—The library name for source.
JOBD
Qualified name of job description used when submitting job to carry out source
generation. Values for this parameter are described in the following:
*MDLPRF—(default) The value is retrieved from the model profile details
associated with the current user.
*MDLVAL—Retrieve the name of the job description from the Advantage 2E
model value (YCRTJBD).
JOBPTY
Job scheduling priority; 1 (high) to 9 (low). The value for this parameter is as
follows:
*JOBD—(default) Use priority on job description.
CURLIB
This parameter specifies the current library for the submitted job. Values for this
parameter are described in the following:
*CURRENT—(default) The current value for the current library is used.
*CRTDFT—No current library is specified.
*USRPRF—The current library for the user profile is used.
library name—The current library name.
INLLIBL
Initial library list for submitted jobs. Values for this parameter are described in
the following:
*JOBD—Use library list of job description specified by JOBD parameter.
*CURRENT—Use library list of current job.
MSGQ
CRTJOBD
Qualified name of job description used for compilations. Values for this
parameter are described in the following:
*JOBD—(default) Use the job description specified by the JOBD parameter.
*NONE—No compilations are submitted and no objects are deleted.
CRTJOBPTY
Job scheduling priority for compilations; 1 (high) to 9 (low). The value for this
parameter is as follows:
*CRTJOBD—(default) Use priority on job description specified by CRTJOBD
parameter.
SBMGENOPT
Option to specify whether or not the job containing the functions to be generated
should be released after being submitted. Values for this parameter are described
in the following:
*MDLPRF—(default) The value is retrieved from the model profile details
associated with the current user.
*RLS—Release the job containing functions to be generated immediately.
*HLD—Leave the job containing the functions to be generated as HELD on the
job queue.
SBMCRTOPT
GUIFLR
AUT
REPLACE
FLDREF
Name of field reference file member. If a member of the specified name is found
in the member list, it is compiled before all other source members. Values for this
parameter are described in the following:
*FRFVNM—Retrieve the name of the field reference file from the model value
(YFRFVNM).
*NONE—No field reference file member is compiled.
CPYLIB
Name of library from which to copy data to add to new versions of existing
physical files. Values for this parameter are described in the following:
*NONE—(default) Data is not copied for existing files.
*CPYLIB—Retrieve the name of the data library from the model value
(YCPYLIB).
OLDLIB
Library into which previous versions of physical files are placed. When a new
version of an OS/400 object is created, the old version from the nominated
GENLIB is placed in the given OLDLIB. Any previous old version is deleted.
Values for this parameter are described in the following:
*NONE—(default) Old versions of the physical files are not saved.
*OLDLIB—Retrieve the name of the data library from the model value
(YOLDLIB).
Notes
The job list must already exist. It can be created either from within a model, or by
using the Build Job List (YBLDJOBLST) command.
A single job will be submitted to carry out any source generation. Each
compilation of a source member will normally be submitted as a separate job.
You can specify whether the job is to be submitted immediately, or after the
generation has completed successfully.
For each source member named in a job list, the YSBMMDLCRT command can
invoke up to three different processing steps:
■ Generation of source
■ Compilation of source into an object
■ For physical files only, back copying of data from an existing version of the
file into the newly compiled file
Generation of source
If you have specified that a field dictionary be used; that is, the YFRFVNM
model value is other than *NONE, source for the field reference file will be
regenerated before the compilation list is shown.
Completion messages are returned to the message queue specified by the MSGQ
parameter.
All the elements of a function or an access path (QRY access paths only) must be
generated successfully before compilation is attempted. Thus, if any part fails to
generate, no part will be submitted for compilation if SBMCRTOPT (*GENOK),
or the compilations for all parts will be canceled if SBMCRTOPT(*IMMED).
Physical files that are recompiled will be archived if a value is specified for the
OLDLIB parameter.
Data is copied into physical files that have been recompiled if a value is specified
for the CPYLIB parameter. If CPYLIB is the same as OLDLIB, the
YSBMMDLCRT command copies the original data back into the physical files as
far as possible.
Example
To generate and compile all the source members in your job list and to then
submit the compilations after the generation is complete:
YSBMMDLCRT
The Copy name field stored on the Model Object file is used by the Copy Model
Objects (YCPYMDLOBJ) command to determine object matches between the
source and target models. You can use the Copy name field to force
YCPYMDLOBJ to match Object A in the source model with Object B in the target
model. The YSETCPYNME command allows all objects in the model to be reset
back so that an object's Copy name is equal to its Object name. A report
documents changes made by the program for non-versionable objects and lists
warnings for versionable objects.
Notes
■ For versionable objects (functions and messages), the Copy name of all
members of the group of versions must be the same. This is because all
versions in the group should match with the same object in a target model,
otherwise, the concept of versions does not exist. A copy of any one of the
versions in the group using YCPYMDLOBJ should match with the same
object in the target model.
The Copy name of each versionable object is validated against all other
versions in that object's group. If it differs from any of the other versions a
report notifies you that the group is not set up correctly. To recover, you
must adjust the Copy name of one of the versions with the Change Model
Object Description (YCHGMDLOD) command, which updates all versions
in the group to have the same Copy name.
■ For non-versionable objects, such as access paths, fields, and conditions the
program compares the Copy name with the Object name of the object. If they
differ, the Copy name is set to be equal to the Object name and the update
action is reported.
Example
To check and/or change the copy names associated with model objects
contained in model library HSTMDL:
YSETCPYNME MDLLIB( HSTMDL )
Required
Optional
*MDLLIB
MDLLIB
model library
Parameters
OBJSGT
The object surrogate number of the object from whose group the version is to be
selected.
MDLLIB
The model library name in which the object, identified by the object surrogate
parameter, exists. Values for this parameter are described in the following:
*MDLLIB—(default) The model library is the first such library found in the
library list.
model library—The name of the model library to use.
RTNVAL
The CL variable that receives the object surrogate number of the selected model
object version. The value for this parameter is as follows:
CL variable name—Numeric variable, seven bytes long.
Example
To select a version from the group to which the object identified by object
surrogate number 1102597 belongs:
YSLTVSN OBJSGT( 1102597 )
Required
*MDLLIB
YSNCMDL *CURLIB
model name
Parameters
MDLLIB
The name of the model to be synchronized. Values for this parameter are
described in the following:
*MDLLIB—(default) Special value indicating the model library in the current
library list.
*CURLIB—(default) Special value indicating the current library of the job.
model name—The name of the model to be synchronized.
Notes
Each Advantage 2E file in the model specified is expanded and the model
synchronization flag is set.
Example
Administrators are advised to examine the options of this command and to plan
its use carefully as it may be important to establish the starting position of model
objects correctly.
Required
*MDLLIB
YSTRCHGCTL
model library
name
*CM
CHGCTLLIB
Advantage 2E
CM library
name
*DEV
*PRD
SETVSNTYP
*BYLOCK
*ASSOC
*NO
RMVLCK
*YES
(1)
PRDMDLLIB name of production model
Parameters
MDLLIB
The name of the model library in which change control is to be started. Values
for this parameter are described in the following:
*MDDLIB—(default) Use the first model library in the job's current library list.
model library—The name of the model library to use.
CHGCTLLIB
This parameter specifies the name of the Synon/CM product library installed on
your machine. Values for this parameter are described in the following:
*CM—(default) Use default name (Y2SYCM).
Synon/CM library—Name of Synon/CM library.
SETVSNTYP
This parameter specifies the starting version type for model objects. Values for
this parameter are described in the following:
*DEV—(default) All model objects are initialized to a version type of DEV. This
indicates that the model is a development model.
*PRD—All model objects are initialized to a version type of PRD. This indicates
that the model is a production model.
*BYLOCK—Normally models will consist of a combination of development and
production objects. A common way of differentiating between these two types is
to place a permanent lock on production objects inside the model (lock type
*PERM). This parameter value will examine the lock status of each object. If a
permanent lock exists for an object, the version type for that object is set to *PRD,
otherwise it is set to *DEV.
*ASSOC—Use this value to invoke the Associate Production Model
(YASCPRDMDL) command. You will be prompted to enter the name of the
target production model library. See the PRDMDLLIB parameter below.
RMVLCK
This parameter specifies the action to take for locks within the model. Values for
this parameter are described in the following:
*NO—(default) Model locks are not deleted.
*YES—As part of processing, if a permanent lock is detected for an object, it is
deleted.
PRDMDLLIB
The name of the production model that is to be used for comparing model
objects using the Associate Production Model (YASCPRDMDL) command. See
the command diagram or the online Help for more details relating to this
command.
This parameter is prompted only if *ASSOC is specified for the Set Version Type
parameter (SETVSNTYP). The value for this parameter is as follows:
model library name—The name of the model library. You must specify this
name explicitly.
Notes
Regardless of the value specified for the SETVSNTYP parameter, you can set the
version type in an exit program called YSTRCHGR1C. The interface for this
program is as follows, and the source is shipped in QCLSRC in library Y2SYSRC:
The derived version type is arrived at during processing dependent upon the
value specified for SETVSNTYP. However, if a valid value is returned by the exit
program, it will be used in preference. Developers may take this opportunity to
examine details of the object, identified by its surrogate number key (in an
external database, for example).
Example
To start change control in model library J4DEVMDL, setting all objects to *DEV
and removing any permanent locks:
YSTRCHGCTL SETVSNTYP(*DEV) RMVLCK(*YES )
Optional
*libl/
*Y2MDL/
*SELECT - (*S)
*CURLIB/
library list name
YSTRY2 library name/
*SAME
*SAME
MAIN
MENU DSNR
PRMR
USER
*SELECT
*Y1 - *Y)
menu name
*y2
*s
Parameters
LIBLST
Name of library list used to replace the current job's library list before displaying
the help menus. When you create a model using the command Create Model
Library (YCRTMDLLIB), an appropriate library list to allow you to use the
model is created automatically. By default it will have the same name as the
model. The library list is stored using the Advantage 2E Toolkit library list
facilities. Values for this parameter are described in the following:
*Y2MDL—(default) Advantage 2E model library list name.
*SELECT—Display library lists in the specified library, one of which may be
selected.
*SAME—Do not change the current library list.
MENU
Name of first menu you want to display. Values for this parameter are described
in the following:
MAIN—(default) Display master menu.
Notes
The library list of the job is replaced with the specified list.
Additional library lists can be created using the Synon/1E command Build
Library List (YBLDLIBLST). Existing library lists can be altered using the
Synon/1E command Edit Library List (YEDTLIBLST).
Example
Optional
TABLE
YWRKDSTFIL VIEW
*ALL
Parameters
FILTYP
Type of access path that is subsetted on the Work With Distributed Files panel.
Values for this parameter are described in the following:
TABLE—(default) Subset to show only tables.
VIEW—Subset to show only views.
*ALL—Do not subset. Show all tables and views.
Notes
The command and the associated programs are application objects that form part
of the objects created when the command YDUPAPPOBJ is run.
Example
The work with panel provides a number of options to manipulate a model object
list. For more information on the available options, please refer to the help text
for the panel.
Required
*MDLLIB
YWRKMDLLST MDLLIB
model library
name
*DSNR
USER *PGMR
*USER
Parameters
MDLLIB
The name of the model library in which the lists reside. Values for this parameter
are described in the following:
*MDLLIB—(default) The model library to use is the first library in the current
job's library list.
model library name—The name of the model.
USER
Type of user. Must be one of the following: Values for this parameter are
described in the following:
*DSNR—(default) A designer may change any aspect of the model, including
the database.
*PGMR—A programmer can add or change any functions that are in the model,
but may not alter the relations, files or database fields.
*USER—A user may view all aspects of the model but may not change any
design objects. This class of user is useful to allow the data model to be examined
without the possibility of change.
Notes
A value other than *MDLLIB for MDLLST may result in the library list being
changed. If the user is currently editing a model, the switching of the library list
will not occur and the command will fail. If changed during processing, the
library list is changed back after execution.
Example
To work with model object lists in model library ATSTMDL, enter the following
command:
YWRKMDLLST MDLLIB(ATSTMDL)
Optional
*DSNR
*MDLLIB
Y2 USER *PGMR MDLLIB
model library
*USER name
*MDLLIB/
*DLPRF
*GENLIB/
*USER
*SRCLIB/
JOBLST *WORKSTN
*LIBL/
*SELECT
*CURLIB/
job list name
library name/
*EDTDBREL *MDLPRF
*EDTMDLLST *USER
ENTRY SSNLST
*NONE *SELECT
*MDLPRF
*USER
*MDLVAL
OPNACC MDLLST *ALLOBJ
*NO
*SELECT
Parameters
USER
Type of user. Values for this parameter are described in the following:
*DSNR—(default) A designer can change any aspect of the model, including the
database.
*PGMR—A programmer can add or change any functions that are in the model,
but cannot alter the relations, files or fields.
*USER—A user can view all aspects of the model but cannot change any design
objects. This class of user is useful to allow the data model to be examined
without the possibility of change.
MDLLIB
This parameter specifies the data model that is edited. Values for this parameter
are described in the following:
*MDLLIB—(default) The model to be edited is the first one found in the current
job's library list.
model name—The model library name.
JOBLST
Qualified name of job list that contains the names of source members to be
generated and/or compiled. If the nominated job list does not already exist, it
will be created. Values for this parameter are described in the following:
*MDLPRF—(default) Retrieve the job list name from the model profile details of
the current user.
*USER—The job list name is the same name as the current user.
*WORKSTN—Use device name of current workstation as list name.
*SELECT—Display a list of existing job lists, one of which may be selected.
job list name—The name of the job list can be entered.
*MDLLIB/—The job list library is the first model library found in the library list.
*GENLIB/—Use the generation library specified in the first model found in the
library list.
*SRCLIB/—Use the source library specified on the model profile of the current
user.
*LIBL/—The job list library is the first model found in the library list
*CURLIB/—The model library is found in the current library for the current job.
job list library—The job list library can be entered.
ENTRY
This parameter provides the user with multiple entry points to the specified
model. Values for this parameter are described in the following:
*EDTDBREL—(default) The first panel to be accessed is the Edit Database
Relations panel.
*EDTMDLLST—The mode of entry to the model is via the Edit Model List
panel. If this value is specified, the MDLLST parameter specifies the model list
that is edited.
*SERVICES—The services menu is the first panel to be accessed.
*NONE—This option can be used to establish a model environment but without
any particular entry to the model. In this case the model environment is started
and the developer is presented with the Command Entry panel. Numerous
commands require the model environment to be active and will check to ensure
that it is active when invoked. These commands will adopt an already active
environment. Thus, if a series of commands are run, it will be more efficient to
use this option before executing such commands. Another advantage of this
option is that the lock applied to the model is established for the entire session,
preventing interference by another developer.
SSNLST
This parameter specifies the session list to use while editing the model.
For more information:on the purpose of SSNLST, refer to the Change Model
Profile command (YCHGMDLPRF). Values for this parameter are described in
the following:
*MDLPRF—(default) The session list is retrieved from the model profile details
for the current user.
*USER—The session list has the same name as the current user.
*SELECT—An interactive display is used to select a model object list to be used
as the session list.
model list name—The name of the list can be entered.
OPNACC
This parameter enables the current user to override to *NO (if authorized) the
Open Access model value. The intention with this parameter is to provide a
*DSNR with the opportunity to gain exclusive access to the data model.
For more information:on Open Access, see the Change Model Value command
(YCHGMDLVAL) in this chapter and the “Creating and Managing Your Model”
chapter in the Advantage 2E Administrator Guide. Values for this parameter are
described in the following:
*MDLVAL—(default) Access to the model is controlled by the current model
value for Open Access.
*NO—This value can be used to set the Open Access model value to exclude any
concurrent *DSNR activity in the model and to exclude users of any other class.
MDLLST
The qualified name of the model object list that is edited. Values for this
parameter are described in the following:
*USER—The list to be edited has the same name as the current user.
*ALLOBJ—The all objects list is edited.
*SELECT—Special value indicating that the model object list is selected using an
interactive display function.
Notes
■ The model can either be set up to allow concurrent *DSNRs and
*PGMRs/*USERs into the model by setting the model value YOPNACC to
*YES, or the model value can be left as *NO where either a single *DNSR or
multiple *PGMRs/*USERs can be in the model concurrently.
■ To add and remove permanent locks, or to change the Open Access
(YOPNACC), you must have all rights to the data model. (Designer with
locks capability).
■ To edit a model as a user of type *DSNR, you must have at least all rights
except for existence to the model. Generally the most convenient way to
arrange this is to grant all rights to all the objects in the model library (the
default), and then to control access to the model by granting or revoking
rights to use the data area YMDLLIBRFA in the model library. The
YEDTMDL command checks the user's authority to this data area before
allowing entry to the model.
■ For example, to revoke all rights to user profile IVAN to edit or view a
model MYMDL:
Examples
To edit a model as a programmer, using a list named after the current device
name:
YEDTMDL USER(*PGMR) JOBLST(*WORKSTN)
The purpose of this command is to allow developers to test low level functions
requiring numerous parameters without the need to code layers of intervening
programs which construct those parameters. Values can be supplied for all input
capable fields and can be reused for subsequent invocations.
Required
Optional
QTEMP
*NO
DTALIB *GENLIB CLEAR
*YES
library name
*YES *YES
EDIT OUTPAR
*NO *NO
*NO *CHG
STRCMTCTL LCKLVL
*YES *ALL
*NO
COMMIT
*YES
Parameters
PGM
The name of the program to be called. This is the same as the source member
name of the function in the data model.
DTALIB
The library name in which parameter values are stored. Values for this
parameter are described in the following:
QTEMP—(default) Use temporary library QTEMP to store parameter values.
*GENLIB—The generation library is used to store parameter values.
library name—Another library name can be entered.
CLEAR
Indicates whether the parameter values are cleared before editing or the call to
the program. Values for this parameter are described in the following:
*NO—(default) Existing values for parameters are not cleared.
*YES—Parameter values are cleared.
EDIT
Indicates whether the developer wishes to edit the parameters prior to the call.
Values for this parameter are described in the following:
*YES—(default) Parameter entries are edited.
*NO—Parameters are not edited prior to the call.
OUTPAR
STRCMTCTL
This parameter specifies whether commitment control is started before the call.
This may be necessary for a function that normally would operate as a *SLAVE.
Values for this parameter are described in the following:
*NO—(default) Commitment control is not started.
*YES—Commitment control is started prior to the call.
COMMIT
Indicates whether a commit is executed following the call. This parameter is only
shown if *YES is specified for the STRCMTCTL parameter. Values for this
parameter are described in the following:
*NO—(default) A commit is not issued.
*YES—A commit is issued following the call.
LCKLVL
The level of locking to be applied when performing I/O. This parameter is only
shown if *YES is specified for the STRCMTCTL parameter. Values for this
parameter are described in the following:
*CHG—(default) Only changed records are locked.
*ALL—All records read on update access paths are locked.
Notes
■ If the program name exists in the model, the parameters defined for the
function are displayed if EDIT(*YES) is specified.
■ The program object must exist prior to the call.
■ If parameter values are not defined prior to the call, character parameters
will default to blanks and numeric parameters to zero.
■ If commitment control is started as part of the processing, it is also ended
before the command processing programs return.
■ Users should ensure that parameter details are defined correctly in the
model. This is especially true of Execute User Program functions
(EXCUSRPGM), particularly when they are the first program from a menu
option, when it is not necessary to define parameters in the model at all.
Example
To call the model function Prc Allocate Stock Item, clearing any existing
parameter values and to edit the parameters:
Y2CALL PGM(UUAKEXR) CLEAR(*YES) EDIT(*YES)
Upgrade Commands
YAPYMDLCHG—Apply Model Changes
YAPYSYSMDL—Apply Model System Objects Changes
Edit Commands
YEDTMDL—Enter/Edit a Model
YEDTMDLLST—Edit Model Object List
YEDTMDLPRF—Edit Model Profile
YSTRY2—Start Advantage 2E
Y2—Edit Model
Document Commands
YDOCMDLACP—Document Model Access Paths
YDOCMDLAPP—Document Model Application Areas
YDOCMDLF—Document Model Files
YDOCMDLFLD—Document Model Fields
YDOCMDLFUN—Document Model Functions
YDOCMDLLST—Document a Model Object List
YDOCMDLMSG—Document Model Messages
YDOCMDLREL—Document Model Relations
YDOCURF—Document Unreferenced Objects
Copy Commands
YCPYMDL—Copy a Model
YCPYMDLLST—Copy Model Object List
YCPYMDLOBJ—Copy Model Objects
YEDTCPYLST—Edit a Model Object List for Copy
Miscellaneous Commands
YAPYCMPCHG—Apply Component Changes
YCHKMDL—Check Model
YCHKDTAMDL—Check Data Model
YCHKFUNACT—Check Function Action Diagram
YCVTDSTFIL—Convert Distributed Files
YCVTMDLPNL—Convert Model Panels to Prototypes
YCVTTMUIM—Convert Help Text to UIM
YDSPMDLREF—Display Model References
YDSPMDLUSG—Display Model Usages
YEDTNXTMNC—Edit Next Autoname Type Mnemonic
YSETCPYNME—Set Model Object Copy Name
YWRKDSTFIL—Work Distributed Files
Y2CALL—Call a Program
Index–1
company name, 4-37 CRTPF OS/400 command, 4-43
Compare Model Objects (YCMPMDLOBJ), 4-4 CRTSRCPF OS/400 command, 4-43
component change processing, 3-5 CUATEXT, 3-46
impact analysis, 3-5
condition values
converting, 4-53 D
Convert a Job List to Advantage 2E 400 Toolkit Object
List data model
(YCVTJOBLST), 4-56 integrity of, 3-64, 3-70
Index–3
M model text (YMDLTXT), 4-37
null update suppression (YNLLUPD), 3-44
prompting (F4), 3-48
member name prefix (YOBJPFX)
share function subroutines (YSHRSBR), 3-44
copying objects, 4-27
SQL locking (YSQLLCK), 3-44
YCRTMDLLIB command, 4-38
SQL naming (YSQLVNM), 3-44
message file name (YMSGVNM) SQL naming length (YSQLLEN), 3-44
YCRTMDLLIB command, 4-40 SQL Where clause (YSQLWHR), 3-44
YCVTMDLMSG command, 4-65 subfile end (YSFLEND), 3-44, 3-46
suppress aid keys (YGUIAKY), 3-43
message file names, 4-65 suppress list options (YGUILSO), 3-43
defaults, 4-40
message id prefix (YMSGPFX)
copying objects, 4-27 N
YCRTMDLLIB command, 4-38
message identifiers National Language library
copying objects, 4-28 YAPYTRNMDL command, 3-9
YCRTMDLLIB command, 4-41, 4-43
model data level, 3-9
model language (YMDLLNG)
YAPYTRNMDL command, 3-11 O
model library (YMDLLIB)
YCRTMDLLIB command, 4-36 object
YCVTMDLMSG command, 4-64 YDSPMDLOD command, 5-27
model messages old library (YOLDLIB)
converting, 4-64 YSBMMDLCRT command, 6-37
model object description Operate on a Model Object List (YOPRMDLLST), 5-87
YDSPMDLOD command, 5-27
OS/400 DBF files
model objects retrieving, 6-26
dependencies between, 5-29, 5-39
description, 5-27
generating, 4-32
references of, 5-29
P
usages of, 5-39
prompting (F4), 3-48
model values
changing, 3-41 prototyping
company text (YCMPTXT), 4-37 converting screen designs, 4-65
CUA prompt (YCUAPMT), 3-48
database access method (YDBFACC), 3-42
F4 prompting, 3-48 Q
generate GUI by default (YGENGUI), 3-43
GUI command key descriptor text (YGUICMD),
QGPL library
3-43
library list, 4-42
GUI display command keys per tab (YGUITKY),
3-43 QTEMP library
GUI help language (YGUIHLP), 3-43 library list, 4-42
GUI library partitioning (YGUILIB), 3-43
GUI objects folder (YGUIFLR), 3-43
GUI prefix/text operator (YGUIOPR), 3-43
GUI subfile select text (YGUISEL), 3-43
Index–5
Y YGENLIB generation library
YSBMMDLCRT command, 6-33
Y2CALL (Call a Program), 6-54 YHLLGEN (HLL to generate)
YCRTMDLLIB command, 4-39
Y2CFGTR program
YWRKDSTFIL command, 6-48 YHLLVNM (HLL naming convention)
YCRTMDLLIB command, 4-39
Y2DSTFR program
YCVTMDLVNM command, 4-69
YWRKDSTFIL command, 6-48
YMDLLIB (model library)
Y2MSG message file
YCRTMDLLIB command, 4-36
YCPYMDLOBJ command, 4-24
YCVTMDLMSG command, 4-64
YALCVNM (automatic name allocation)
YMDLLNG (model language)
copying objects, 4-27
YAPYTRNMDL command, 3-11
YAPYSYSMDL, 3-8
YMDLLVLRFA data area, 3-7
YBLDLIBLST (Build Library List), 6-47
YMDLLVLSYA data area, 3-7
Synon/1E Reference, 6-47
YMDLNBRRFA data area[YMDLNBRRFA data area],
YBLDMDLLST (Build a Model Object List), 3-16
3-9
YCPYLIB (copy library)
YMDLNBRSYA data area[YMDLNBRSYA data area],
YSBMMDLCRT command, 6-36
3-9
YCPYLIB model value
YMSGPFX (message id prefix)
YSBMMDLCRT, 6-37
copying objects, 4-27
YCRTDSNF, 4-68 YCRTMDLLIB command, 4-38
Synon/1E Reference, 4-68
YMSGVNM (message file name)
YCRTJBD (job description) YCRTMDLLIB command, 4-40
YCRTMDLLIB command, 4-42 YCVTMDLMSG command, 4-65
YRNMMDL command, 6-9, 6-26
YOBJPFX (member name prefix)
YSBMMDLCRT command, 6-33
copying objects, 4-27
YDSPPNL (Display Panel), 4-68 YCRTMDLLIB command, 4-38
Synon/1E Reference, 4-68
YOLDLIB (old library)
YEDTLIBLST (Edit Library List), 6-47 YSBMMDLCRT command, 6-37
Synon/1E Reference, 6-47
YRTVPFMDL, 6-25
YFRFVNM (field reference file name)
YRTVPHYR1C Shipped program[YRTVPHYR1C
YSBMMDLCRT command, 6-36
Shipped program], 6-29
YGENLIB (generation library)
YSYSHLL (default HLL)
YCRTMDLLIB command, 4-37
YCRTMDLLIB command, 4-39
YCVTCNDVAL command, 4-54
YCVTMDLMSG command, 4-64 YVLSPFX (value list prefix)
YDUPAPPOBJ command, 5-51 YCRTMDLLIB command, 4-38
YRNMMDL command, 6-8 YCVTCNDVAL command, 4-54