|
I have done this sort of thing before. The .tto file is stored in simple
ASCII.
Here is the VB code that I used to do this (you may have to modify this to
fit what you'r doing):
FileCopy "Get UPS Manifest Data.tto", "Get UPS Manifest Data.tmp"
Open "Get UPS Manifest Data.tmp" For Input As #1
Open "Get UPS Manifest Data.tto" For Output As #2
Do
Line Input #1, strLine
If (Len(strLine) > 5) Then
If (Left(strLine, 5) = "WHERE") Then
intPos = InStr(strLine, "(")
strLine = Left(strLine, intPos - 1) & "(PPKPDT=" & cmbDate & ")"
End If
End If
Print #2, strLine
Loop Until EOF(1)
Close #2
Close #1
Kill "Get UPS Manifest Data.tmp"
Alex Roytman
Profound Logic Software
http://www.rpgalive.com
-----Original Message-----
From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On
Behalf Of Çagatay AZKIN
Sent: Friday, November 19, 1999 4:41 AM
To: RPG400-L@midrange.com
Subject: Transfer to Excel file with CA/400 *.tto
Dear All,
How can I pass parameter to Client Access *.tto file(Data Transfer from
AS/400). I want to pass WHERE condition. Finally, there is an MS Excel file
with VB Modules.
Please advise me
B.Regards
Cagatay AZKIN
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.