Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.
Tiburonblanco | Apr 2 2008 4:16PM GMT
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.
Luisreyes | Apr 2 2008 9:15PM GMT
Many thanks, tiburonblanco. I will certainly try this now and report on the results to the forum.
NarasimhaReddy | Apr 3 2008 2:46PM GMT
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