Stop CPYTOPCD from creating additional record

15 pts.
Tags:
CPYTOPCD
iSeries
QDLS
The CPYTOPCD command which copies iSeries files to the shared folders in QDLS puts an addtional record at the end of the PC document which I can only assume is the end-of-file delimiter. Is there any way to stop this record from being created?
ASKED: April 1, 2008  11:24 PM
UPDATED: August 26, 2013  4:25 PM

Answer Wiki

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

I hope this help you

One of the options of your command is:

TRNFMT
Specifies the format of the records in the PC document. This parameter is not valid if TRNTBL(*NONE) is specified.

*TEXT: The records being copied into the PC document are written in standard DOS ASCII variable-length format. When a record is copied from the database file member, trailing blanks are removed, the record is translated, and the ASCII carriage return (CR) and line feed (LF) characters are added at the end of each record before it is written to the PC document. The ASCII EOF character is added at the end of the document.

*NOTEXT: The records in the PC document are written as fixed-length records. CR and LF characters are not added at the end of each record, and the EOF character is not added at the end of the document. Trailing blanks are not removed from the end of each record. The lengths of the records in the database file are used as the lengths of the records in the PC document.

Discuss This Question: 3  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
  • Tiburonblanco
    I hope this help you One of the options of your command is: TRNFMT Specifies the format of the records in the PC document. This parameter is not valid if TRNTBL(*NONE) is specified. *TEXT: The records being copied into the PC document are written in standard DOS ASCII variable-length format. When a record is copied from the database file member, trailing blanks are removed, the record is translated, and the ASCII carriage return (CR) and line feed (LF) characters are added at the end of each record before it is written to the PC document. The ASCII EOF character is added at the end of the document. *NOTEXT: The records in the PC document are written as fixed-length records. CR and LF characters are not added at the end of each record, and the EOF character is not added at the end of the document. Trailing blanks are not removed from the end of each record. The lengths of the records in the database file are used as the lengths of the records in the PC document.
    80 pointsBadges:
    report
  • Luisreyes
    Many thanks, tiburonblanco. I will certainly try this now and report on the results to the forum.
    15 pointsBadges:
    report
  • NarasimhaReddy
    Hi, "QDLS puts an addtional record at the end of the PC document which I can only assume is the end-of-file delimiter" It won't put any additional record, it will only insert end-of-file delimiter. If it really has a record at the end, check your Database file it may contain blank record at the end. If it is definitely file delimeter (one delimiter character) and if you don't wnat to have, insert EOR character (X'0D') at the end of each record in database file (Record length should be Actual data + 1) when you insert a record into file (SQL/Progarm) and use CPYTOPCD with TRNFMT(*NOTEXT). So at the end it won't insert any EOF delimiter in PC Doc. I hope this helps you. Regards --Reddy
    225 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