FILE – Logical File Path

A logical path can be used to avoid hardcoding file server path or file name in a program. That way, if the server path ever changes, no program change needs to be applied. Only the logical path needs to be changed.

Another possible situation is when file server structure is based on system ID.

Ex:

•Development path
/usr/L9D/send/

•Quality Assurance
/usr/L9A/send/

•Production
/usr/L9P/send/

In this example, system ID (L9D for development system) will be replaced by a variable in the logical path that represents system ID. That way, program and logical path can be moved through the landscape without file server path error.

Tip: Function FILE_GET_NAME can be used to retrieve actual file server path and file name.

Leave a Reply