CPYTOSTMF + VARGRAPHIC

240 pts.
Tags:
AS/400
AS/400 commands
CPYTOSTMF
I have a file (XYZTMP) with say 15 fields (some of which are of the GRAPHIC), this file is copied to another file(LOWA5P) with one field of say length 5000, (we just do this to create a CSV file). Another program does a CPYTOSTMF on LOWA5P .(the same file is saved in this path of FROMMBR... CPYTOSTMF + FROMMBR('/qsys.lib/qtemp.lib/csvp.file/csvp+ .mbr') TOSTMF(&OBJLNK) STMFOPT(*REPLACE) + STMFCODPAG(*PCASCII) All of this was working fine, but when I changed the field from XYZTMP from GRAPHIC to VARGRAPHIC, I'm getting a error in CPYTOSTMF command. Please let me know if some special parameters should be considered while handling file which have VARGRAPHIC data .

Software/Hardware used:
AS400 , iseries
ASKED: July 15, 2013  12:32 PM
UPDATED: July 15, 2013  1:06 PM

Answer Wiki

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

Discuss This Question: 2  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

    ...I'm getting a error in CPYTOSTMF command.

    We need to see the actual CPYTOSTMF command if we are to comment on how it works. We also need to see the attributes of the streamfile, particularly any CCSID setting.

    And if we are to comment on an error, we need to know what the error is, particularly any message ID.

    Tom

    125,585 pointsBadges:
    report
  • TomLiotta
    Forget the request for the CPYTOSTMF command. That was requested because I was interrupted before typing that comment. The streamfile attribute and the message ID are both needed. . 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