5 pts.
 CPTYTOSTMF problem
I am getting error in cpytostmf command while getting the member to ifs folder which is object is not a file or is a file with attributes not supported by this command. object not copied /QSYS.LIB/LIBRARY.LIB/FILENAME.FILE/MBRNAME.MBR

Software/Hardware used:
ASKED: September 1, 2010  7:28 AM
UPDATED: September 2, 2010  12:46 AM

Answer Wiki:
From the help text of CPYTOSTMF: <i>When copying from a member, the file may be a source physical file or a program-described physical file. Source physical files with multiple data fields are not supported. </i> So essentially it's source files, flat files with no fields or save files only. Externally described database files are not supported. If you want to copy an externally described database file, first create a flat file and copy it to that first, then use the CPYTOSTMF command to copy that.
Last Wiki Answer Submitted:  September 1, 2010  1:14 pm  by  Adamwkiuk2002   215 pts.
All Answer Wiki Contributors:  Adamwkiuk2002   215 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Adamwkiuk2002 is correct. Copying a multi-field externally-described database file to a streamfile doesn’t make sense. The possible variations in different data types, lengths, CCSIDs and all other attributes, would make the CPYTOSTMF command impossible. CPYTOSTMF is intended for simple direct transfer of lines to records or records to lines.

When you need to handle multiple fields, use CPYTOIMPF instead… or write your own utility.

Tom

 107,765 pts.