.OS command

Tools & Utilities
Enthusiast

.OS command

Hi,

we are doing a conversion from unix to mainframe.

In which we have the following os command in bteq script:
.os mailx -r "xxxxxx" -s "STEPyyyy-- Personal" abcd@xyz.com < error_message.txt

Now we need to convert this to mainframe i.e we need to send mail through mainframe instead of unix.

As .OS command works only in unix/Dos environment; we need an alternative to .OS command for mainframes.

any help will be appreciated
1 REPLY
Enthusiast

Re: .OS command

Got the answer....

We used the RC(return code) from the bteq as an input to the jcl (using if clause)
and further execute the mailing part. i.e

JCL JOB:

//s1 exec pgm=xyz --> calls the bteq script
//cond1 if rc=1 then --> gives the return code from bteq
//mailerr exec pgm=pqr --> the mailing part
// endif