RPGIV @ Work

A unique site for RPG and System i Lovers

Welcome!

Hi, this site will provide all what you need in System i and RPG developments.

My Name is Chamara Withanachchi, System i Expert and RPG Developer. And in the field for last 11 years.

I hope you will find lot of valuable information from this site

Free-Form File Definition Statement Print E-mail
User Rating: / 0
PoorBest 
Written by Chamara   

A free-form file definition statement begins with DCL-F, followed by the file name, followed by keywords, and ended with a semicolon.


  DCL-F file1a; 
  DCL-F file1b DISK(*EXT) USAGE(*INPUT);
  DCL-F file2 PRINTER; 
  DCL-F file3 SEQ; 3
  DCL-F file4 WORKSTN; 4
  DCL-F file5 USAGE(*UPDATE) KEYED;

1. File file1a and file1b are both externally-described DISK files opened for input. The device-type and usage are determined by default for file file1a, while they are specified explicitly for file1b.
2. File file2 is an externally-described PRINTER file opened for output. The usage is determined by default.
3. File file3 is an externally-described SEQ file opened for input. The usage is determined by default.
4. File file4 is an externally-described WORKSTN file opened for input and output. The usage is determined by default.
5. File file5 is an externally-described keyed DISK file opened for input and update.


<Previous   Next>