Page 1 of 1

Dynamic assigend IP addresses

PostPosted: Thu Jun 13, 2013 12:33 am
by Beauxti
I think the answer is no - but going to ask anyway- I have a situation where IP addresses are hard-coded in JCL. Not just one or to JCL sources but thousands. It did not get this way overnight, but years of little bit at a time. Now I have to change them as we are moving Systems around (just trust me on this, we have to change them) . Is there a feature / Utility / Function in JCL that would allow me to create a Dataset of IP address and have the JCL access the data set for the correct IP address to use at run time. Just trying to figure out a way NOT to do this in the future, but allow some simple mapping to be managed in the dataset. Thanks in advance for and and all help!

Re: Dynamic assigend IP addresses

PostPosted: Thu Jun 13, 2013 12:45 am
by Akatsukami
I can't think of any case where JCL uses an IP address; it's quite possible that they are being used in control cards that are being miscalled JCL, as is so often the case. If so, a direct use of such a data set would depend on the program; you could probably write a Rexx scriptette to pick out the wanted IP address and edit the control cards.

Re: Dynamic assigend IP addresses

PostPosted: Thu Jun 13, 2013 1:07 am
by Robert Sample
If you are asking about dynamically changing the IP address when the job is executed, I don't think there is any way to do that -- IP addresses get passed to TCP/IP and I'm not aware of any exits to change them before use. And, after all, the whole point of using DNS entries instead of IP addresses is that if the IP address changes then the DNS entry gets updated and nothing else (such as JCL) needs to be modified.

Depending upon how many you have, either manual edit of the JCL or a program (in the language of your choice) to scan the JCL lines, find IP addresses, and change them to (hopefully DNS entries) their new values would be the best way to proceed.

Re: Dynamic assigend IP addresses

PostPosted: Thu Jun 13, 2013 8:50 pm
by dick scherrer
Hello and welcome to the forum,

In the forum there are some examples of editing a pds and changeing a value to some other value in all of the members.

This might save you lots of manual editing (with the assiciated risk of typos). Suggest you search in the REXX part of the forum.

Re: Dynamic assigend IP addresses

PostPosted: Fri Jun 14, 2013 7:55 pm
by Ed Goodman
Yes, yes there is...it's called a DNS. You have your network folks add these machines as named destinations. For example, your mail server for the shipping department becomes shipping.mail.server instead of 10.4.128.9. That gets put into a DNS and and when the FTP or whatever tries to read the host name, it gets the IP address.

It's all standard stuff and it saves a ton of headaches like this.

Re: Dynamic assigend IP addresses

PostPosted: Fri Jun 14, 2013 8:01 pm
by dick scherrer
Hello,

If your organization can be convinced to fo to DNS (the preferred way to do this), your process would still be used for the "switch".

Re: Dynamic assigend IP addresses

PostPosted: Wed Jun 26, 2013 9:51 pm
by Beauxti
THANKS team for the feed back -DNS it is. Still don't like hard coding that either, even with the added abstraction feature.