× 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.



I am pretty sure that the folders have to already exist in the IFS "To"
stream file path.  Does F40803 exist?  I'm guessing not, since the command
without it works.
We use a CL program to walk through the list of folders and create them
(CRTDIR with MONMSG CPFA0A0) to make sure they exist before using the
CPYTOSTMF command.  I don't know if there is a limit to the number of
folders you can specify on the command - we do 7 levels deep without a
problem.

Carmen Nuland
cnuland@xxxxxxxxxxxxxx

-----Original Message-----
date: Mon, 15 Nov 2004 10:47:23 -0500
from: "Smith, Mike" <Mike_Smith@xxxxxxxxxxxxxxxx>
subject: CPYTOSTMF

I'm running a copy of a program from Iseriesnetwork called
CVTSPLSTMF(although the problem doesn't appear to be with this program
directly).  
Within this program CPYTOSTMF is being called.  
When I run this program and the CPYTOSTMF is called like the following  ===>
CPYTOSTMF
FROMMBR('/qsys.lib/qtemp.lib/CVTSPLWRK1.file/CVTSPLWRK1.mbr')
TOSTMF('/pdfflr/bills/F40803/A1.html') STMFOPT(*REPLACE)
STMFCODPAG(*PCASCII)     

I get errors telling me 
 Object not found.  Object is                         
   /qsys.lib/qtemp.lib/CVTSPLWRK1.file/CVTSPLWRK1.mbr.


When I run the program and the CPYTOSTMF is called like the following  ===>
CPYTOSTMF
FROMMBR('/qsys.lib/qtemp.lib/CVTSPLWRK1.file/CVTSPLWRK1.mbr')
TOSTMF('/pdfflr/bills/A1.html') STMFOPT(*REPLACE) STMFCODPAG(*PCASCII)


It works fine. 

The only difference is the additional folder F40803.  

So I guess my question is, Is there a limit to the number of directory paths
on the IFS, or is there possibly a bug in the CPYTOSTMF command, or am I
just missing something? 

Btw the folders all exist. 

Michael Smith
iSeries.mySeries.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.