is there any possibility to change the IP by using a JCL?
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 19
- Joined: Mon Jul 11, 2011 8:57 pm
is there any possibility to change the IP by using a JCL?
We have huge production jcls, one default IP address has included in all those JCLs , query is: is there any possibility to change the IP by using a JCL?
No, but you could use rexx (if you know rexx or have a co-worker who does) or you could unload the members using a utility, edit the unloaded file, and reload after the ip address has been changed.
Talk with your peers or system support people for how this might be done on your system.
Talk with your peers or system support people for how this might be done on your system.
Have a good one
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
since you have to change the jcl anyway,
suggest that IP address be contained in a pds member,
and the dsn for the pds member in the jcl be populated by symbolics.
the ip address input can be concatenated in the sysin or where ever it is needed.
that way you don't have to keep editing the 'files' in the event of new or additional IP's.
suggest that IP address be contained in a pds member,
and the dsn for the pds member in the jcl be populated by symbolics.
the ip address input can be concatenated in the sysin or where ever it is needed.
that way you don't have to keep editing the 'files' in the event of new or additional IP's.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
-
- Member
- Posts: 19
- Joined: Mon Jul 11, 2011 8:57 pm
I have already been done like that, copied those members into my own new dataset and i have changed the IP. But my question is there any chance to change those IPs which is in my Dataset by using JCL(utility) or tools.DikDude wrote:No, but you could use rexx (if you know rexx or have a co-worker who does) or you could unload the members using a utility, edit the unloaded file, and reload after the ip address has been changed.
Talk with your peers or system support people for how this might be done on your system.
Imp Note: i gathered all those members in my own dataset, now change part is pending. Any idea
Sure you can - but it depends on how your new dataset is defined. . .But my question is there any chance to change those IPs which is in my Dataset by using JCL(utility) or tools.
If you have a ps with all of the members with delimiter records (utility control statements) globally edit the ip adddress to the new one and then run the utility to load them into a new pds. If your new file is a pds, you will need to implement something that will work member by member.
It would be a good time to consider what Dick B recommended and do the work only once - not each time something in the ip world changes. . .
As far as applying a change to a group of members within a PDS, here's a list of some ideas, you can pick and choose what might work for you in your environment:
1. Use the standard utility IPOUPDTE. This is meant for your typical JCLLIB, PROCLIB, and PARMLIB type of data.
2. Use a standard third-party utility (File-Aid, FileManager, PDSFAST, etc.)
3. Use IEBPTPCH to "PUNCH" the PDS into a sequential dataset, then apply your changes to that dataset, reformat it into a standard IEBUPDTE-ready input dataset, and use IEBUPDTE to build a new PDS from the sequential dataset.
4. Programatically. This is a broad topic, but you have many resources available, depending on your skillsets. There are ISPF Edit Macros, ISPF Library Management Services, regular TSO edits, REXX, CLIST, COBOL, Assembler, etc.
1. Use the standard utility IPOUPDTE. This is meant for your typical JCLLIB, PROCLIB, and PARMLIB type of data.
2. Use a standard third-party utility (File-Aid, FileManager, PDSFAST, etc.)
3. Use IEBPTPCH to "PUNCH" the PDS into a sequential dataset, then apply your changes to that dataset, reformat it into a standard IEBUPDTE-ready input dataset, and use IEBUPDTE to build a new PDS from the sequential dataset.
4. Programatically. This is a broad topic, but you have many resources available, depending on your skillsets. There are ISPF Edit Macros, ISPF Library Management Services, regular TSO edits, REXX, CLIST, COBOL, Assembler, etc.
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Crisp and clear! Thanks for being on the board...MrSpock wrote:As far as applying a change to a group of members within a PDS, here's a list of some ideas, you can pick and choose what might work for you in your environment:
1. Use the standard utility IPOUPDTE. This is meant for your typical JCLLIB, PROCLIB, and PARMLIB type of data.
2. Use a standard third-party utility (File-Aid, FileManager, PDSFAST, etc.)
3. Use IEBPTPCH to "PUNCH" the PDS into a sequential dataset, then apply your changes to that dataset, reformat it into a standard IEBUPDTE-ready input dataset, and use IEBUPDTE to build a new PDS from the sequential dataset.
4. Programatically. This is a broad topic, but you have many resources available, depending on your skillsets. There are ISPF Edit Macros, ISPF Library Management Services, regular TSO edits, REXX, CLIST, COBOL, Assembler, etc.
Regards,
Anuj
Anuj
-
- Member
- Posts: 19
- Joined: Mon Jul 11, 2011 8:57 pm
Sorry for delay note, i was on holiday
Sorry for delay note, i was on holidayMrSpock wrote:As far as applying a change to a group of members within a PDS, here's a list of some ideas, you can pick and choose what might work for you in your environment:
1. Use the standard utility IPOUPDTE. This is meant for your typical JCLLIB, PROCLIB, and PARMLIB type of data.
2. Use a standard third-party utility (File-Aid, FileManager, PDSFAST, etc.)
3. Use IEBPTPCH to "PUNCH" the PDS into a sequential dataset, then apply your changes to that dataset, reformat it into a standard IEBUPDTE-ready input dataset, and use IEBUPDTE to build a new PDS from the sequential dataset.
4. Programatically. This is a broad topic, but you have many resources available, depending on your skillsets. There are ISPF Edit Macros, ISPF Library Management Services, regular TSO edits, REXX, CLIST, COBOL, Assembler, etc.
Awesome, Can you please tell me is it possible thru FileAID, if it so help to do it.
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
-
- Member
- Posts: 19
- Joined: Mon Jul 11, 2011 8:57 pm
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page