AS/400 CPYTOIMPF

145 pts.
Tags:
AS/400
AS/400 commands
CPYTOIMPF
While I am using CPYTOIMPF, is it possible to copy field names?

Answer Wiki

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

I create the column headings in a source file and use CPYTOSTMF to copy them into the stream file before doing the CPYTOIMPF.  If the file has a large number of fields then the source file record length may be too big to use SEU to edit but you can use EDTF instead.

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
    Not from the CPYTOIMPF command itself. The command is intended to export data. An export of data has no relevance to column names because the importing side either already knows the names or uses different names for itself.   If needed, you can generate a row of column names first in some way, and then append column data after it with CPYTOIMPF.   But what is the business purpose that you're after? If this is transferring to a PC, a PC file transfer can pull column names with the data if needed.   Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    I create the column headings in a source file and use CPYTOSTMF to copy them into the stream file...   If you create them in the streamfile, the CPYTOSTMF isn't 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