Hello,
I am looking for a way of updating the same file on about 13 different boxes, I'm open to most suggestions as long as they don't involve changing iSeries configurations (like adding records to the database directory)
Usually I just login to each machine and update it through STRSQL, but this is monotonous and mind numbing.
We have a central development box that has access to the boxes I want to update (i.e. via FTP or TELNET) so the plan is to create something on that box which updates the files on the relevant machines.
The file probably isn't important but the details are;
There are 2 records in the file on each box currently, an example being;
The only variant here is EMPREF, it's different depending on the machine it's on.
I want to change EMAIL1 where EMREPN is 'AVAILABLE'
This isn't a critical file, it can be deleted/slapped about/etc. if that's what is required to do what I need.
Thanks in advance,
Ryan
I am looking for a way of updating the same file on about 13 different boxes, I'm open to most suggestions as long as they don't involve changing iSeries configurations (like adding records to the database directory)
Usually I just login to each machine and update it through STRSQL, but this is monotonous and mind numbing.
We have a central development box that has access to the boxes I want to update (i.e. via FTP or TELNET) so the plan is to create something on that box which updates the files on the relevant machines.
The file probably isn't important but the details are;
Code:
A R RAREPEMR * A EMREPN 15 COLHDG('Report' 'Name') A EMAIL1 40 COLHDG('Email' '1') A EMAIL2 40 COLHDG('Email' '2') A EMAIL3 40 COLHDG('Email' '3') A EMAIL4 40 COLHDG('Email' '4') A EMAIL5 40 COLHDG('Email' '5') A EMPREF 1 COLHDG('Data' 'Lib' 'Prefix')
EMREPN | EMAIL1 | EMAIL2 | EMAIL3 | EMAIL4 | EMAIL5 | EMPREF |
ACTIVE | DONTCHANGE@EMAIL.COM | V | ||||
AVAILABLE | CHANGEME@PLS.THX | V |
I want to change EMAIL1 where EMREPN is 'AVAILABLE'
This isn't a critical file, it can be deleted/slapped about/etc. if that's what is required to do what I need.
Thanks in advance,
Ryan
Comment