Hi
I am writing a rpg program which sends emails with an attachment file. The lines in the attachment file are not positioned correctly as the carriage return is not working. I attach the coding in the program.
0107.00 * Carriage Return Symbol
0108.00 D @W_ASCIICarriageReturn..0
0109.00 D S 0 1A Inz(X'0D')
0291.00 ReadE @Kl_conmsgd1 RCONMSGD;
0292.00
0293.00 If %EOF(CONMSGD1);
0294.00 COData = @W_ASCIICarriageReturn;
0295.00 Write RCONATCX;
0296.00 EndIf;
0297.00
0298.00 DoW Not %EOF(CONMSGD1);
0299.00
0300.00 Clear RCONATCX;
0301.00 COData = %Trim(MSMSG) + @W_ASCIICarriageReturn;
0302.00 Write RCONATCX;
0305.00
0306.00 ReadE @Kl_conmsg RCONMSGD;
0307.00
0308.00 EndDo;
The output is like
Barcode 123456789011111 does not exist
Barcode 123456789011111 does not exist
Barcode 123456789011111 does not exist
Barcode 123456789011111 does not exist
Barcode 123456789022222 does not exist
Barcode 123456789022222 does not exist
Please help
Devarshi
I am writing a rpg program which sends emails with an attachment file. The lines in the attachment file are not positioned correctly as the carriage return is not working. I attach the coding in the program.
0107.00 * Carriage Return Symbol
0108.00 D @W_ASCIICarriageReturn..0
0109.00 D S 0 1A Inz(X'0D')
0291.00 ReadE @Kl_conmsgd1 RCONMSGD;
0292.00
0293.00 If %EOF(CONMSGD1);
0294.00 COData = @W_ASCIICarriageReturn;
0295.00 Write RCONATCX;
0296.00 EndIf;
0297.00
0298.00 DoW Not %EOF(CONMSGD1);
0299.00
0300.00 Clear RCONATCX;
0301.00 COData = %Trim(MSMSG) + @W_ASCIICarriageReturn;
0302.00 Write RCONATCX;
0305.00
0306.00 ReadE @Kl_conmsg RCONMSGD;
0307.00
0308.00 EndDo;
The output is like
Barcode 123456789011111 does not exist
Barcode 123456789011111 does not exist
Barcode 123456789011111 does not exist
Barcode 123456789011111 does not exist
Barcode 123456789022222 does not exist
Barcode 123456789022222 does not exist
Please help
Devarshi





Comment