+ Reply to Thread
Results 1 to 5 of 5

Thread: SNDDST with a SPLF - wont send in batch

  1. #1

    Default SNDDST with a SPLF - wont send in batch

    One possibility is that you are submitting the job to batch with a different library list than that of your interactive job. Dave

  2. #2

    Default SNDDST with a SPLF - wont send in batch

    I seem to recall that there's a 32 character limitation on CL parameters of character variables. You could try doing a SNDMSG to the console via QSYSOPR with the &email parameter and see what it looks like. If its incorrect, try increasing the size by 1 in your sending program (41) and change the last position to a certain value (using %SST). Then in the your receiving program you'll have to extract the the first 40 characters and use that as your email address. Hopefully, somebody will correct me if I'm off-base here Terry

  3. #3
    Guest.Visitor Guest

    Default SNDDST with a SPLF - wont send in batch

    When you submit the job to batch are you padding out the &EMAIL parameter with enough spaces to make it 40 bytes? In other words, the difference between 'a@b.com' and 'a@b.com {33 spaces}'. I think if you don't make that field exactly 40 bytes you'll end up with garbage in that variable. You can use the STRSRVJOB command to put the batch job in debug to verify this. As far as the subject of your email goes, the DSTD parameter will not be used. You'll have to use the CHGDOCD command to change the DOCD of sum020.txt. HTH, Mark

  4. #4
    Guest.Visitor Guest

    Default SNDDST with a SPLF - wont send in batch

    I'm emailing a report, also using cpysplf, cpytopcd, snddst. I run a CL and it works great as long as it's called from the interactive Inquiry. When I change the CL from a call from a sbmjob, it never sends the document. I follow the job log and it says the send distribution completed successfully. If I go into the submitted job and hard code the email address it works, but when i change it to use the same address passed as a parameter I never geth the email. One more thing - the dstd (subject line) field always has in it the name of the file I have attached, rather than the text in the dsts parameter. Anyone have anything like this happening? Thanks, -jd-
    Code

  5. #5
    Guest.Visitor Guest

    Default SNDDST with a SPLF - wont send in batch

    I just finished testing, by doing same call to the CL, which runs the report, etc. both with padding the address out to 40 positions and with not padding it. The padding fixed it - so did the chgdocd. I just don't get why a sbmjob compresses out the blanks in a character parameter like that, when it's defined as 40 positions. But thanks, your help did it...jd

+ Reply to Thread

Similar Threads

  1. snddst - Send distribution completed successfully.
    By David Abramowitz in forum General
    Replies: 6
    Last Post: 07-28-2003, 08:07 PM
  2. How to send email in HTML format using SNDDST
    By Guest.Visitor in forum CL
    Replies: 18
    Last Post: 10-01-2002, 09:24 PM
  3. Can I use SNDDST to send HTML emails?
    By dlewis@tirerack.com in forum Dev Tools
    Replies: 1
    Last Post: 03-13-2002, 06:58 AM
  4. FTP in batch says unable to send data to TCP/IP
    By Guest.Visitor in forum Application Software
    Replies: 1
    Last Post: 08-03-2000, 02:00 PM
  5. Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts