IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Passing values from IMSDC screens to BMP jobs.


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Thu Jul 21, 2011 5:43 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 21, 2011 7:47 pm
Reply with quote

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
View user's profile Send private message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Fri Jul 22, 2011 11:10 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 22, 2011 9:24 pm
Reply with quote

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
View user's profile Send private message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Mon Jul 25, 2011 9:39 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jul 25, 2011 9:44 pm
Reply with quote

Hello,

Quote:
Am I rite ?.
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
View user's profile Send private message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Thu Jul 28, 2011 4:00 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 28, 2011 4:24 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 28, 2011 7:47 pm
Reply with quote

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 . . . icon_confused.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 28, 2011 9:39 pm
Reply with quote

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 . . . icon_confused.gif


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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 28, 2011 10:05 pm
Reply with quote

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 . . . icon_confused.gif

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 icon_smile.gif

d
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Jul 28, 2011 10:43 pm
Reply with quote

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
View user's profile Send private message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Fri Jul 29, 2011 11:47 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 29, 2011 7:29 pm
Reply with quote

Hello,

Quote:
I don know if i made you people understand wrongly,sorry for it
Yup, i believe most of us misunderstood. . . icon_smile.gif

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
View user's profile Send private message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Wed Aug 10, 2011 2:58 pm
Reply with quote

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
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Wed Aug 10, 2011 8:50 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
Search our Forums:

Back to Top