View previous topic :: View next topic
|
Author |
Message |
abdulrafi
Active User
Joined: 14 Sep 2009 Posts: 184 Location: Coimbatore
|
|
|
|
Hi,
I am stuck up with this issue,
I do have a requirement to get some values from IMSDC screens and pass it to BMP jobs. I searched in the forum to find if any. There were some things like, placing it in the queue and then retrieving it. But I can’t do that because I need it in a different way.
Is there a possibility to do like the one below:
1. To pass a message like, ‘DATABASE UPDATED’ and update it to a file and further use it for BMP jobs for triggering. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
But I can’t do that because I need it in a different way |
This needs clarification. Why can't you do this?
You might consider writing a new database table entry for the info to be passed to the next process. I'd prefer s new table to support this rather than introducing additional complexity to other table(s) / process(es). |
|
Back to top |
|
|
abdulrafi
Active User
Joined: 14 Sep 2009 Posts: 184 Location: Coimbatore
|
|
|
|
That is because I do not want to create a new DB2 table or anything like that which might increase complexity. Could I be able to do it without going for DB2 table. Is there any way to get the value from the screen to something what I am expecting for ??. I am still digging into to figure out a way if possible......... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Why mention db2 - i didn't. . .
My thought was that a new ims table would be less complex and and have less impact on existing processes than trying to "weave" this new opportunity thruoughout the existing design. . .
It doesn't have to be difficult, but will take a bit of effort regardless of how you implement. |
|
Back to top |
|
|
abdulrafi
Active User
Joined: 14 Sep 2009 Posts: 184 Location: Coimbatore
|
|
|
|
Please let me know if my understanding is correct.
After loading the message to ims table, i need to have a BMP program to retrieve, load it to a file and send a mail to the user for notifications.
Am I rite ?. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Yes, if this accomplishes what you want. . .
Once retrieved and processsed, these new entries probably should be deleted (or marked as processed - again, depending on what you want/need). |
|
Back to top |
|
|
abdulrafi
Active User
Joined: 14 Sep 2009 Posts: 184 Location: Coimbatore
|
|
|
|
But my user needs something like this,
Soon after some transaction happens on the IMSDC online screens I need to trigger the email to him, ie) there must not be any delay in the response time. If i use some tables and BMP programs it would consume some time. So is there any way to do what i expect ?.
Plz help me out. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Let the transaction send a message to the syslog, let system automation pick up this message and trigger the e-mail process. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
there must not be any delay in the response time. If i use some tables and BMP programs it would consume some time. So is there any way to do what i expect ?. |
Sorry, but this is nonsense. . . I suspect the organization will not go out of business if the e-mail info is not instantly available.
No matter when/how an e-mail is sent, there is no way to guarantee instant delivery. . .
Why does someone believe this is even desirable let alone critical . . . |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
dick scherrer wrote: |
Hello,
Quote: |
there must not be any delay in the response time. If i use some tables and BMP programs it would consume some time. So is there any way to do what i expect ?. |
Sorry, but this is nonsense. . . I suspect the organization will not go out of business if the e-mail info is not instantly available.
No matter when/how an e-mail is sent, there is no way to guarantee instant delivery. . .
Why does someone believe this is even desirable let alone critical . . . |
Hello Dick,
with SA/390 ( probably a Tivoly component now) we (me and my group) could do all that stuff within seconds. But then you need the system automation environment (Tivilo/SA/390 etc) |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hi Peter,
Yup, but even with seconds, there is that delay. . . Even if the mainframe "sends" the thing quickly, i know of no way to make sure the e-mail system receives it so quickly. I guess i'm just wondering how something like this could actually be a requirement?
Everything i've worked on that information was "instantly" required was done in the online/realtime. User ran the transaction and the transaction told the user what it had done. There was no sending e-mails or files to inform someone that what they had done had happened . . .
My sites send lots of informational e-mails saying that this or that is ready to download or that some process has been sent to the printer or whatever. The difference is there is no reason that it be available "right now".
As i often do, i'm probably missing something
d |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
I need to trigger the email to him, ie) there must not be any delay in the response time. |
Go back to whoever gave you this requirement and point out to them that it cannot be met. The Internet standards allow an email -- ANY EMAIL -- to take hours, or even days, to be delivered and this is not an issue. Hence your requirement cannot be met unless you stop using email on the Internet -- as long as you do, IIRC the email is allowed to take up to 3 days (72 hours) before being flagged as undeliverable. |
|
Back to top |
|
|
abdulrafi
Active User
Joined: 14 Sep 2009 Posts: 184 Location: Coimbatore
|
|
|
|
I don know if i made you people understand wrongly,sorry for it, 'I need to trigger the email to him, ie) there must not be any delay in the response time.' It means that soon after some transaction happens it should not get delayed to run the bmp job to trigger the e-mail. it needs to trigger soon after the transaction has happened on the screen.
In case of bmp i need to schedule a job accordingly to trigger it, as it would take some time to run the program and retrieve the data from table and so on, but i would require a different way to trigger it. hence I asked if there is something i can do to trigger it having a quicker response time. let the email deliver after 2 days or so, it does not matter but the process happening on the transaction and mail triggering should be quick.
Please suggest me. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I don know if i made you people understand wrongly,sorry for it |
Yup, i believe most of us misunderstood. . .
Are you familiar with the "internal reader"? Suggest you ask your site support if it is permissable to submit a job this wasy. |
|
Back to top |
|
|
abdulrafi
Active User
Joined: 14 Sep 2009 Posts: 184 Location: Coimbatore
|
|
|
|
I found out a way to trigger a BMP job from an IMS online screen. The function CMD in IMS program could do it. The code is like,
Code: |
CALL 'CBLTDLI' USING FUNCTION-CMD
I-O-LTERM-PCB
DC-CMD-AREA
01 DC-CMD-AREA.
05 DCMDA-LL PIC S9(4) COMP VALUE +84.
05 FILLER PIC X(02) VALUE LOW-VALUES.
05 DCMDA-USER-AREA.
10 DCMDA-COMMAND PIC X(5) VALUE '/STA '.
10 DCMDA-KEYWORD-OPT.
15 DCMDA-KEYWORD PIC X(7) VALUE 'REGION '.
15 DCMDA-PROCNAME PIC X(8) VALUE SPACES.
15 FILLER PIC X(60) VALUE SPACES. |
This will trigger the BMP job. The procname or the jcl name needs to be passed to DCMDA-PROCNAME field and then it would trigger it from the library specified. With this we can run any prorgam and use the IEBGENER to send out e-mails
One doubt: Is there a possibility to send any message directly from the online screen to the BMP job ?. In this case I am only triggering the job and then performing the sql calls and so on. Instead can I pass any message directly to the BMP job by any way other than using table/databases?.
Please suggest me ...... |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
Is it possible to have a DD allocated to the IMS region that is attached to the mainframe SMTP server? (I don't know, I'm asking)
Like in the batch job, you have
//MAILDD DD SYSOUT=(X,SMTP)
Can we put that in a start up deck?
If so, you could write it straight out of the region, no BMP needed. |
|
Back to top |
|
|
|