Skip to Content
0
Former Member
Jul 03, 2009 at 03:44 PM

How to read file from server if I have a logical file path?

1719 Views

Hi guys,

I'm having a pretty "on the run" question,

My program is currently reading a file from server using "open dataset" with file path like this (just example)

/usr/interface/abc/bcd/testfile.dat

Now I got a requirement to make it more consistent to read files, instead of reading that physical file name, I should read the files from a specific folder using logical path.

So I go to T code "FILE" and created a logical path called ZABC_FILE_PATH, unix compatible, with physical path is (for example),

/usr/interface/<sysid>/<client>/<filename>

My question is, can I still use open dataset statement to read this? if yes, how do I do that? If no, there should be alternative way, please let me know what you think. Thanks,