Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum



PreviousPrevious NextNext

Bob Felder 26.Apr.08 03:51 PM a Web browser
Domino Designer 6.5.6 iSeries

I have an agent that runs fine on an NT box but not on an Iseries one. The agent collects data from different documents and creates a file to store it. The agent then attaches the file to an email and sends it. The file becomes garbled when it is saved with Iseries

Here is a part of the code
fileNum% = Freefile()
counter% = 0
fileName$ = "data1.txt"
Open fileName$ For Output As fileNum%
Dim direct As String
direct = Curdir()
Dim pathy As String
pathy = direct+"/"+fileName$
counter = counter + 1
filestring1 = person.common+","+CalendarDoc.CustomerNum(0)+","+CalendarDoc.Subject(0)
LayoutStrg1 = " Sales Person, Customer Number, Subject"

Print #fileNum%, counter, filestring1

Close fileNum%

End If

Set CalendarDoc = Collection.GetNextDocument(CalendarDoc)
End Forall
Close fileNum%

I proceed to attach the file to an email and send it.
Dim emailDoc As New NotesDocument(db)

Print pathy
emailDoc.SendTo = "Joe Smith"
'emailDoc.CopyTo = "Fred Smith"
emailDoc.Subject = "Sales Report"
Dim body As New NotesRichTextItem(emailDoc,"Body")
Call body.AppendText("File layout: ")
Call body.AddNewline(1)
Call body.AppendText(LayoutStrg1)
Call body.AddNewline(2)
Call body.AppendText("Open file then do a search and replace to remove the quote marks")
Call body.AddNewline(2)
Set object = body.EmbedObject _
( EMBED_ATTACHMENT, "", pathy )

When the agent is run Manually or run on a server running with NT
1 Joe Smith,Cust #1,This is test 2
2 Fred Smith,ee1212,test this

When the agent is Scheduled on Iseries Box I get this

Thanks for any help

Creating a text file with Iseries (Bob Felder 26.Apr.08)
. . RE: Creating a text file with Iseri... (Andrei Kouvchin... 26.Apr.08)
. . RE: Creating a text file with Iseri... (Charles M Carro... 29.Apr.08)

  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite