15 pts.
 CPYTOPCD
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?

Software/Hardware used:
ASKED: April 1, 2008  11:24 PM
UPDATED: April 3, 2008  2:46 PM

Answer Wiki:
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.
Last Wiki Answer Submitted:  April 2, 2008  4:22 pm  by  Tiburonblanco   80 pts.
All Answer Wiki Contributors:  Tiburonblanco   80 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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 pts.

 

Many thanks, tiburonblanco. I will certainly try this now and report on the results to the forum.

 15 pts.

 

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 pts.