In this section: |
The APP commands in this section provide management options for applications and their component files.
How to: |
In general, the APP CREATE command creates an application under the approot location. The exception is a PDS deployment on a Unified Server, where an application is a physical entity and each of its component file types is stored in a separate PDS.
The APP CREATE command can create any number of applications with one command.
APP CREATE appname1 [appname2] [appname3][[-] [appnamen ...]]
where:
Are application names. The application name can be up to 64 characters.
The application name may not contain spaces. If the name contains spaces, each section is understood to be a separate application. If you require a name with spaces, you must create it using another mechanism, such as the Windows Explorer. You can then use the APP MAP command to add it to APPROOT.
If you need to specify more application names than can fit on one line, add the continuation character (-) at the end of the first line, and code more application names on the next line.
The word HOLD cannot be used as an application name.
If you are working on a Unified Server in PDS deployment, you can change the default characteristics of individual component file types by issuing a DYNAM SET APP command. This command controls the types of component files that are generated for the application when an APP CREATE command is issued. By default, all component file types are generated.
The syntax is
DYNAM SET APP FOR filetype [SKIP/CREATE] [POSTFIX aaa.bbb] [parms]
where:
Are the component types that may be affected by this command: FOCEXEC, MASTER, ACCESS, HTML, GIF, FOCSTYLE, MAINTAIN, WINFORMS, ETG. You must issue a separate command for each component type you wish to affect.
Indicates that the designated file type should not be created when the APP CREATE command is issued.
Creates the designated file type when the APP CREATE command is issued. This is the default setting.
Specifies the lower-level qualifier of the DSN (data set name) for the component type. The APPROOT value is used to complete the full DSN, which is expressed as
approotvalue.appname.component_type
The default value for component_type is:
filetype.DATA
Are the allocation parameters you can set. The default parameter values are:
Filetype | Parms |
---|---|
FOCEXEC | RECFM VB TRKS LRECL 4096 BLKSIZE 27998 SPACE 50 50 DIR 50 |
MASTER | RECFM VB TRKS LRECL 80 BLKSIZE 22000 SPACE 50 50 DIR 50 |
ACCESS | RECFM VB TRKS LRECL 80 BLKSIZE 22000 SPACE 50 50 DIR 50 |
HTML | RECFM VB TRKS LRECL 4096 BLKSIZE 27998 SPACE 50 50 DIR 50 |
GIF | RECFM VB TRKS LRECL 4096 BLKSIZE 27998 SPACE 50 50 DIR 50 The GIF filetype creates libraries for GIF and JPG files. |
FOCSTYLE | RECFM VB TRKS LRECL 1024 BLKSIZE 27648 SPACE 50 50 DIR 50 |
MAINTAIN | RECFM VB TRKS LRECL 4096 BLKSIZE 27998 SPACE 50 50 DIR 50 |
WINFORM | RECFM VB TRKS LRECL 4096 BLKSIZE 27998 SPACE 50 50 DIR 50 |
ETG | RECFM VB TRKS LRECL 80 BLKSIZE 22000 SPACE 50 50 DIR 50 |
The following command indicates that GIF files should not be created when the APP CREATE command is issued.
DYNAM SET APP FOR GIF SKIP
The following command indicates that Procedures (FOCEXECs) should be created when APP CREATE is issued.
DYNAM SET APP FOR FOCEXEC TRKS SP 10 20 DIR 30
How to: |
The APP COPY command copies the entire contents of one application to another. The target application must already exist.
How to: |
The APP COPYF command copies a single component from one application to another.
Note that if you copy the component manually, you can, optionally, rename it in the process.
APP COPYF appname1 filename1 filetype1 appname2 filename2 filetype2
where:
Is the application that contains the component to be copied.
Is the component to be copied.
Is the file type of the component to be copied.
Is application to which the named component is being copied.
Is the component in the second application, after the copy process.
Is the component type in the second application, after the copy process.
For a full list of the types of files you can copy with APP commands, see Designating File Types for APP Commands.
How to: |
The APP MOVEF command moves a single component from one application to another.
Note that if you move the component manually, you can, optionally, rename it in the process.
APP MOVEF appname1 filename1 filetype1 appname2 filename2 filetype2
where:
Is the application name of the component being moved.
Is the component name to be moved.
Is the file type of component to be moved.
Is the application name to which the component of the first application is being moved.
Is the component name, in the second application, after the move process.
Is the component type, in the second application, after the move process.
For a full list of the types of files you can copy with APP commands, see Designating File Types for APP Commands.
How to: |
The APP DELETE command deletes an application under approot.
APP DELETE appname1 [appname2] [appname3][[-] [appnamen ...]]
where:
Are application names. If you need to specify more application names than can fit on one line, add the continuation character (-) at the end of the first line, and code more application names on the next line.
How to: |
The APP DELETEF command deletes a component in an application.
APP DELETEF appname filename filetype
where:
Is the application from which the component is being deleted.
Is the component to be deleted.
Is the component type of the file to be deleted.
For a full list of the types of files you can copy with APP commands, see Designating File Types for APP Commands.
How to: |
The APP RENAME command renames an existing application.
Note: You cannot rename an application if it is active in the search path.
APP RENAME appname1 appname2
where:
Is the application name to be renamed.
Is the new application name of up to 64 characters.
The following shows APP1 being renamed to APP2.
APP RENAME APP1 APP2
How to: |
The APP RENAMEF command renames a single component in an application.
APP RENAMEF appname filename1 filename2 filetype
where:
Is the name of the application that contains the component being renamed.
Is the component to be renamed.
Is the new name for the component. The component name may be up to 64 characters and must not already exist since APP RENAME will not overwrite an existing name.
Is the component type of the file name to be renamed.
For a full list of the types of files you can copy with APP commands, see Designating File Types for APP Commands.
Reference: |
The APP COPYF, APP MOVEF, APP DELETEF, and APP RENAMEF commands enable you to perform their actions on a wide variety of file types.
The following is a comprehensive list of the file types you can use with APP commands and the file extensions associated with the on-disk names for hierarchical file systems.
Note that the file types must be coded in uppercase in any APP command the requires it.
Note: This list reflects file types supported across all IBI products and release levels. Particular file types may not be supported in particular releases or with every product.
File Type |
File Extension |
---|---|
MASTER |
.mas |
FOCSQL |
.acx |
OMI |
.omi |
HLI |
.hli |
FOCEXEC |
.fex |
EDAPROF |
.prf |
MNTPAINT |
.mpt |
EDANLS |
.nls |
ERRORS |
.err |
MAINTAIN |
.mnt |
WINFORMS |
.wfm |
FOCCOMP |
.fcm |
FOCSTYLE |
.sty |
FOCFTMAP |
.fmp |
AFM |
.afm |
HTML |
.htm |
TXT |
.txt |
PS |
.ps |
GIF |
.gif |
TDL |
.tdl |
BMP |
.bmp |
EXCEL |
.xls |
ADR |
.adr |
BST |
.bst |
EPS |
.eps |
|
|
XHT |
.xht |
XML |
.xml |
XSL |
.xsl |
TABS |
.txt |
SMARTLIB |
.knb |
FOCUS |
.foc |
IBICPG |
.sl |
TTEDIT |
.tte |
FOCTEMP |
.ftm |
DATA |
.dat |
TRF |
.trf |
FMU |
.fmu |
DDS |
.DDS |
FOCDEF |
.def |
PFA |
.pfa |
FOCPSB |
.psb |
PFB |
.pfb |
CONTROL |
.ctl |
LSN |
.lsn |
DTD |
.dtd |
ETL |
.etl |
EDAPRFU |
.prf |
ETG |
.etg |
XSD |
.xsd |
WSDL |
.wsd |
JPG |
.jpg |
SVG |
.svg |
PNG |
.png |
EDAPSB |
.psb |
MHT |
.mht |
SQL |
.sql |
JS |
.js |
CSS |
.ccc |
MDB |
.mdb |
WebFOCUS |