cpyfromstrmf: object not found

265 pts.
Tags:
AS/400
AS/400 error messages
CPYFRMSTMF
iSeries
I am running the following command and getting an "object not found" error. The file exists, the path is correct and everything is spelled properly. What am I missing?

CPYFRMSTMF FROMSTMF('//10.1.1.11/EMAIL/SVMAIL/palskumemo.txt') TOMBR('/qsys.lib/jllib1.lib/email.file/email.mbr') MBROPT(*ADD) STMFCCSID(850) DBFCCSID(37)                                                                 Object not found.  Object is /10.1.1.11/EMAIL/SVMAIL/palskumemo.txt.     Stream file not copied.                                                 

Answer Wiki

Thanks. We'll let you know when a new response is added.

There must be a misspelling, authority issue, or connection issue.
Is it comming from a different box?
Have you copied other objects from that location?
Can you do a directory list to verify the object is there ans is spelled correctly?

Discuss This Question: 7  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    CPYFRMSTMF FROMSTMF('//10.1.1.11/EMAIL/SVMAIL/palskumemo.txt') TOMBR('/qsys.lib/jllib1.lib/email.file/email.mbr') MBROPT(*ADD) STMFCCSID(850) DBFCCSID(37) If you type this command:
    WRKLNK '/10.1.1.11/EMAIL/SVMAIL/palskumemo.txt') TOMBR('/qsys.lib/jllib1.lib/email.file/email.mbr'
    ...on a command line and press <Enter>, what happens? Actually, it doesn't look to me as if it could exist. There should be no such path out of an AS/400. It looks like a path out of a Windows system instead. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Copy/paste correction -- type this command:
    WRKLNK ‘/10.1.1.11/EMAIL/SVMAIL/palskumemo.txt’)
    Tom
    125,585 pointsBadges:
    report
  • RayM
    I had to remove the IP address for the WRKLNK command that Tom suggested and it found it. So I removed the IP also from my original command and now I am getting the following msg. Not sure what this means. I have DDS for this file. CPYFRMSTMF FROMSTMF('/EMAIL/SVMAIL/palskumemo.txt') TOMBR('/qsys.lib/jlli b1.lib/email.file/email.mbr') MBROPT(*ADD) STMFCCSID(850) DBFCCSID(37) Object is not a file or is a file with attributes not supported by this command. Cause . . . . . : Object /qsys.lib/jllib1.lib/email.file/email.mbr must be either a source physical file that has three fields or a program described file. Externally described files and source physical files containing fewer or more than three fields are not permitted by this command.
    265 pointsBadges:
    report
  • TomLiotta
    ...the following msg. Not sure what this means. I have DDS for this file. Basically, what it means is that DDS shouldn't be involved at all. The error message text says that the result file "...must be either a source physical file that has three fields or a program described file." Neither of those is created with DDS. The first is created with CRTPF by specifying the RCDLEN() record length parameter without specifying the SRCFILE() and SRCMBR() parameters. The second is specified with the CRTSRCPF command which doesn't use DDS anyway. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    The first is .... The second is... Man, typo correction -- those should be reversed. The first reference in the error text is for CRTSRCPF and the second is for CRTPF. Tom
    125,585 pointsBadges:
    report
  • RayM
    Thanks Tom, that worked. So the rule of thumb here is that when copying a stream file to a physical file, use CRTPF with no DDS.
    265 pointsBadges:
    report
  • TomLiotta
    ...use CRTPF with no DDS. I haven't done enough experimenting to see if alternatives can be made to work, e.g., SQL for CREATE TABLE or any DDS that might result in a format that closely matches what a bare CRTPF gives. But because a non-DDS CRTPF works fine, there hasn't been much reason to experiment. Also, because it meets the description in error messages and in the CPYFRMSTMF help text, it puts the burden back on IBM if it doesn't work. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following