View previous topic :: View next topic
|
Author |
Message |
sakrat
Active User
Joined: 05 Feb 2014 Posts: 164 Location: India
|
|
|
|
Garry Carroll wrote: |
Assuming that you can get everything done up to the point of produucing the report, continue from....
Quote: |
It checks for RC of the job submitted to make sure report is created.
Now the jcl names which the user selected from the ispf table will be founf one by one in the report and the details corresponding to the jcl will be moved to sstem variable and written into new file with comma separated.
Once all the jcls are found and written into the new file, it will be sent to the specific mail with csv format excel sheet. So that now the control m doc is created. |
If your REXX builds the necessary DFSORT/SYNCSORT control cards to identify the 'jcl names' (jobnames?) that the user entered, the necessary control cards can be built by the REXX to be used in a sort step to extract the details from the report into a comma separated file. This comma separated file can be attached in MIME format to an email to be sent by z/OS SMTP server to whatever email address you (or the users) specify. This can all be achieved within the submitted job.
Garry. |
you mean to add one more step in the job which is submitted for created the report and other for sending the mail... right...? |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Yes, one more step to process the report and produce the .csv file and another step after that to send the mail with .csv file as an attachment.
Garry. |
|
Back to top |
|
|
sakrat
Active User
Joined: 05 Feb 2014 Posts: 164 Location: India
|
|
|
|
Garry Carroll wrote: |
Yes, one more step to process the report and produce the .csv file and another step after that to send the mail with .csv file as an attachment.
Garry. |
Ok will try it out and then let you know. ... anyway thanks for helping me.. I learned a new concept sdsf in rexx and how can we use it... this topic was new learning to me..... |
|
Back to top |
|
|
|