Hi Support,
I am trying to put an MVS datset on a COZ server. The dataset is: D.UTT.TEST.TXT1
But there are already the following datasets:
D.UTT.TEST.TXT1.DDD
D.UTT.TEST.TXT1.TEST.TXT
I use the following put syntax:
put time.test //D.UTT.TEST.TXT1
but instead of creating the 'D.UTT.TEST.TXT1' dataset, the server creates: D.UTT.TEST.TXT1.TIME.TEST
uploading time.test to //D.UTT.TEST.TXT1/time.test
Is there a parm that I can change on the server to achieve what I am trying?
Or is this just the way it works?
Thank you.
COZ server appends local file name to end of MVS dataset
Re: COZ server appends local file name to end of MVS dataset
Hi Tom,
The problem is that there is an ambiguity as to whether D.UTT.TEST.TXT1 is a "file" or a (pseudo) "directory".
There is an underlying packet ("stat") that the client sends to ask us what kind of file it is, and we don't know the context so we answer that it is a directory.
Based on this, the client uses the name to form a new file name inside that directory.
The rules are described here: http://dovetail.com/docs/sftp/dsn-determination.html
So, if you putting to a dataset that has no datasets at lower levels, there isn't a problem.
If there are, then you need to use the syntax:
put time.test //!D.UTT.TEST.TXT1
The problem is that there is an ambiguity as to whether D.UTT.TEST.TXT1 is a "file" or a (pseudo) "directory".
There is an underlying packet ("stat") that the client sends to ask us what kind of file it is, and we don't know the context so we answer that it is a directory.
Based on this, the client uses the name to form a new file name inside that directory.
The rules are described here: http://dovetail.com/docs/sftp/dsn-determination.html
So, if you putting to a dataset that has no datasets at lower levels, there isn't a problem.
If there are, then you need to use the syntax:
put time.test //!D.UTT.TEST.TXT1
Re: COZ server appends local file name to end of MVS dataset
i had the same issue and did use the //! prefix . This works fine in so far as the MVS dataset naming convntion is maintained , however the problem i got was that when the file did not exist , COZBATCH still returns cond code 0 instead of cond code 1
i have raised seperate discussion , but interested to know if same problem encountered by Tombuch
i have raised seperate discussion , but interested to know if same problem encountered by Tombuch
Re: COZ server appends local file name to end of MVS dataset
There is an underlying packet ("stat") that the client sends to ask us what kind of file it is, and we don't know the context so we answer that it is a directory.