Optical storage

pts.
Tags:
Application development
AS/400
Backup and Recovery
DataCenter
IBM DB2
I am trying to copy database files from the iSeries to a DVD (optical storage) and would like the files on the DVD created in ASCII text format. Similar to a data transfer from the iSeries, you can specify the file type ASCII text. The database files are actually spooled files that were copied to physical files, 1 field, 133 record length. Has anyone had any success in doing this? I have used IBM's CPYSTRF and CPYDBOPT examples and the files are not readable in notepad. Thanks.

Answer Wiki

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

This is what we use to copy a Physical File to a share on the network. The file ends up being comma separated
CPYTOIMPF FROMFILE(library/filename) TOSTMF(‘QNTCservenameshared folder’) STMFCODPAG(*PCASCII) RCDDLM(*CRLF)

The correct STMFCODPAG is what makes if PC Readable. Maybe you can modify this to go to DVD.

============================================================

CPYTOSTMF seems a better choice than CPYTOIMPF. However, you still want to use STMFCODPAG(*PCASCII). If you create the streamfile first, make sure it has the appropriate CCSID. It’s often easier to let CPYTOSTMF create it.

Tom

Discuss This Question: 1  Reply

 
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
  • JDWWms
    The CPYTOIMPF is a good start as then it is in a PC format, if you don't want the commas just change the DTAFMT parm to *FIXED and you get fixed lenght fields.
    0 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