ファイル名

ファイル名は、相対ファイル名 (たとえば filedir/file../file) としても、 絶対ファイル名 (たとえば /file/dir/file) としても指定できます。 I/O ステートメントに相対パス名だけを指定する場合でも、ファイル名 (絶対パス名) の最大長は 4095 文字です。 パスなしのファイル名の最大長は 255 文字です。

以下のような場所に、有効なファイル名を指定する必要があります。

関連情報:
位置が環境変数に依存しているファイルを指定する場合は、GETENV 組み込みプロシージャーを 使用してその環境変数の値を検索することができます。

character(100) home, name
call getenv('HOME', value=home)
! Now home = $HOME + blank padding.
! Construct the complete path name and open the file.
name=trim(home) // '/remainder/of/path'
open (unit=10, file=name)
...
end
IBM Copyright 2003