Previous Topic: For VSAM FilesNext Topic: Displaying or Printing an Index of Dataview Definitions


Dataview Field Display

The remaining components of the formatted dataview definition display are as follows:

Type (Type)

I (Internal Type)

Ch/Dg (Characters/digits)

X

 

42

X

 

16

N

P

7

N

Z

10.3

D

P

5 (not valid for SQL access)

In the above example, 42 in the Ch/Dg column for the first alphanumeric field (Type X) indicates a length of 42 characters; and 16 for the next alphanumeric field indicates a length of 16 characters. A numeric field (Type N) with 7 specified in the Ch/Dg column indicates a seven‑digit field able to hold seven integer places. Since the internal type is P (packed), the actual size of the field is four bytes ((7 1)/2 = 4). The next numeric field, with 10.3 specified in the Ch/Dg column, indicates a 13‑digit field able to hold ten integer places and three decimal places. Since the internal type is Z (zoned), the actual size of the field is 13 bytes. A date field (Type D) with 5 specified in the Ch/Dg column can hold an internal 5‑integer date value of up to 273 years from the base year.

SQL numeric fields display as follows:

 

T (Type)

I (Internal Type)

Ch/Dg (Characters/digits)

INTEGER fields

N

B

9

SMALLINT fields

N

B

4

DECIMAL fields

N

P

actual length

NUMERIC fields

N

Z

actual length

SQL date and time fields display with a comment and the following attributes:

 

T (Type)

Ch/Dg (Characters/digits)

DATE fields

X

10

TIME fields

X

8

TIMESTAMP fields

X

26

A field with an unsupported data type displays as type X and a warning message is issued.

Printing a Dataview Definition

Use the PRINT command or the PRINT prompter to print a specific dataview definition. To display the PRINT prompter (as it applies to dataview definitions), select option 7 on the Dataview Menu. The following screen contains an example of the PRINT prompt screen.

=> IDEAL: PRINT OCCURRENCE DVW SYS: DOC PROMPTER PRINT DVW ________________________________ VERSION PROD (1) (2) (3) DEST LIB _____________________________________________________________ (4) (5) COPIES 1 NAME ________ DISP REL DESC ________________________________ (6) (7) (8) (9) ----------------------------------------------------------------------------- (1) DVW = Dataview PNL = Panel (2) Name (3) nnn (4) Destination: MEM = Member RPT = Report PROD LIB=Output library

OUT = Ouput SYS = System LAST SYS=System printer

PGM = Program USR = User NET=Network printer

PLA = Plan MAI=Mail

(5) Destination name (6) # Copies (7) Name of output

(8) Disposition: REL = Release, KEE = Keep, HOL = Hold

(9) Description (must be in quotes!)

The PRINT DATAVIEW command has the following format:

      {    *                   }
PRINT {DATAVIEW dvw‑identifier }
      {                        }
   
      [            {MAIL 'email‑id'            }]
      [DESTINATION {LIB                        }]
      [            { {SYS }                    }]
      [            { {NET } dest‑id [COPIES nn]}]

      [NAME print‑output]

      [            {KEEP    }]
      [DISPOSITION {RELEASE }]
      [            {HOLD    }]

      [DESCRIPTION 'string']

* Represents the current dataview and can be substituted for the dataview identification phrase.

dvw‑identifier

Identifies the name of the dataview. The dvwidentifier includes different parts, depending on the type of dataview to identify:

For SQL dataviews Specify the dvw‑identifier as:

authid.dvw‑name

authid (SQL only)-The one‑ to eight‑character authorization ID required for SQL dataviews only.

dvwnam-The 1‑ to 18‑character name of the dataview.

For CA Datacom/DB native access, sequential, and VSAM dataviews Specify the dvwidentifier as:

dvwname [VERSION ver]

dvwname-The 1‑ to 18‑character name of the dataview.

ver-The version of the dataview. The specified version must be in test or production status. If you specify dvw‑name and you omit the version clause, the default version specified in the SET VERSION command is used. Valid versions are:

Tnnn-The version number of a test dataview modeled in the dictionary (CA Datacom/DB native command access and modeled sequential files only).

T-Represents test status

nnn-The one‑ to three‑digit version number assigned to a production dataview or an unmodeled dataview in test or production status.

PROD-The production status version of the dataview.

Note: Unmodeled dataviews created before CA Ideal r2.2 are recognized as version 1, PROD status.

DESTINATION clause

Specifies the output destination.

MAIL 'emailid'-A delimited 1 to 60 character name of a CA‑ eMail destination.

LIBRARY-The output library.

SYSTEM destid-A system printer name.

NETWORK destid-A network printer.

COPIES nn

Specifies the number of copies to print on a system or network printer.

Note: This clause is ignored in batch. For a VSE system printer, this clause is ignored both online and in batch.

NAME print‑output

Specifies the name assigned to the output if the destination is to the output library.

DISPOSITION

When the destination of an online print request is a system or network printer, the output is placed in the output library, and the DISPOSITION clause has the following effects:

KEEP-The job prints and a copy of the output is retained in the output library.

RELEASE-The job prints and no copy of the output is retained in the output library.

HOLD-The output is held until released.

When a print request is issued in batch and the destination is a system printer, the output is printed on the system printer and no copy is retained in the output library.

When a print request is issued (online or in batch) and the destination is the output library, output is placed in the output library for browsing at the terminal.

For more information about output disposition, see the Working in the Environment Guide.

DESCRIPTION 'string'

A 1‑ to 32‑character description of the output, enclosed in delimiters. For a description of valid string delimiters, see the Command Reference Guide.

For more information about CA Ideal PRINT command, see the Command Reference Guide.