Difference between revisions of "H-Spec Keywords"

From MidrangeWiki
Jump to: navigation, search
Line 5: Line 5:
  
 
=== ACTGRP(*NEW | *CALLER | ’activation-group-name’) ===
 
=== ACTGRP(*NEW | *CALLER | ’activation-group-name’) ===
The ACTGRP keyword allows you to specify the activation group the program is associated with when it is called. If ACTGRP(*NEW) is specified, then the program is activated into a new activation group. If ACTGRP(*CALLER) is specified, then the program is activated into the caller’s activation group. If an activation-group-name is specified, then that name is used when this program is called.
 
  
If the ACTGRP keyword is not specified, then the value specified on the command is used.
 
  
The ACTGRP keyword is valid only if the CRTBNDRPG command is used. You cannot use the ACTGRP or BNDDIR keywords when creating a program with DFTACTGRP(*YES).
+
=== ALTSEQ{(*NONE | *SRC | *EXT)} ===
 +
 
 +
 
 +
=== ALWNULL(*NO | *INPUTONLY | *USRCTL) ===
 +
 
 +
 
 +
=== AUT(*LIBRCRTAUT | *ALL | *CHANGE | *USE | *EXCLUDE | ’authorization-list-name’) ===
 +
 
 +
 
 +
=== BNDDIR(’binding-directory-name’ {:’binding-directory-name’...}) ===
 +
 
 +
 
 +
=== CCSID(*GRAPH : parameter | *UCS2 : number | *CHAR : *JOBRUN) ===
 +
 
 +
 
 +
=== COPYNEST(number) ===
 +
 
 +
 
 +
=== COPYRIGHT(’copyright string’) ===
 +
 
 +
 
 +
=== CURSYM(’sym’) ===
 +
 
 +
 
 +
=== CVTOPT(*{NO}DATETIME *{NO}GRAPHIC *{NO}VARCHAR *{NO}VARGRAPHIC) ===
 +
 
 +
 
 +
=== DATEDIT(fmt{separator}) ===
 +
 
 +
 
 +
=== DATFMT(fmt{separator}) ===
 +
 
 +
 
 +
=== DEBUG{(*NO | *YES)} ===
 +
 
 +
 
 +
=== DECEDIT(*JOBRUN | ’value’) ===
 +
 
 +
 
 +
=== DECPREC(30|31|63) ===
 +
 
 +
 
 +
=== DFTACTGRP(*YES | *NO) ===
 +
 
 +
 
 +
=== DFTNAME(rpg_name) ===
 +
 
 +
 
 +
=== ENBPFRCOL(*PEP | *ENTRYEXIT | *FULL) ===
 +
 
 +
 
 +
=== EXPROPTS(*MAXDIGITS | *RESDECPOS) ===
 +
 
 +
 
 +
=== EXTBININT{(*NO | *YES)} ===
 +
 
 +
 
 +
=== FIXNBR(*{NO}ZONED *{NO}INPUTPACKED) ===
 +
 
 +
 
 +
=== FLTDIV{(*NO | *YES)} ===
 +
 
 +
 
 +
=== FORMSALIGN{(*NO | *YES)} ===
 +
 
 +
 
 +
=== FTRANS{(*NONE | *SRC)} ===
 +
 
 +
 
 +
=== GENLVL(number) ===
 +
 
 +
 
 +
=== INDENT(*NONE | ’character-value’) ===
 +
 
 +
 
 +
=== INTPREC(10 | 20) ===
  
'' '''Note:''' The name of the activation group created when the program is called will have exactly the same case as the text entered for the activation-group-name. The RCLACTGRP command does not allow lower-case text to be specified for its ACTGRP parameter. If it is required to reclaim an activation group individually using the RCLACTGRP command then do not enter lower-case case text for the activation-group-name.''
 
  
=== ALTSEQ{(*NONE | *SRC | *EXT)} ===  
+
=== LANGID(*JOBRUN | *JOB | ’language-identifier’) ===
The ALTSEQ keyword indicates whether an alternate collating sequence is used, if so, whether it is internal or external to the source. The following list shows what happens for the different possible keyword and parameter combinations.
+
 
 +
 
 +
=== NOMAIN ===
 +
 
 +
 
 +
=== OPENOPT (*NOINZOFL | *INZOFL) ===
 +
 
 +
 
 +
=== OPTIMIZE(*NONE | *BASIC | *FULL) ===
 +
 
 +
 
 +
=== OPTION(*{NO}XREF *{NO}GEN *{NO}SECLVL *{NO}SHOWCPY *{NO}EXPDDS *{NO}EXT *{NO}SHOWSKP) *{NO}SRCSTMT) *{NO}DEBUGIO) ===
 +
 
 +
 
 +
=== PRFDTA(*NOCOL | *COL) ===
 +
 
 +
 
 +
=== SRTSEQ(*HEX | *JOB | *JOBRUN | *LANGIDUNQ | *LANGIDSHR | ’sort-table-name’) ===
 +
 
 +
 
 +
