MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » March 2014

floundering with sftp



fixed

Question:

Is LSOUTPUT as a file name reserved ?

Once you crank up FTP, there is the LS cmd and one of its slash-parameters- (DISK - is an option that generates a file of LSOUTPUT.

(DISK Stores the file name list LS subcommand into a file named
*CURLIB/LSOUTPUT.LSOUTPUT, instead of showing the results on
the display. Each time you specify the (DISK parameter with
the same current library, the contents of the
LSOUTPUT.LSOUTPUT file are changed.

If you specify a file name that is not valid, but there is
an existing LSOUTPUT.LSOUTPUT file, that existing file will
be deleted.

Even if not a reserved, it is probably not a good name for an output file, since it kinda goes against a "standard".

- John Voris



DCLF FILE(LSOUTPUT)

ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) +
VALUE('FILEAPPEND=/tmp/sftplog.txt') +
REPLACE(*YES)
ADDENVVAR ENVVAR(QIBM_QSH_CMD_ESCAPE_MSG) VALUE(Y) +
REPLACE(*YES)

CRTPF FILE(QTEMP/LSOUTPUT) RCDLEN(1000)






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact