Opening Save Files as Binary Stream Files

To open an IBM® i save file as a binary stream file for record-at-a-time processing, use the fopen() function with one of the following modes:
  • rb
  • wb
  • ab
Note: The only way to create a save file is to use the CRTSAVF command. If you use the fopen() function with a mode of wb or ab and the save file does not exist, a physical database file is created.
The valid keyword parameters are:
  • lrecl
  • type