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

Automated File transfer for windows to mainframe


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hermit_reloaded

New User


Joined: 23 Apr 2007
Posts: 26
Location: India

PostPosted: Mon Jun 25, 2007 12:34 pm
Reply with quote

Hi All,

My requirement is to create a utility that automatically transfer a text file from windows environment into mainframe. Covert it into PS. Please provide me with details as how this can be achieved.
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: Mon Jun 25, 2007 1:00 pm
Reply with quote

Hello,

Pre-allocate the file on the mainframe with the attributes you need and then schedule a process on the pc/server to push the data into the mainframe ps file whenever yo need to send a new set of data.

Your mainframe most likely is running an ftp service as your pc most likely only has an ftp client.
Back to top
View user's profile Send private message
hermit_reloaded

New User


Joined: 23 Apr 2007
Posts: 26
Location: India

PostPosted: Tue Jun 26, 2007 10:05 am
Reply with quote

i actually wanted to use batch FTP program (PGM=FTP)
Please provide details on that....
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Jun 26, 2007 11:42 am
Reply with quote

Do FTP get from Mainframe JCL.
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: Tue Jun 26, 2007 6:11 pm
Reply with quote

Hello,

If you want to "pull" the data using batch FTP on the mainframe, the pc will have to have an FTP service (daemon) running. Most desktop systems do not have FTP host software active. You will want to talk with your network/desktop support people and find out if you can set up your desktop as an FTP host.

If the data will be on a server (rather than a desktop), it may have an FTP service - some do some don't as not every server is set up to support FTP. Again, your network/server support people will know what your options are.

We're here if there are questions.
Back to top
View user's profile Send private message
hermit_reloaded

New User


Joined: 23 Apr 2007
Posts: 26
Location: India

PostPosted: Thu Jul 05, 2007 12:10 pm
Reply with quote

well it aint that
i just have a text file containing some PS dataset names.
Now i want to make a mainframe utility that will directly convert this text file in my desktop to a PS.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Thu Jul 05, 2007 12:16 pm
Reply with quote

Quote:
convert this text file in my desktop to a PS.

This Q is not clear. On desktop its all text files, so why do you want to convert to PS? well if you directly upload to text file to mainframe it becomes PS.
Back to top
View user's profile Send private message
hermit_reloaded

New User


Joined: 23 Apr 2007
Posts: 26
Location: India

PostPosted: Thu Jul 05, 2007 2:41 pm
Reply with quote

i have some information in my desktop in a text file i want to make a utility for example a job, when i submit that job a new physical sequential dataset will be created with all the details of that text file.
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: Thu Jul 05, 2007 6:27 pm
Reply with quote

Hello,

Your meaning is quite clear to you but it is not to others. . .

If you have data on the pc and want it available on the mainframe, an easy thing to do is:
1. pre-allocate a file on the mainframe to receive it - make sure the lrecl is long enough.
2. from your pc, run your ftp client and "send" the file to the mainframe.
3. read the file on the mainframe for whatever you need.
Back to top
View user's profile Send private message
hermit_reloaded

New User


Joined: 23 Apr 2007
Posts: 26
Location: India

PostPosted: Thu Jul 05, 2007 6:54 pm
Reply with quote

well i wanna do that through a utility
sort of a tool which can be used by other ppl too.
So i basically need to make a tool for transfering a text file into mainframe environment.
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: Thu Jul 05, 2007 7:40 pm
Reply with quote

Hello,

You probably already have a tool you could use - batch ftp on the desktop.

A small .bat file couild be created and run as needed to upload the data into the mainframe files.
Back to top
View user's profile Send private message
hermit_reloaded

New User


Joined: 23 Apr 2007
Posts: 26
Location: India

PostPosted: Fri Jul 06, 2007 8:13 am
Reply with quote

wanna make a seperate tool for this....
what the whole tool does is this.....
it automatically transfers one text file from the desktop environment into a PS. Now this PS will contains various file names. Now i will search for each file name in the mainframe and see if they exist or not. All this is to be done automatically. Only human interventions is submitting the job.
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 Jul 06, 2007 9:03 am
Reply with quote

Hello,

What will you do when you determine that some of the files exist and some do not?

Is there some business reason that the list of files is not entered on the mainframe - either as a member of a pds or as a sequential file? If you had a pds, you could have one or more members for each user and use this without needing ftp icon_confused.gif

If you take a bit of time and clearly explain your entire requirement, you will probably get better replies. So far your requirement has expanded as the topic progresses. . .
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 -> All Other Mainframe Topics

 


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 Email attachment from mainframe is empty PC Guides & IT News 9
No new posts Format Binary file to EBCDIC JCL & VSAM 4
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
Search our Forums:

Back to Top