How to find the Mainframe Host Name?

JES2/3, JCL, utilities.
Post Reply
Rahul Bansal
New Member
Posts: 5
Joined: Wed Jun 18, 2014 2:34 am

How to find the Mainframe Host Name?

Post 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.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: How to find the Mainframe Host Name?

Post 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!
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Rahul Bansal
New Member
Posts: 5
Joined: Wed Jun 18, 2014 2:34 am

Re: How to find the Mainframe Host Name?

Post 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.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: How to find the Mainframe Host Name?

Post by Anuj Dhawan »

Rahul Bansal wrote:Can someone please edit the "fid" to "find"? I just realized this.
Done. :)
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: How to find the Mainframe Host Name?

Post 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
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: How to find the Mainframe Host Name?

Post 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 ?
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1889
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: How to find the Mainframe Host Name?

Post 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.
Rahul Bansal
New Member
Posts: 5
Joined: Wed Jun 18, 2014 2:34 am

Re: How to find the Mainframe Host Name?

Post by Rahul Bansal »

Thanks for the directions.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”