Solved, wrong file mode! for Output works:
Sub Main()
Dim Vector As String
Vector = "TEST"
Open "C:/Sigma/RPISWORK/SKETCH.TMP" For Output as #1
Print #1,Vector
Close #1
End Sub
Dave, thanks for the quick response!
I've tried the Print statement, but I get "Bad file mode" message on execution.
Here is my test macro:
Sub Main()
Dim Vector As String
Vector = "TEST"
Open "C:/Sigma/RPISWORK/SKETCH.TMP" as #1
Print #1,Vector...
Hi, I am trying to write a variable length string to a file using a cognos macro.
I'm using the "Open" and then "Put" functions successfully, but need to remove the first two characters that are inserted into the file (I understand they represent the file length)
Is there...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.