Does anybody know how to tell SNDSMTPEMM that a email recipient address variable should not be processed? This can be done with the attachments by specifying "*NONE" but neither "*N" nor "*NONE" or blanks work on the email addresses. I have created a command interface and a CL CPP program that will ask for email addresses and *PRI/*CC/*BCC that will be used with the SNDSMTPEMM command. The command interface will list all entries in a user's output queue and send the contents to one (or more) email addresses. Because there can be up to 20 email addresses, I need to be able to process the SNDSMTPEMM command with any number of emails. If I could specify all 20 email address variables and all 10 file attachments in a single command instance that would be best (assuming that the command has some a way to identify which email address to actually process). Right now, I can get around this by expanding the process to run the SNDSMTPEMM command based on the number of email addresses entered. But this will involve copying the command for each set of email addresses - I am trying to find a better solution.
How can I specify which email address variables should not be processed by SNDSMTPEMM command?
100 Views Asked by user3763812 At
1
There are 1 best solutions below
Related Questions in VARIABLES
- .bat file - How can I return the value of a variable whose name depends on another variable concatenated with a string in a batch file?
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Does tensorflow have a way of calculating input importance for simple neural networks
- Can you define a variable in ranges in java
- How to only estimate neonatal mortality using syncmrates in Stata?
- PHP string variable to multiple rows in table sql insert
- Good practices for variables in Laravel's layout files
- Variable in Python going up by more than 1 at a time
- Accessing a variable from a string
- Encapsulation does not seem to work in dart
- TypeError: indice_delete() takes 0 positional arguments but 3 were given
- Altova Mapforce - How to use results from Tokenize at the same time in a database call?
- Powershell v5 - variable name replacement when referring to WPF objects
- Use javascript variable in document.querySelector (howTo)
- usage of multinomial assign javascript?
Related Questions in IBM-MIDRANGE
- Restoring a WRKLNK file
- DB2/400 SQL subqueries
- SQL - Select only records where field contains either a given string explicitly OR or a range of strings within which given string falls
- Using SQL to view AS400 Journal data - Entry_Data in particular
- IBM Rational - indentation available in Rational 9.6.0.6?
- How to get a list of programs that uses a particular command in AS400
- DB2: Query Memberfile of a Table with SQL
- Using the routine CSNBOWH on IBM I - MD5
- Doing an external webservice call from rpgle program
- Mandatory field even if not the first field
- Create command similar to WRKLIBPDM
- RPG - how do we return a parameter using C-style "Return <Value>" syntax
- Getting data from AS400/IBM i through ODBC to excel
- Unable to monitor message inside SELECT statement
- Error java.net.SocketException: Socket is closed when closing AS400 Secure RPC session
Related Questions in EMAIL-ADDRESS
- How to get email address from Azure SSO JWT?
- Can I make git config not supply the value of my email?
- Complete email addresses in a flat array using static domains (only where missing), then implode
- Regex to catch email addresses in email header
- How can I specify which email address variables should not be processed by SNDSMTPEMM command?
- Retrieve Emails addresses in CSV file in Powershell via Get-ADGroup command
- Get email addresses of users through powershell into CSV file
- Git_Bitbucket and Github with a same email address
- ASP.NET Core 6 using email addresses with umlauts ä ü ö throws exception: Requested action not taken: mailbox unavailable
- how to show customer email address on the EZ-Pages in Zen Cart?
- Azure logic apps 'o365 connector' action 'send approval email' returning null for property 'useremailaddress'. Why?
- How can I pull usernames from AD using powershell and the email addresses
- Outlook email address format: is there an equivalent of + in gmail?
- Split an email address into username, host and domain
- Regular expression capable of extracting email from strings
Related Questions in CLP
- Unable to monitor message inside SELECT statement
- I am getting error in AS400 CL program when trying to declare field with type GRAPH
- How to endjob RGZPFM in AS400
- How can I specify which email address variables should not be processed by SNDSMTPEMM command?
- how to read a data file that contain "name grade" and Calculate the GPA in clips
- Different ways of computing list length in Prolog
- How to debug non-termination
- SWI Prolog - CLP(R) not propagating fully
- What's backquote meaning in upf writed by tcl?
- REST webervice running a QSHELL script
- Call sql script from another script in CLP
- Timetable schedule and students allocation
- constrain list length in CLP (Prolog)
- Graph Coloring with CLP(FD)
- Export a CSV file from AS400 to my pc through Cl program
Related Questions in CONTROL-LANGUAGE
- How can I specify which email address variables should not be processed by SNDSMTPEMM command?
- Running a batch File in AS400
- How to run a command that submit a JOB to QBATCH then get JOB number for later use in CL PGM
- IBM i RPG programs are referencing the wrong library after calling them using a JT400 connection pool
- CLLE SNDRCVF command not allowed
- In CL programming, How to read last record of physical file member
- Any way to know which operating system the client is connected from?
- How do you display SQL Select output from CL?
- How to check if variable is blank in CL?
- Mail database file as excel from AS400
- Last Occurrence of a character in a String in a CL
- How can I call a program 100 times in a CL?
- How do you email to a userlist in CL?
- CPYTOPCD command in CLP copies the DB2 file (containing XML) successfully but file does not show in QDLS subfolders
- How do CL commands build their exact parameter lists?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It sounds like you have written or are writing your own "wrapper" for SNDSMTPEMM, and you want to be able to accept up to 20 recipients and pass them along to SNDSMTPEMM, something like
And you've defined variables for 20 recipients, and want to always include all the variables in the SNDSMTPEMM command; but of course usually there will be fewer than 20 actual recipients, so you want to know how to tell SNDSMTPEMM to ignore some of the (&ADDRn &TYPEn) variable pairs.
I do not think there is a way to do that. I think you have to pass only the variables that are needed. Probably the best way to achieve what you want is to build the SNDSMTPEMM command dynamically, as a string, and then use QCMDEXC or similar to execute that string as a command.