Creating direct access files

When creating a direct access (DA) file, specify the dsorg(da) attribute (if it is not the default already) with a file creation command, such as the notepad command.

C:\>notepad "r:\new.txt,dsorg(da),blksize(80),lrecl(80),recfm(f)"

You have just created a new DA file named SMITH.NEW.TXT

You must specify the .txt suffix on the file name. If you do not, notepad will automatically append it and will try to create "new,dsorg(da),blksize(80),lrecl(80),recfm(f).txt", which will not be successful. You must also type a carriage return after the last line (or the only line) of the file. Notepad does not do this automatically.

An example of Linux Samba follows:
linux001:/mntrfs # vi "new.txt,dsorg(da),blksize(80),lrecl(80),recfm(f)"

When reading or changing data in a Direct Access file with fixed-length records in text mode, the blankstrip processing attribute (in the attributes file) controls how trailing blanks are handled. If blankstrip is specified or defaulted to in the attributes file, trailing blanks are removed from the end of each record when it is read, and blanks are padded to the end of each record when it is written. If noblankstrip is specified in the attributes file, trailing blanks are not removed from the end of each record when it is read, and blanks are not padded to the end of each record when it is written. In this case, each record written must be the correct size or an I/O error is reported.