Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can 6.7 connect to the IBM Host/MF? 1

Status
Not open for further replies.

clk430

Programmer
Sep 21, 2005
235
US
Win2K 6.7.1

Just wondering if there is an adapter in DataStage that can allocate datasets on the mainframe and FTP the data to it?
 
I don't understand. You just ftp data files to the mainframe normally and let the mainframe processing handle the data layout.
 
I guess I don't understand. We usually have mainframe jobs that pick up files from our ftp server after Mercator process them. I'm not a mainframer, so I never FTP'd directly to the MF. What do you mean MF processing handling the layout? JCL?
 
After more thought, as long as the dataset is allocated properly (size, name) etc, you can simple move a file with the same qualifiers (ex. edi.mydata.tothemf) and it will automatically FTP it in that pre-alocates dataset?

What about generation datasets?
 
Can you pull files from the MF as well?
 
Ok, here is a simple put and get example (command line FTP on Windows)

ftp
open your_mf_host_name
user johndoe
password whatever

put c:\test.txt test.text

Now - if the target file (on the mainframe) does not exist then you will need to 'add' allocation attributes via a QUOTE SITE command before executing the put command.

Another example

quote site lrecl=80 recfm=fb
put c:\test.txt test.text

Also - depending upon how your mainframe FTP daemon is setup - Default allocation attributes etc.. you may need to do some experimenting with some puts and gets and also talk to the resident 'systems programmer/staff' to get the default attributes. These examples will allocate (create) a dataset on the mainframe with my HLQ (High Level Qualifier) - usually your TSO USERID that you log onto.

If you need to output (put) to a specific HLQ... then you need to wrap the target dataset in quotes..

Example;

put c:\test.txt 'TEST.TEXT.DATASET'

get is bascially the same man..

Here is IBM's URL to the Communications Server Bookshelf

There you want to read (if you like) the book entitled
z/OS V1R4.0 CS: IP User's Guide and Commands - FTP chapter
Here is that specific URL;
Mercator can FTP (put and get) to and from the mainframe no problem.. FTP is FTP..

zSoftware
 
It depends.... VSE or MVS MF environment?

In either case VSAM = no. The file must be defined before FTPing.

In the case of VSE = No. Again, file whether 6.7 is pushing or MF is pulling the file must be defined before the FTP will be successfull.

MVS, non-vsam = ? don't know. You might be able to allocate create the file and allocate on the fly. Don't know enough to answer your question.

Also, would you be delete/defining the file with each FTP? or, appending FTP data throughout the day until a batch is run on the MF? You'd need to define the file as 'reuse' when defining the file.

We've found it best to let the JCL define the files and perform a get or at then end of a batch cycle define a new file for the next day.

Finally, we found it easier or less envolved to let the JCL perform a get. For the map to push the files we need to have our MF admin perform additional setup related to the file and DD name.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top