Sie sind auf Seite 1von 6

DATABASE

PF (Physical File)

LF (Logical File)

Source Physical File

Data Physical File

LF
(Simple Logical File)

MLF
(Multi Format Logical File)

JLF
(Join Logical File)

PF-SRC

PF-DTA

Attribut e Object Type

LF

LF

LF

*File

*File

*File

*File

*File

2/26/13

Step Ahead

11

Physical File
Defn: - PF is a physical file which contains the actual data
Points to be Remembered: CRTPF Command is used for creating the object of physical file Its object type is * File Its attribute is PF-DTA It contains only 1 record format Maximum length of the record format is 32,766 Maximum fields specified are 8,000 Maximum key fields specified are 120 Maximum length of the key field is 2,000 Bytes Maximum member we can create are 32,767 NOTE: - Only 1 member is created while creating the physical file

2/26/13

Step Ahead

22

Commands related to Physical File


CRTPF - To create the object of the data physical file CRTSRCPF To create the object of the source physical file CHGPF - To partially compile the physical file UPDDTA - To Update the data in physical file RUNQRY - To see the data of Physical file DSPFD - To see the description of the file DSPFFD - To see the file field description DSPDBR - To see the dependent logical file on the physical file DLTF - To delete all file type of the objects ADDPFM - To give the name the to the physical file member DSPPFM - To see the data of a particular member RNMM - To rename the name of the member INZPFM - To initialize the physical file member with (default or deleted) records RGZPFM- To compress the deleted records space of the physical file member
(Key field sequence is ignored) RMVM - To remove the content of the member

2/26/13

Step Ahead

33

Data Types used in Physical File


A S P T Z L - Specify Alpha Numeric (Both character & numeric) Data - Specify Zoned Decimal Data - Specify Packed Decimal Data - Specify Time Data - Specify Time Stamp Data - Specify Date Data

Prompt used for Physical File IPPF (Input Prompt for Physical File) Name Type
____

Name
EID

Ref
___

Data Length
10

Decimal Type Positions


A ____ __

Use

Functions _____________________________

2/26/13

Step Ahead

44

Examples of Physical Files


R Rec EID ENAME EAGE ESAL EDEG K EID File Level Record Format Level Field Level Key Field Level

3A 10A 2 0 6 2 10A

Levels of the Physical File


File Level Record Format Level Field Level Key Field Level

2/26/13

Step Ahead

55

KEYWORDS
File Level Record Field Level Format Level
JFILE (JLF) PFILE (LF) FORMAT (PF / LF) Comp (PF / LF) Cmp (PF / LF) Rename (LF) Concate (LF) SST (LF) Range (PF / LF) DFT (PF) REFFLD (PF) ALWNULL (PF) COLHDG (PF / LF)

Key Field Level


ASCEND (PF / LF) DESCEND (PF / LF)

Unique (PF / LF)


REF (PF) FIFO (PF / LF) LIFO (PF / LF) FCFO (PF / LF) Refaccpth (LF) Dynslt (LF)

NOTE: All the keywords are specified inDATFMT (PF parameter of IPPF function / LF) Prompt

2/26/13

Step Ahead DATSEP (PF / LF)

66

Das könnte Ihnen auch gefallen