|
On Thu, 2002-02-21 at 15:22, Klein, Ron wrote: > Hi All, > I have a spool file that I have copied to a database file, length 132. I am > trying to copy that spool file to the IFS with no translation. > > When I try to execute the command I get the following error 'Object name not > a QSYS object'. > > Cause . . . . . : The operation expected an object in the QSYS file > system. > Object /home/Ronk/RONK/TEST does not result in an object in the QSYS file > > system. Possible causes: > > --The object is in a different file system. > > --The object name does not start at the root file system. > > --The first component of the path name is not QSYS.LIB. > > --The object is on a remote file system. > --- > This is how I am executing the command. > > >From database file member . . . > 'RONK/TEST' > > To stream file . . . . . . . . . > 'RONK/TEST.TXT' > > Stream file option . . . . . . . *NONE *NONE, *ADD, *REPLACE > Data conversion options . . . . > *NONE *AUTO, *TBL, *NONE > Database file CCSID . . . . . . *FILE 1-65533, *FILE > Stream file code page . . . . . *STMF 1-32767, *STMF > End of line characters . . . . . > *CRLF *CRLF, *LF, *CR, *LFCR.. > > > TIA > Ron Hi Ron At a guess I'd say it's because you're giving a relative path for your streamfile 'RONK/TEST.TXT' instead of an absolute one (no leading '/'). That's relative to your current directory. By default your profile will have have a home directory of /home/<userprofile> and this will be your current directory until you change it. Try one of these two solutions. o CD DIR('/home') /* before running your CPYTOSTMF command.*/ o Use an absolute path '/home/RONK/TEST.TXT' on your CPYTOSTMF You also might be better of giving an absolute path to your database file - '/QSYS.LIB/RONK.LIB/TEST.FILE/TEST.MBR' to minimize the risk of errors. Regards, Martin
As an Amazon Associate we earn from qualifying purchases.
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.