IBM Version 4 Universal Remote User Manual


 
return errno;
}
ᑍ To activate this C module remove the comment identifiers
ᑍ following the WRITE statement and remove the comment
ᑍ identifier from the geterrno declaration in the Configuration
ᑍ Section. Definitions for the returned errno are found in
ᑍ file QSYSINC/SYS member ERRNO.
ERROR-FOUND.
WRITE LIST-LINE.
CALL "geterrno" GIVING RETURN-INT.
MOVE RETURN-INT TO ERRVAL.
WRITE LIST-LINE FROM ERRLIN.
STOP RUN.
Using the Integrated File System—ILE RPG Example
This example program uses the integrated file system from ILE RPG.
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
F
Fᑍ Language: ILE RPG
F
Fᑍ Description: Demonstrate use of integrated file system
Fᑍ from ILE RPG
F
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
FQSYSPRT O F 132 PRINTER
D
Dᑍ Prototype the Integrated File System APIs
D
Dgetuid PR 9B  EXTPROC('getuid')
Dgetcwd PR EXTPROC('getcwd')
D VALUE
D 9B  VALUE
Dopen PR 9B  EXTPROC('open')
D VALUE
D 4A VALUE
D 4A VALUE
Dwrite PR 9B  EXTPROC('write')
D 9B  VALUE
D VALUE
D 9B  VALUE
Dclose PR 9B  EXTPROC('close')
D 9B  VALUE
Dopen2 PR 9B  EXTPROC('open')
D VALUE
D 4A VALUE
Dread PR 9B  EXTPROC('read')
D 9B  VALUE
D VALUE
D 9B  VALUE
Dunlink PR 9B  EXTPROC('unlink')
D VALUE
D
Dᑍ errno prototype; see error subroutine for further information
D
Appendix B. Original Examples in Additional Languages B-183