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

File access in IMS Online Processing


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

New User


Joined: 21 Aug 2007
Posts: 4
Location: Philadelphia, PA 19018, USA

PostPosted: Fri Aug 24, 2007 6:34 am
Reply with quote

Hi,
I am trying to convert Batch to IMS DC for Online Transaction. Currently in Batch I am having many input files(Flat/VSAM)/BDAM) which I need to access in Online Processing also. Also I came to know that files cannot be accessed in Online transaction. Could anyone please tell me is there any other method to access these input files other than using any tools? I have also heard like we can relate the files to our IMS DBD and add the DBD in my Online PSB. Is this a correct method to access files in Online Transaction? If yes, can anyone explain this process in detail.

Moumita.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Aug 24, 2007 7:03 am
Reply with quote

Hello,

You might want to re-think why a multi-file batch process is being converted to run online. If the existing code is using flat. vsam, and bdam files it does not sound like a good candidate for online processing.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Fri Aug 24, 2007 8:07 am
Reply with quote

Quote:
we can relate the files to our IMS DBD and add the DBD in my Online PSB

Are you thinking of converting your flat files to IMS Database?
Back to top
View user's profile Send private message
moumita

New User


Joined: 21 Aug 2007
Posts: 4
Location: Philadelphia, PA 19018, USA

PostPosted: Fri Aug 24, 2007 8:20 am
Reply with quote

I need to access all the Input files which were already present in my Batch Processing somehow in my IMS Online Processing. So is it possible to relate all the files in one DBD in IMS region and add that DBD along with my Online PSB? Please suggest me some method so that I can access the files in my programs.

Moumita.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Sat Aug 25, 2007 1:59 am
Reply with quote

Hi moumita.

NO. Who in the big wide world thought up such a thing? icon_lol.gif
Back to top
View user's profile Send private message
moumita

New User


Joined: 21 Aug 2007
Posts: 4
Location: Philadelphia, PA 19018, USA

PostPosted: Sat Aug 25, 2007 2:27 am
Reply with quote

In order to receive an instant ouput, this conversion of Batch to IMS Online was decided. Any approach will be fine for this realtime. If converting to IMS Online is not possible, then I should think of some other method which has the provision of handling files. In case if anyone have any suggestions, please let me know. Thanks for your answers icon_smile.gif .
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Sat Aug 25, 2007 2:30 am
Reply with quote

Do you have bmp? You may want to consider triggering your job via an online screen - much easier - much more efficient. Then you could "write" the results to an IMS HDAM database - fast, easy and simple. I did this with a settlement process I wrote - just in case you were wondering...............
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Sat Aug 25, 2007 2:32 am
Reply with quote

Quote:
receive an instant ouput
you can run your batch job whenever it is required.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Sat Aug 25, 2007 2:33 am
Reply with quote

Forgot to say that you can message switch to the UCC7 (CA7) region to submit the job.
Back to top
View user's profile Send private message
Karthigaiselvan

New User


Joined: 11 Dec 2006
Posts: 35
Location: India

PostPosted: Wed Aug 29, 2007 10:52 pm
Reply with quote

I think you can use GSAM technique if your application is going to use BMP mode of processing. GSAM will not work out with MPP (Transaction oriented Screens). GSAM is a technique used to access (Read / Write) a flat file using IMS calls. So you need to have your PSB including DD names used for your files in the job. Hope this helps as a pointer, you can explore this more by referring to documents.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Wed Aug 29, 2007 11:13 pm
Reply with quote

hi Karthigaiselvan,

Did you read the original problem/question?
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Sun Sep 02, 2007 9:15 pm
Reply with quote

Indeed.......GSAM is not for an MPP but for a BMP. May be CICS could help you out.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Sun Sep 02, 2007 9:36 pm
Reply with quote

BTW......is your requirement to run in IMS DC (using terminals) or just in an environment capable of processing messages? A BMP is capable of processing messages.
Back to top
View user's profile Send private message
moumita

New User


Joined: 21 Aug 2007
Posts: 4
Location: Philadelphia, PA 19018, USA

PostPosted: Wed Sep 05, 2007 11:15 pm
Reply with quote

Hi Bitneuker,

My requirement is to change a batch program to online. Previously I was receiving a input file(having say 100 records) which will be processed by my Assembler program. My program will update some data in IMS DB and send out some output files also. This program reads some more Input files also for the processing. This was done in Batch.

Now I have to convert this processing to online. This is mainly because I want each and every record of my input file one by one to get updated in IMS DB and send out the files immediately. Now that files won't be present, I need to get the records put in a message queue from which I can get the records one by one. Now the problem is accessing other Input files. These are received from various sources. So I might need to put them in Database to access them in my program. I am currently exploring this possibility.

Thanks for all your responses.
Moumita
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 Unable to interpret a hex value to De... COBOL Programming 4
No new posts how to eliminate null indicator value... DB2 7
No new posts Check if CICS is online in JCL CICS 10
No new posts Format Binary file to EBCDIC JCL & VSAM 4
No new posts Access to macro definitions PL/I & Assembler 4
Search our Forums:

Back to Top