× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 03-Nov-2015 08:47 -0600, Steinmetz, Paul wrote:
Yesterday, I added a home directory for user xxx to resolve a SFTP
issue/error:
Could not create directory '/home/xxx/.ssh'.

Today, a different non SFTP job run under same user xxx had
CPYTOIMPF fail.
For unknown reasons, /home/xxx was automatically prefixed to the
dest path.

Why would the existence of /home/xxx change the default path of a
job run by xxx.


The Home Directory (HOMEDIR) parameter of the User Profile (USRPRF) is used to establish the Current Directory (CD) for IFS naming. Per the HOMEDIR help text, "If the home directory specified does not exist when the user signs on, the user's initial working directory is the root (/) directory." Since the creation of the /home/xxx, the user's initial working directory [the CD] has been established as the /home/xxx directory rather than previously being established as '/'.

So unless the To Stream File (TOSTMF) specification had made use of an _absolute path_ vs a _relative path_, the location for creation of the named file is variable; i.e. will be placed in whatever is the CD, because a relative path specification is treated as if the './' were the explicitly specified prefix, and the period-slash serves as an effective place-holder\replacement-variable for whatever is the CD.

Thus for a specification of TOSTMF('tmp/output'), prior to the creation of the HOMEDIR, the effect would have been to create the stream file /TMP/OUTPUT whereas after the creation of the HOMEDIR, the effect would have been to create the stream file /HOME/XXX/TMP/OUTPUT


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.