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

Need an opinion on the approach that we have planned to opt.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vaibhav gs

New User


Joined: 05 Apr 2018
Posts: 17
Location: INDIA

PostPosted: Wed May 02, 2018 4:45 pm
Reply with quote

Hi, we are currently working on a requirement to replace an existing mainframe screen with a webpage without interruption of underlying business logics. No tools are provided in this regards. We are also not planning to use any IMS/CICS regions for this activity.
We have gone through many approaches and many were ruled out as they need some tools/ CICS/ IMS regions to be procured.

With the knowledge that we have, we have come up with a plan. Can you please check the attached flow diagram and give your opinion on the feasibility of the same.

Please note that this is for Online mainframe screen migration to a web page.

Open to learn and get my understandings correct wherever applicable.
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: Wed May 02, 2018 6:50 pm
Reply with quote

It is not unusual for mainframe CICS programs to have business logic embedded (for validating data fields, for example) built into the code. Your approach seems to ignore this possibility.
Back to top
View user's profile Send private message
vaibhav gs

New User


Joined: 05 Apr 2018
Posts: 17
Location: INDIA

PostPosted: Wed May 02, 2018 7:47 pm
Reply with quote

True Robert, i do agree with you.
But my basic underlying rule is not to use any CICS/ IMS regions to perform this. Hence we have ignored this possibility with CICS/IMS.

Sorry, feel free to correct me if my understanding on your statement is wrong.
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: Wed May 02, 2018 7:51 pm
Reply with quote

What is the current mainframe screen using?
Back to top
View user's profile Send private message
vaibhav gs

New User


Joined: 05 Apr 2018
Posts: 17
Location: INDIA

PostPosted: Wed May 02, 2018 8:58 pm
Reply with quote

Current mainframe screen is using IMS region and COBOL code.
We are planning to move to web based screen.
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: Wed May 02, 2018 9:03 pm
Reply with quote

So is there any business logic in the COBOL code (such as screen validation of input data)? If so, how are you going to replicate that with the web page / Java code? That logic would not be in the batch programs so if you don't capture it in the web page / Java code, you will be losing functionality by converting.
Back to top
View user's profile Send private message
vaibhav gs

New User


Joined: 05 Apr 2018
Posts: 17
Location: INDIA

PostPosted: Wed May 02, 2018 9:19 pm
Reply with quote

Yes Robert true, we are planning to handle it for now but try to think of screen functionalities later point of time.

Apart from that can you please tell me if this approach sounds good or weird

Thanks for your time.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed May 02, 2018 9:31 pm
Reply with quote

I do not understand the JCL part... are you going to submit a job and somehow wait for it to complete? I think the asynchronous aspect is a weakness in the design.

Rather than have REXX submit a job and wait for it, I think the rexx should allocate whatever files are needed and use CALL command to call the COBOL program.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Wed May 02, 2018 10:13 pm
Reply with quote

Quote:
Hi, we are currently working on a requirement to replace an existing mainframe screen with a webpage without interruption of underlying business logics. No tools are provided in this regards. We are also not planning to use any IMS/CICS regions for this activity.
We have gone through many approaches and many were ruled out as they need some tools/ CICS/ IMS regions to be procured.
This is usually done for real-time work unless you are currently kicking off any batch jobs through this , are you?
You can call a SP from your Web application and then Batch jobs still can be triggered.
Look for more options here as how to do so.
Back to top
View user's profile Send private message
Gary Jacek

New User


Joined: 17 Dec 2007
Posts: 64
Location: Victoria, BC, Canada

PostPosted: Thu May 03, 2018 4:26 am
Reply with quote

You mention CICS and IMS, but your diagram shows only DB2 as a data store for a REXX stored procedure.

Does the COBOL program currently interact with IMS databases or other DB2 tables?

If applicable, is the IMS database managed by an IMS Control Region?
This could very much complicate direct access to the data.

If the COBOL program currently runs in IMS message processing regions, have you considered publishing it as a service, for consumption by your web page server? This would retain the existing business logic in the COBOL program and the IMS control region would handle the database access, logging, lock management and data recoverability.

Have a look at IMS Explorer for Development (free tooling) to see if this fits your requirement.



Back to top
View user's profile Send private message
Gary Jacek

New User


Joined: 17 Dec 2007
Posts: 64
Location: Victoria, BC, Canada

PostPosted: Thu May 03, 2018 4:29 am
Reply with quote

Two attempts to paste a URL for E4D here have failed.
So use that famous search engine called G**gle and search for "how to publish ims transaction as a service".

