I need to use IND$FILE to transfer a mainframe PDS down to a PC. I can do it member by member, but I'm hoping someone knows how to do it with one command that will load the PDS members into different files on the PC or even one file that can be parsed.
When I try a GET using the (mainframe.library(*)) syntax it does not like the (*) "denoting all members" parameter. Thanks.
I don't know if 3270 scripting is present. If so, I'm not familiar in coding it. We use Attachmate EXTRA.
As for FTP, it's a long story but the site with the PDS is a secondary site that is being linked to through another mainframe which is where our 3270 session is hosted.
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Hello,
Your pc most likely has/is a tcp/ip client. FTP is part of this.
Your 3270 connection should play no part in an ftp.
Find the ip address of the lpar with the pds you want to work with and (if you have an id for that system with proper permissions) you can download easily. . .
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
You did not provide enough information to say that you're having firewall issues. Did this FTP get initiated from the mainframe or from your PC? From the EDC8128I message, it appears to be started by your mainframe. If this is the case, be aware that FTP must connect to a server. Most desktop PCs do not run the software that would allow them to act as an FTP server. In general, it is not possible (except in very rare circumstances) to FTP from anything to a desktop PC.
That's where I began from (if you see my first post). I tried that using IND$FILE file transfer. I can download one member at a time from the PDS, but I'd like to download the entire PDS with one command. I was hoping that was possible and someone here could give me syntax help.
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
Quote:
I was initiating the FTP from a 3270 client on my PC. A 3270 client that was connected to the IP I was trying to FTP from.
This makes absolutely no sense. It does not matter if your 3270 emulator is connected to the mainframe or not. If your are running a batch job on the mainframe to do the FTP, it must connect to a server -- not a desktop PC (not even one running a 3270 emulator).
If you were, indeed, attempting to use FTP on the PC to connect to your mainframe then you do have network issues and need to contact your site support group since they are the only ones who can help you.
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
They're not the same thing. Beyond that, since I don't have Attachmate, and haven't worked in a shop that has IND$FILE enabled in at least 15 years, I have no further comments.
I'm thinking with the 3270 client I have the ability to push or pull files from the lpar IP. Due to firewall issues I can not push (FTP) from the lpar ip to our site here. Make sense?
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Hello,
It sounds like you are running hard without a direction. . .
Suggest you find the ip address of the ftp service on the mainframe with the pds and make sure you have an id and permissions on that system (if the pds is on shared dasd, there may be other possibilities).
On your pc, open the ftp client and log onto that ftp ip address.
b) Use IND$FILE to download the resulting flatfile to the PC
c) Use "whatever" to parse/process the downloaded flatfile.
Note1: The unloaded flatfile will be RECFM FBA, so column 1 of each record will be a control byte that is NOT part of the unloaded data
Note2: In the flatfile each unloaded member will be preceded by a header ( starting in column 2, of course ) of the form:
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
The ISPF option:
7 Transfer Download ISPF Client/Server or Transfer data set
requires that you have the ISPF Workstation Agent (WSA) installed, configured, and running on your workstation. The WSA runs on your local workstation and maintains a connection between the workstation and the ISPF host.
Thanks. I have a request in with the lpar owner, where the PDS is housed, to let me know if I should be using a different IP (the FTP service)or not. If it's the same then I guess we have a firewall issue here. Not allowing a push into our firewall from this site.
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
f8ful, you have completely and totally missed the point of Kevin's post. If your PC does not have WSA installed on it, there is no firewall issue -- there is no network issue -- there is an issue on your PC.
Actually, PEBKAC applies here very strongly. You're ignoring what you are being told and going off on your little fantasy, where you think there are network issues without any indication of such.
Your PDS to flat file sounds doable for sure. I'll hold out at this point for a PDS to "somehow" parsed PC file. We are talking over 700 members at roughly 4000 lines of code apiece.
The 3.7 option is apparently not defined for us as I get "no connnection" when I try to initiate 3.2 option 2 (Data Set Download/upload ISPF library, partitioned, or seq data set).
Getting that established would probably be probelematic since I'm talking outside our organization.
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Hello,
Quote:
Not allowing a push into our firewall from this site.
If you do this as i suggested, there will be no "push". You would PULL the data from the mainframe.
The only way you could PUSH the data onto your pc with ftp is if your pc was configured as an ftp server not a client. Most organizations do not permit individual pc's to run an ftp server. . .
As I said, I have a request in for IP information with the lpar owner. The only way I know to initiate FTP from my PC is through the 3270 client that I have and this would actually be initiating the FTP from the lpar which would constitute the "PUSH". If 3.7 (TSO) is initiating FTP from my PC then I have "no connection".
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Hello,
Quote:
The only way I know to initiate FTP from my PC is through the 3270 client that I have
Then it is time to learn more. . . What you know is quite incomplete.
FTP is part of your tcp/ip software. To see this, go to the old command prompt and at the > key ftp and press Enter. You will (should) see ftp> from whence you can run an ftp session "by hand".
Your system most likely has a Windows version of FTP that supports point-and-click. . .
It is possible that your 3270-emulator, ftp, and other features are all part of an overall product, but ftp will run even if the 3270 is not connected.