Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Receive a file from jdbc to mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
tiruvathuruk
Warnings : 1

New User


Joined: 30 Sep 2008
Posts: 6
Location: Pune

PostPosted: Tue Oct 21, 2008 4:17 pm    Post subject: Receive a file from jdbc to mainframe
Reply with quote

I have a requirement in which I have to receive a file from jdbc and copy the contents of the file to a GDG.

Could some body tell me the best approach for this.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7936
Location: Bellevue, IA

PostPosted: Tue Oct 21, 2008 4:56 pm    Post subject:
Reply with quote

Write an interface to get the file and update the GDG? More importantly, since Excel formatted files are not readable on the mainframe, just what do you think you're going to accomplish by putting such a file into a GDG? Now if it were comma-delimited, I could see doing this (maybe) -- but not an Excel file.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Tue Oct 21, 2008 9:49 pm    Post subject:
Reply with quote

Hello,

Quote:
Could some body tell me the best approach for this.
Create a delimited text file on the remote system and transfer the text file to the mainframe for processing.

None of the proprietary Windows/"office" formats are easily usable on the mainframe.
Back to top
View user's profile Send private message
tiruvathuruk
Warnings : 1

New User


Joined: 30 Sep 2008
Posts: 6
Location: Pune

PostPosted: Wed Oct 22, 2008 7:13 pm    Post subject: Reply to: Receive a file from jdbc to mainframe
Reply with quote

Thanks for the replys.

The major concern is how to get the file from jdbc to mainframes environment. The job will run for every 6 hours to capture the latest changes on JDBC side.

I am contemplating two ways for the above req:

1) to convert the EXCEL to a txt ( this will be done on JDBC) and then receive the txt file into mainframe. My doubt is whether we can receive a file in java server into mainframe using FTP job ?

2) To load the data into a DB2 table ( from JAVA side ) and access that table and create a report

Please suggest a better method if there is feasibility of above two options
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7936
Location: Bellevue, IA

PostPosted: Wed Oct 22, 2008 7:37 pm    Post subject:
Reply with quote

From a Google search, there's free Java FTP classes available. Write an FTP to transfer data to JES on the mainframe so a job is submitted; this job can process your data and do whatever you need. Depending on the requirements you may want one FTP to upload the data, then another FTP to submit a job to process the data.

In a production environment, I would also be concerned about ensuring a failed transfer won't cause the same data to be picked up every 6 hours until the problem is fixed.
Back to top
View user's profile Send private message
tiruvathuruk
Warnings : 1

New User


Joined: 30 Sep 2008
Posts: 6
Location: Pune

PostPosted: Thu Oct 23, 2008 5:47 pm    Post subject: Receive a file from jdbc to mainframe
Reply with quote

Hi Robert,

Thanks for your reply and i would be keep in mind the consequences of FTP fails.

Thanks once again.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us