Good luck.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri May 04, 2018 12:54 am
Reply with quote

You can probably replace the first 3 blocks with IBM HTTP server running on Mainframe and use CGI scripts to execute REXX/JCL etc.. and return back the results to web page.

IBM HTTP Server ---> CGI scripts --> REXX/JCL

It does the same thing as the first 3 blocks, but the advantage is your application would reside completely on Mainframe without external server requirement and the complexity in interfacing it.
Back to top
View user's profile Send private message
vaibhav gs

New User


Joined: 05 Apr 2018
Posts: 17
Location: INDIA

PostPosted: Thu May 17, 2018 8:42 pm
Reply with quote

Pedro wrote:
I do not understand the JCL part... are you going to submit a job and somehow wait for it to complete? I think the asynchronous aspect is a weakness in the design.

Rather than have REXX submit a job and wait for it, I think the rexx should allocate whatever files are needed and use CALL command to call the COBOL program.


True Pedro, I was also considering this but due to the number of teams that use my application, this async operation did not bother us a lot.


Thanks much for your time and will keep you posted on any fruitful outcome. Cheers!
Back to top
View user's profile Send private message
vaibhav gs

New User


Joined: 05 Apr 2018
Posts: 17
Location: INDIA

PostPosted: Thu May 17, 2018 8:44 pm
Reply with quote

Rohit Umarjikar wrote:
Quote:
Hi, we are currently working on a requirement to replace an existing mainframe screen with a webpage without interruption of underlying business logics. No tools are provided in this regards. We are also not planning to use any IMS/CICS regions for this activity.
We have gone through many approaches and many were ruled out as they need some tools/ CICS/ IMS regions to be procured.
This is usually done for real-time work unless you are currently kicking off any batch jobs through this , are you?
You can call a SP from your Web application and then Batch jobs still can be triggered.
Look for more options here as how to do so.


Yes Rohit true for real time access but users are internal business team.
Sure will read the links and will let you know if any fruitful outcome from it.
Thanks for your time.
Cheers!
Back to top
View user's profile Send private message
vaibhav gs

New User


Joined: 05 Apr 2018
Posts: 17
Location: INDIA

PostPosted: Thu May 17, 2018 8:48 pm
Reply with quote

Gary Jacek wrote:
You mention CICS and IMS, but your diagram shows only DB2 as a data store for a REXX stored procedure.

Does the COBOL program currently interact with IMS databases or other DB2 tables?

If applicable, is the IMS database managed by an IMS Control Region?
This could very much complicate direct access to the data.

If the COBOL program currently runs in IMS message processing regions, have you considered publishing it as a service, for consumption by your web page server? This would retain the existing business logic in the COBOL program and the IMS control region would handle the database access, logging, lock management and data recoverability.

Have a look at IMS Explorer for Development (free tooling) to see if this fits your requirement.





Yes, COBOL program access few DB2 tables for fetching and saving some part of information. But not IMS databases, thanking god for that icon_smile.gif lol

This is completely new to me "publishing the service" and it sounds good. Will have to go through the links that you have given and will try to make it useful to us.

Thanks for suggesting this approach, cheers!
Back to top
View user's profile Send private message
vaibhav gs

New User


Joined: 05 Apr 2018
Posts: 17
Location: INDIA

PostPosted: Thu May 17, 2018 8:51 pm
Reply with quote

vasanthz wrote:
You can probably replace the first 3 blocks with IBM HTTP server running on Mainframe and use CGI scripts to execute REXX/JCL etc.. and return back the results to web page.

IBM HTTP Server ---> CGI scripts --> REXX/JCL

It does the same thing as the first 3 blocks, but the advantage is your application would reside completely on Mainframe without external server requirement and the complexity in interfacing it.


Hi Vasanthz, the first suggestion that was given by one of our expertforum experts is the "CGI".
But I am still not able to get full picture on how to make it as working model. I still agree this is very useful solution but could not proceed much further without a right direction.

Feel free to suggest me with any article that would have helped you to assimilate the knowledge about CGI scripts.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Cobol-DB2 Programming - Better perfor... DB2 1
No new posts Need opinion on mainframe to cloud mi... General Talk & Fun Stuff 6
No new posts Need better approach to create a sort... DFSORT/ICETOOL 8
No new posts DISP=(SHR,PASS) performance opinion JCL & VSAM 1
No new posts Introducing Commits to batch programs... DB2 10
Search our Forums:

Back to Top