SNDDST command in CL program

35 pts.
Tags:
RPG Code
Hi , I am using SNDDST command in CL program through SNDDST am attaching the .CSV file. When I'm putting the subject line in that command, it is taking the name of that .CSV file as a subject line. Please refer the below command. SNDDST     TYPE(*DOC) TOINTNET((&PDES35)) DSTD ('PO    +  REVERSES WEEKLY REPORT') MSG ('PO REVERSES + WEEKLY REPORT') DOC(&FILE) FLR('POREVS') + SUBJECT (&MSG1))

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    ...it is taking the name of that .CSV file as a subject line.   You're using SNDDST with TYPE(*DOC). What subject did you assign to the document? If you haven't assigned one, then the document name will be used by default. The 'Document description' (i.e., the DOCD() attribute) is the document subject.   Since you're using SNDDST, you have to follow rules for distributions. The SNDDST command isn't really appropriate for sending things to internet mail accounts. You should be using the internet mail facilities, although SNDDST can be made to work for most simple things.   Tom
    125,585 pointsBadges:
    report
  • codequery1
    Hi Tom, I have given the document name as R067012.CSV (date specific) & every time Subject name is taking as R067012.CSV only.We don't have other internet facilities to use.I need to do the CL coding by using SNDDST command only. Could you please give me an information in other way round.  
    35 pointsBadges:
    report
  • TomLiotta
    I have given the document name as R067012.CSV (date specific)...   That's fine; but what did you set the document's DOCD() to?   We don’t have other internet facilities to use.   If that was true, then you couldn't use SNDDST.   SNDDST doesn't do internet e-mail (SMTP). It can only hand off distributions to the system's SMTP processes, and that's what actually does internet e-mail. But you don't have to use SNDDST for that. You could use the Send MIME Mail (QtmmSendMail) API for example.   In any case, if you set the the document's DOCD() appropriately, it should become the 'Subject' for the outgoing e-mail item. Otherwise it will use the document's name for the 'Subject'. That's how SNDDST works when sending TYPE(*DOC) items.   Tom
    125,585 pointsBadges:
    report
  • codequery1
    Thanks Tom for your quick reply. Could you please provide me a sample code for the below API which you mentioned. Regards, Sandeep
    35 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following