HPlogo Accessing Files Programmer's Guide: HP 3000 MPE/iX Computer Systems > Chapter 2 Creating A File

Specifying a File Code

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

MPE/iX subsystems often create special-purpose files whose functions are identified by four-digit integers called file codes, written in their system file labels. HPFOPEN/FOPEN, BUILD, and FILE have parameters that enable you to specify a file code for your file when you first create it. For user files, you can use as a file code any number from 0 through 1023. Numbers above 1023 listed in Table 2-7 “Reserved File Codes” are predefined by Hewlett-Packard for special system files and should not be redefined for your use. If you do not specify a file code when you create a file, the MPE/iX default value of zero applies.

For instance, compilers create Native Mode Object (NMOBJ) files, written in a special format and identified by the code 1461, upon which they compile object programs. User programs sometimes create files that must be identified in some unique way, too. Such a program might produce a permanent disk file identified by the integer 1. If you were to run this program several times and want to uniquely identify the file produced on each run (or set of runs) by a special class, purpose, or function, you could use a FILE command to supply a unique file code for each run (or group of runs).

For instance, on the second run, you might wish to classify the file with the file code 2, as follows:



                         File code 

                         |

   FILE DESGX=DESGB;CODE=2

   RUN FILEPROD

If you later wished to determine the classification to which this file belonged, you could use the LISTFILE command with an information level of 1, which prints the file name, file code, and other information about the file. Alternatively, you could determine the file code by calling the FFILEINFO intrinsic. Both LISTFILE and FFILEINFO are discussed in Getting System Information Programmer's Guide (32650-90018). The file codes that have particular Hewlett-Packard-defined meanings are listed in Table 2-7 “Reserved File Codes”.

Table 2-7 Reserved File Codes

IntegerMnemonicMeaning
1024USLUser Subprogram Library
1025BASDBasic Data
1026BASPBasic Program
1027BASFPBasic Fast Program
1028RLCompatibility Mode Relocatable Library
1029PROGCompatibility Mode Program File
1031SLSegmented Library
1035VFORMVPLUS Forms File
1036VFASTVPLUS Fast Forms File
1037VREFVPLUS Reformat File
1040XLSAVCross Loader ASCII File (SAVE)
1041XLBINCross Loader Relocated Binary File
1042XLDSPCross Loader ASCII File (DISPLAY)
1050EDITQEdit Quick File
1051EDTCQEdit KEEPQ File (COBOL)
1052EDTCTEdit TEXT File (COBOL)
1054TDPDTTDP Diary File
1055TDPQMTDP Proof Marked QMARKED
1056TDPPTDP Proof Marked Non-COBOL File
1057TDPCPTDP Proof Marked COBOL File
1058TDPQTDP Work File
1059TDPXQTDP Work File (COBOL)
1060RJEPNRJE Punch File
1070QPROCQUERY Procedure File
1080KSAMKKSAM Key File
1083GRAPHGRAPH Specification File
1084SDSelf-Describing File
1090LOGUser Logging Log File
1100WDOCHP WORD Document
1101WDICTHP WORD Hyphenation Dictionary
1102WCONFHP WORD Configuration File
1103W2601HP WORD Attended Printer Environment
1110PCELLIFS/3000 Character Cell File
1112PENVIFS/3000 Environment File
1113PCCMPIFS/3000 Compiled Character Cell File
1114RASTRGraphics Image in RASTER Format
1130OPTLFOPT/3000 Log File
1131TEPESTEPE/3000 Script File
1132TEPELTEPE/3000 Log File
1133SAMPLAPS/3000 Log File
1139MPEDLMPEDCP/DRP Log File
1140TSRHPToolset Root File
1141TSDHPToolset Data File
1145DRAWDrawing File for HPDRAW
1146FIGFigure File for HPDRAW
1147FONTReserved
1148COLORReserved
1149D48Reserved
1152SLATECompressed SLATE File
1153SLATWExpanded SLATE Work File
1156DSTORRAPID/3000 DICTDBU Utility Store File
1157TCODECode File for Transact/3000 Compiler
1158RCODECode File for Report/3000 Compiler
1159ICODECode File for Inform/3000 Compiler
1166MDISTHP Desk Distribution List
1167MTEXTHP Desk Text
1168MARPAARPA Messages File
1169MARPDARPA Distribution List
1170MCMNDHP Desk Abbreviated Commands File
1171MFRTMHP Desk Diary Free Time List
1172NoneReserved
1173MEFTHP Desk External File Transfer Messages File
1174MCRPTHP Desk Encrypted Item
1175MSERLHP Desk Serialized (Composite) Item
1176VCSFVersion Control System File
1177TTYPETerminal Type File
1178TVFCTerminal Vertical Format Control File
1192NCONFNetwork Configuration File
1193NTRACNetwork Trace File
1194NTLOGNetwork Log File
1195MIDASReserved
1211NDIRReserved
1212INODEReserved
1213INVRTReserved
1214EXCEPReserved
1215TAXONReserved
1216QUERFReserved
1217DOCDRReserved
1226VCVC File
1227DIFDIF File
1228LANGDLanguage Definition File
1229CHARDCharacter Set Definition File
1230MGCATFormatted Application Message Catalog
1236BMAPBase Map Specification File
1242BDATAHP Business BASIC/V Data File
1243BFORMHP Business BASIC/V Field Order File for VPLUS
1244BSAVEHP Business BASIC/V SAVE Program File
1245BCNFGConfiguration File for Default Options for HP Business BASIC Programs
1246BKEYFunction Key Definition File for Terminal
1258PFSTAPathflow STATIC File
1259PFDYNPathflow Dynamic File
1270RFDCARevisible Form DCA Data Stream
1271FFDCAFinal Form DCA Data Stream
1272DIUDocument Interchange Unit File
1273PDOCHP WORD/150 Document
1275DFIDISOSS Filing Information File
1276SRISearch Restart Information File
1401CWPTXChinese Word Processor Text File
1421MAPHP MAP/3000 Map Specification File
1422GALReserved
1425TTXReserved
1428RDILHP Business Report Writer (BRW) Dictionary File CM
1429RSPECBRW Specification File
1430RSPCFBRW Specification File
1431REXCLBRW Execution File
1432RJOBBRW Report 509 File
1433ROUT1BRW Intermediate Report File
1434ROUTDBRW Dictionary Output
1435PRINTBRW Print File
1436RCONFBRW Configuration File
1437RDICNBRW NM Dictionary File
1438REXNUMBRW NM Execution File
1441PIFReserved
1476TIFFTag Image File Format
1477RDFRevisible Document Format
1478SOFSerial Object File
1479GPFChart File for Charting Gallery Chart
1480GPDData File for Charting Gallery Chart
1483VCGPMVirtuoso Core Generator Processed Macro File
1484FRMATFormatter
1485DUMPDump Files Created and Used by IDAT and DPAN
1486NNMD0New Wave Mail Distribution List
1491X4HDRX.400 Header for HP Desk Manager
1500WP1Reserved
1501WP2Reserved
1502LO123Lotus 123 Spread Sheet
1514FPCFForm Tester Command Spec File
1515INSPSpooler/XL Input Spool File
1516OUTSPSpooler/XL Output Spool File
1517CHKSPSpooler/XL Checkpoint Spool File
1521DSKITHP Desk Intrinsics Transaction File
1526MSACKMan Server Acknowledgement
1527MSNONMan Server Non-Delivery Notification
1528MSTRCMan Server Trace File
3333 Reserved

 

NOTE: Default is the unreserved file code of 0.

Using 1090 (LOG) as a designated file code may not yield the number of records that you specify in the DISC= parameter. Most files use the number of records specified in the DISC= parameter as the maximum limit; user logging uses this specified number as a minimum.

Feedback to webmaster