Discussion Overview
The discussion revolves around troubleshooting an error related to the CHAR function in Fortran 77, specifically in the context of file handling and string manipulation. Participants explore the implications of the CHAR function, the construction of file names, and the conditions under which files are accessed in the program.
Discussion Character
- Technical explanation
- Debate/contested
- Experimental/applied
Main Points Raised
- One participant describes the CHAR function as converting integer values to characters, specifically noting that CHAR(id1+48) and CHAR(id2+48) are used to create a file name.
- Another participant suggests that the error arises because the program cannot find the specified file, fd01.picks, in the expected directory.
- A later reply indicates that the program continues to encounter errors even after placing fd01.picks in the directory, now referencing fd18.picks instead.
- Some participants express uncertainty about the validity of the code structure, questioning whether the DATA statement is correctly formatted and whether spaces in file names could be causing issues.
- There is a suggestion that the program may be looking in the wrong directory for the files, potentially due to compiler settings or operating system configurations.
Areas of Agreement / Disagreement
Participants generally agree that the program is unable to locate the specified files, but there is no consensus on the underlying cause of the issue, with multiple competing views on the validity of the code and the file naming conventions.
Contextual Notes
There are unresolved questions regarding the exact values of id1 and id2, the correct formatting of the DATA statement, and the implications of spaces in file names. The discussion does not clarify the specific directory the program is accessing.