I am getting the following warning:EMail = ''
*** Find out what AS/400 the file will be extracted from ***
OpenSeq "G:\DataStage\DStage_Data\TEST_Email_Control.txt" To INLINE Then
Read:
ReadSeq DataLine from INLINE Then
EMail = Trim(DataLine)
hJob1 = ''
Status = ''
StartTime = ''
Status = DSGetJobInfo(hJob1, DSJ.JOBSTATUS)
StartTime = DSGetJobInfo(hJob1, DSJ.JOBSTARTTIMESTAMP)
END
CloseSeq INLINE
message = ""
sender = "From:Data_Staqe_Dwetl2@appliedcard.com\n"
message = message:"This is a test\n"
For L = 1 to COUNT(EMail,@AM)+1
EMailMessage = ""
EMailMessage = sender
EMailMessage = EMailMessage:EMail<L>
EMailMessage = EMailMessage:message
code = ''
code = DSSendMail(EMailMessage)
If code = 0 Then
Call DSLogInfo("E-mail sent successfully.",'Job Control')
End Else
Call DSLogInfo("E-mail NOT sent.",'Job Control')
End
Next L
I am having trouble figuring out what keyword datastage is looking for.Email_Test..JobControl (DSSendMail): Parameter 3 ('"This is a test') does not start with a keyword
any help would be greatly appreciated.