This chapter is a quick reference for locating intrinsics
that perform designated tasks. Table 3-1 “Accessing Files” through Table 3-18 “Controlling Asynchronous Devices” describe the general task, a subtask to the
general task, and the intrinsic associated with it. The general
task is, in most cases, the title of a programmer's guide and the
subtasks correlate to chapters within that programmer's guide. For
information about the intrinsic specifically, refer to the later
chapters of this manual. For information about the use of an intrinsic,
refer to the specified programmer's guide.
The tasks covered are:
Table 3-1 Accessing Files
| Function | Intrinsic | Manual |
|---|
| Opening a file | | Accessing Files Programmer's Guide |
| Closing a File | FCLOSE | Accessing Files Programmer's Guide |
| Writing data to a file | FDEVICECONTROL FSETMODE FUPDATE FWRITE FWRITEDIR FWRITELABEL PRINT PRINTOP PRINTOPREPLY | Accessing Files Programmer's Guide |
| Reading data from a file | FREAD FREADBACKWARD FREADDIR FREADSEEK FSETMODE READ READX | Accessing Files Programmer's Guide |
| Controlling record pointer movement | | Accessing Files Programmer's Guide |
| Accessing a mapped file | HPFOPEN HPFMOVEDATA HPFADDTOPOINTER HPFMOVEDATALTOR HPFMOVEDATARTOL HPFFILLDATA | Accessing Files Programmer's Guide |
| Sharing a file | | Accessing Files Programmer's Guide |
| Maintaining file security | FOPEN HPFOPEN HPACDINFO HPACDPUT | Accessing Files Programmer's Guide No manual No manual |
| Getting file information | FCHECK FERRMSG FFILEINFO FGETINFO FLABELINFO FRELATE FRENAME | Accessing Files Programmer's Guide |
| Error Checking | HPERRDEPTH HPERRREAD HPERRMSG PRINTFILEINFO | Accessing Files Programmer's Guide |
| Accessing an RIO file | FOPEN FDELETE FREAD FWRITE HPFOPEN | Accessing Files Programmer's Guide |
Table 3-2 Accessing Command Interpreter Features
| Function | Intrinsic | Manual |
|---|
| Using commands programmatically | | Command Interpreter Access and Variables Programmer's
Guide |
| Controlling variables | HPCIDELETEVAR HPCIGETVAR HPCIPUTVAR | Command Interpreter Access and Variables Programmer's
Guide |
| Controlling job control words (JCWs) | FINDJCW GETJCW PUTJCW SETJCW | Command Interpreter Access and Variables Programmer's
Guide |
| Identifying Parameter Input | | Command Interpreter Access and Variables Programmer's
Guide |
Table 3-3 Managing Processes
| Function | Intrinsic | Manual |
|---|
| Activating a Process | ACTIVATE | Interprocess Communication Programmer's Guide |
| Deactivating/Suspending a Process | ABORTSESS CAUSEBREAK IODONTWAIT IOWAIT KILL PAUSE PROCINFO PROCTIME QUIT QUITPROG STARTSESS SUSPEND TERMINATE | Interprocess Communication Programmer's Guide |
| Creating a Process | | Interprocess Communication Programmer's Guide |
| Obtaining Process Information | FATHER GETINFO GETORIGIN GETPRIORITY GETPROCID GETPROCINFO JOBINFO | Interprocess Communication Programmer's Guide |
| Obtaining Mail Information | | Interprocess Communication Programmer's Guide |
Table 3-4 Managing Resources
| Function | Intrinsic | Manual |
|---|
| Managing Global RINs | | Resource Management Programmer's
Guide |
| Managing Local RINs | FREELOCRIN GETLOCRIN LOCKLOCRIN LOCRINOWNER UNLOCKLOCRIN | Resource Management Programmer's
Guide |
| | HPFIRSTLIBRARY HPGETPROCLABEL HPMYFILE HPMYPROGRAM | Resource Management Programmer's
Guide |
Table 3-5 Programming for Localization
| Function | Intrinsic | Manual |
|---|
| Retrieving information | | Native Language Programmer's Guide |
| Handling characters | NLCOLLATE NLFINDSTR NLJUDGE NLKEYCOMPARE NLMATCH NLMATCHINIT NLREPCHAR NLSCANMOVE NLSUBSTR NLSWITCHBUF NLTRANSLATE | Native Language Programmer's Guide |
| Formatting time and date | NLCONVCLOCK NLCONVCUSTDATE NLFMTCALENDAR NLFMTCLOCK NLFMTCUSTDATE NLFMTDATE NLFMTLONGCAL | Native Language Programmer's Guide |
| Formatting numbers | NLCONVNUM NLFMTNUM NLNUMSPEC | Native Language Programmer's Guide |
| Using application message catalogs | CATCLOSE CATOPEN CATREAD NLAPPEND | Native Language Programmer's Guide |
Table 3-6 Managing Message Catalogs
| Function | Intrinsic | Manual |
|---|
| | CATCLOSE CATOPEN CATREAD GENMESSAGE | Message Catalogs Programmer's Guide |
| Converting binary numbers | | Data Types Conversion Programmer's
Guide |
| Converting numeric ASCII strings | | Data Types Conversion Programmer's
Guide |
| Translating ASCII/EBCDIC or JISCII/EBCDIK | CTRANSLATE | Data Types Conversion Programmer's
Guide |
| Converting floating-point formats | HPFPCONVERT | Data Types Conversion Programmer's
Guide |
Table 3-7 Converting Data Types
| Function | Intrinsic | Manual |
|---|
| Converting binary numbers | | Data Types Conversion Programmer's
Guide |
| Converting numeric ASCII strings | | Data Types Conversion Programmer's
Guide |
| Translating ASCII/EBCDIC or JISCII/EBCDIK | CTRANSLATE | Data Types Conversion Programmer's
Guide |
| Converting floating-point formats | HPFPCONVERT | Data Types Conversion Programmer's
Guide |
Table 3-8 Sorting and Merging Data
| Function | Intrinsic | Manual |
|---|
| Creating core merge routines (NM) | HPMERGEEND HPMERGEERRORMESS HPMERGEINIT HPMERGEOUTPUT | SORT-MERGE/XL Programmer's Guide |
| Creating core merge routines (CM) | MERGEEND MERGEERRORMESS MERGEINIT MERGEOUTPUT | SORT-MERGE/XL Programmer's Guide |
| Getting merge information (NM) | | SORT-MERGE/XL Programmer's Guide |
| Getting merge information (CM) | | SORT-MERGE/XL Programmer's Guide |
| Creating core sort routines (NM) | HPSORTEND HPSORTERRORMESS HPSORTINIT HPSORTINPUT HPSORTOUTPUT | SORT-MERGE/XL Programmer's Guide |
| Creating core sort routines (CM) | SORTEND SORTERRORMESS SORTINIT SORTINPUT SORTOUTPUT | SORT-MERGE/XL Programmer's Guide |
| Getting sort information (NM) | | SORT-MERGE/XL Programmer's Guide |
| Getting sort information (CM) | | SORT-MERGE/XL Programmer's Guide |
Table 3-9 Handling Traps
| Function | Intrinsic | Manual |
|---|
| | ARITRAP FINTEXIT FINSTATE HPENABLTRAP RESETCONTROL XARITRAP XCONTRAP XLIBTRAP XSYSTRAP | Trap Handling Programmer's Guide |
Table 3-10 Managing Logging Facilities
| Function | Intrinsic | Manual |
|---|
| Marking a logical transaction | | User Logging Programmer's Guide |
| Closing a log file | CLOSELOG | User Logging Programmer's Guide |
| Flushing the logging buffer | FLUSHLOG | User Logging Programmer's Guide |
| Getting information from the log file | | User Logging Programmer's Guide |
| Opening a log file | OPENLOG | User Logging Programmer's Guide |
| Writing to a log file | WRITELOG | User Logging Programmer's Guide |
Table 3-11 Debugging Applications
| Function | Intrinsic | Manual |
|---|
| Entering the debug facility | | MPE/iX System Debug Reference Manual |
| Disarming a debug call | | MPE/iX System Debug Reference Manual |
| Arming a debug call | | MPE/iX System Debug Reference Manual |
| Producing a full stack trace | STACKDUMP | MPE/iX System Debug Reference Manual |
Table 3-12 Obtaining Device Information
| Function | Intrinsic | Manual |
|---|
| Obtaining volume information | HPVOLINFO | |
| Accessing peripheral functionality | HPDEVCONTROL | |
Table 3-13 Programming in Privileged mode
| Function | Intrinsic | Manual |
|---|
| Starting privileged mode | GETPRIVMODE | Introduction to MPE XL for MPE V Programmers |
| Ending privileged mode | GETUSERMODE | Introduction to MPE XL for MPE V Programmers |
Table 3-14 Managing USL Files
| Function | Intrinsic | Manual |
|---|
| Changing USL files | | MPE Segmenter Reference Manual |
| Creating USL files | CLEANUSL | MPE Segmenter Reference Manual |
| Initializing USL files | INITUSLF | MPE Segmenter Reference Manual |
Table 3-15 Managing Data Segments
| Function | Intrinsic | Manual |
|---|
| | ALTDSEG DMOVIN DMOVOUT FREEDSEG GETDSEG SWITCHDB | Introduction to MPE XL for MPE V Programmers |
Table 3-16 Changing Stack Size
| Function | Intrinsic | Manual |
|---|
| Changing the stack size | | Introduction to MPE XL for MPE V
Programmers |
Table 3-17 Programming Switch
| Function | Intrinsic | Manual |
|---|
| Loading a CM procedure | HPLOADCMPROCEDURE LOADPROC | Switch Programming Guide |
| Unloading a CM procedure | HPUNLOADCMPROCEDURE UNLOADPROC | Switch Programming Guide |
| Loading a NM procedure | HPLOADNMPLABEL | Switch Programming Guide |
| Switching from CM to NM | HPSWTONMNAME HPSWTONMPLABEL | Switch Programming Guide |
| Switching from NM to CM | | Switch Programming Guide |
Table 3-18 Controlling Asynchronous Devices
| Function | Intrinsic | Manual |
|---|
| Controlling system breaks | | MPE XL Asynchronous Serial Communications Programmer's
Reference Manual |
| Controlling subsystem breaks | FCONTROL XCONTRAP RESETCONTROL | MPE XL Asynchronous Serial Communications Programmer's
Reference Manual |
| Specifying carriage control directives | | MPE XL Asynchronous Serial Communications Programmer's
Reference Manual |
| Specifying an EOR character | FCONTROL | MPE XL Asynchronous Serial Communications Programmer's
Reference Manual |
| Enabling/Disabling echo | | Asynchronous Serial Communications Programmer's
Reference Manual |
| Specifying line deletion echo response | FCONTROL | Asynchronous Serial Communications Programmer's
Reference Manual |
| Setting editing mode | FCONTROL | Asynchronous Serial Communications Programmer's
Reference Manual |
| Setting transmission mode | FCONTROL | Asynchronous Serial Communications Programmer's
Reference Manual |
| Specifying and enabling parity | FCONTROL | Asynchronous Serial Communications Programmer's
Reference Manual |
| Specifying terminal type | FCONTROL | Asynchronous Serial Communications Programmer's
Reference Manual |
| Setting a read timeout | FCONTROL | Asynchronous Serial Communications Programmer's
Reference Manual |
| Timing a read | FCONTROL | Asynchronous Serial Communications Programmer's
Reference Manual |