How can I copy a daily generated spool file into an IFS folder adding members for each daily copy. I try to use CPYTOIMPF but 1). It does not resolve the &file1 variable put on TOSTMF 2. It does not seems to be adding members.
Thanks for your response
Software/Hardware used:
ASKED:
August 17, 2010 2:23 PM
UPDATED:
August 18, 2010 11:55 AM
How can I copy a daily generated spool file into an IFS folder adding members for each daily copy.
IFS directories don’t have members unless you are working in the /QSYS.LIB file system. But if you are copying into /QSYS.LIB, you shouldn’t be using CPYTOIMPF.
Further, you probably shouldn’t be using CPYTOIMPF to copy spooled file data. You use CPYTOIMPF or CPYFRMIMPF when you are doing database exports or imports. If you are just copying spooled file data, use the CPYTOSTMF command.
It does not resolve the &file1 variable put on TOSTMF
Why not? That is, what value did you put into &file1? What does your statement look like? What does the definition of &file1 look like? How did you put the value into &file1?
It does not seems to be adding members.
CPYTOIMPF doesn’t add members unless you are creating database members; but that wouldn’t make any sense. Usually, you would create streamfiles rather than add members.
Tom