=== TEXT(*SRCMBRTXT | *BLANK | ’description’) ===
  
* Keyword/Parameter
 
** Collating Sequence Used
 
* ALTSEQ not specified
 
** Normal collating sequence
 
* ALTSEQ(*NONE)
 
** Normal collating sequence
 
* ALTSEQ, no parameters
 
** Alternate collating sequence specified in source
 
* ALTSEQ(*SRC)
 
** Alternate collating sequence specified in source
 
* ALTSEQ(*EXT)
 
** Alternate collating sequence specified by the SRTSEQ and LANGID command parameters or keywords.
 
  
If ALTSEQ is not specified or specified with *NONE or *EXT, an alternate collating sequence table must not be specified in the program.
+
=== THREAD(*SERIALIZE) ===
  
=== ALWNULL(*NO | *INPUTONLY | *USRCTL) ===
 
The ALWNULL keyword specifies how you will use records containing null-capable fields from externally described database files.
 
  
If ALWNULL(*NO) is specified, then you cannot process records with null-value fields from externally described files. If you attempt to retrieve a record containing null values, no data in the record will be accessible and a data-mapping error will occur.
+
=== TIMFMT(fmt{separator}) ===
  
If ALWNULL(*INPUTONLY) is specified, then you can successfully read records with null-capable fields containing null values from externally described input-only database files. When a record containing null values is retrieved, no data-mapping errors will occur and the database default values are placed into any fields that contain null values. However, you cannot do any of the following:
 
* Use null-capable key fields
 
* Create or update records containing null-capable fields
 
* Determine whether a null-capable field is actually null while the program is running
 
* Set a null-capable field to be null.
 
  
If ALWNULL(*USRCTL) is specified, then you can read, write, and update records with null values from externally described database files. Records with null keys can be retrieved using keyed operations. You can determine whether a null-capable field is actually null, and you can set a null-capable field to be null for output or update. You are responsible for ensuring that fields containing null values are used correctly.
+
=== TRUNCNBR(*YES | *NO) ===
  
If the ALWNULL keyword is not specified, then the value specified on the command is used.
 
  
For more information, see “Database Null Value Support” on page 209
+
=== USRPRF(*USER | *OWNER) ===

Revision as of 18:58, 29 November 2005

Information via Websphere Development Studio: ILE RPG Reference (PDF) starting on page 245.

Contents

Control Specification Statement

ACTGRP(*NEW | *CALLER | ’activation-group-name’)

ALTSEQ{(*NONE | *SRC | *EXT)}

ALWNULL(*NO | *INPUTONLY | *USRCTL)

AUT(*LIBRCRTAUT | *ALL | *CHANGE | *USE | *EXCLUDE | ’authorization-list-name’)

BNDDIR(’binding-directory-name’ {:’binding-directory-name’...})

CCSID(*GRAPH : parameter | *UCS2 : number | *CHAR : *JOBRUN)

COPYNEST(number)

COPYRIGHT(’copyright string’)

CURSYM(’sym’)

CVTOPT(*{NO}DATETIME *{NO}GRAPHIC *{NO}VARCHAR *{NO}VARGRAPHIC)

DATEDIT(fmt{separator})

DATFMT(fmt{separator})

DEBUG{(*NO | *YES)}

DECEDIT(*JOBRUN | ’value’)

DECPREC(30|31|63)

DFTACTGRP(*YES | *NO)

DFTNAME(rpg_name)

ENBPFRCOL(*PEP | *ENTRYEXIT | *FULL)

EXPROPTS(*MAXDIGITS | *RESDECPOS)

EXTBININT{(*NO | *YES)}

FIXNBR(*{NO}ZONED *{NO}INPUTPACKED)

FLTDIV{(*NO | *YES)}

FORMSALIGN{(*NO | *YES)}

FTRANS{(*NONE | *SRC)}

GENLVL(number)

INDENT(*NONE | ’character-value’)

INTPREC(10 | 20)

LANGID(*JOBRUN | *JOB | ’language-identifier’)

NOMAIN

OPENOPT (*NOINZOFL | *INZOFL)

OPTIMIZE(*NONE | *BASIC | *FULL)

OPTION(*{NO}XREF *{NO}GEN *{NO}SECLVL *{NO}SHOWCPY *{NO}EXPDDS *{NO}EXT *{NO}SHOWSKP) *{NO}SRCSTMT) *{NO}DEBUGIO)

PRFDTA(*NOCOL | *COL)

SRTSEQ(*HEX | *JOB | *JOBRUN | *LANGIDUNQ | *LANGIDSHR | ’sort-table-name’)

TEXT(*SRCMBRTXT | *BLANK | ’description’)

THREAD(*SERIALIZE)

TIMFMT(fmt{separator})

TRUNCNBR(*YES | *NO)

USRPRF(*USER | *OWNER)