Page 1 of 1

How to find the Mainframe Host Name?

Posted: Wed Dec 10, 2014 6:42 pm
by Rahul Bansal
Hello,

I need FTP a file to mainframe. I connect to mainframe using Citrix. And I don't know the host name for mainframe. Is there any way I can get the IP of the mainframe so that I can FTP the file using the TSO ID and Password.

Thanks.

Re: How to find the Mainframe Host Name?

Posted: Wed Dec 10, 2014 6:46 pm
by enrico-sorichetti
if You have the need to know/do your support will be glad to provide the info

if the info was not given probably You are attempting something that You should not!

Re: How to find the Mainframe Host Name?

Posted: Thu Dec 18, 2014 2:19 pm
by Rahul Bansal
Enrico, that's a nice suggestion buthave you ever worked at offshore location? Probably not, getting such info is like you are asking for their life!

Can someone please edit the "fid" to "find"? I just realized this.

Re: How to find the Mainframe Host Name?

Posted: Thu Dec 18, 2014 2:23 pm
by Anuj Dhawan
Rahul Bansal wrote:Can someone please edit the "fid" to "find"? I just realized this.
Done. :)

Re: How to find the Mainframe Host Name?

Posted: Thu Dec 18, 2014 2:33 pm
by Anuj Dhawan
Usually, in the started task JCL for TCP, there is a DD card for PROFILE. Look for the data-set assigned to this DD and you should find the Port definitions. Or try this, possibly:

Code: Select all

/* REXX */                                                  
PARSE VALUE SOCKET('INITIALIZE', 'TEST') WITH RC . . SERVER 
PARSE VALUE SOCKET('GETHOSTID') WITH RC IP                  
SAY IP                                                      
PARSE VALUE SOCKET('TERMINATE','TEST') WITH RC REST          
EXIT

Re: How to find the Mainframe Host Name?

Posted: Thu Dec 18, 2014 2:45 pm
by enrico-sorichetti
buthave you ever worked at offshore location?
where I have worked is irrelevant!

and anyhow You should check with somebody about WHAT You are allowed to do
don' t You have a coordinator somewhere ?

Re: How to find the Mainframe Host Name?

Posted: Fri Dec 19, 2014 4:54 am
by Robert Sample
Usually, in the started task JCL for TCP, there is a DD card for PROFILE. Look for the data-set assigned to this DD and you should find the Port definitions
Actually, in the HOME section of the PROFILE data set you can find the IP address(es) assigned to that LPAR. Depending upon the site there could be 1 or more IP addresses assigned to each LPAR. You may be able to read this data set but I'm not sure -- it may depend on the site.

Re: How to find the Mainframe Host Name?

Posted: Tue Dec 23, 2014 3:38 pm
by Rahul Bansal
Thanks for the directions.