I'm trying to read a System/36 file from an RPGLE program (don't ask me why they've still got S36 files). I cribbed from another program and just changed the file name.
But when I run the program it falls over with a CPF4101 (file not found) even though I've checked and the file is in the library list at run time.
My F spec is as follows:
The file is called FILE.NAM (with name changed to protect the innocent) in the S36 environment but the program I cribbed from didn't have the dot - I'm guessing RPG doesn't like it?
Then I've got an I spec which precedes the file layout:
I'm the only RPG developer here and I haven't worked with S36 stuff before so I haven't a clue what I'm doing really. I've googled and can't find anything useful.
Help would be greatly appreciated! I've probably done something really stupid so apologies in advance...
But when I run the program it falls over with a CPF4101 (file not found) even though I've checked and the file is in the library list at run time.
My F spec is as follows:
Code:
FFILENAM IF F 256 7AIDISK KEYLOC(58)
The file is called FILE.NAM (with name changed to protect the innocent) in the S36 environment but the program I cribbed from didn't have the dot - I'm guessing RPG doesn't like it?
Then I've got an I spec which precedes the file layout:
Code:
IWMOERPD NS 01
I'm the only RPG developer here and I haven't worked with S36 stuff before so I haven't a clue what I'm doing really. I've googled and can't find anything useful.
Help would be greatly appreciated! I've probably done something really stupid so apologies in advance...