Solved

Logical Files and UAT deployments

Posted on 2012-03-22
3
343 Views
Last Modified: 2012-06-27
Hi All,

We have a so called "staging" AS400 server which gets periodically backed up with data from production. This server is used for various business purposes including preparing for UAT deployments. Before a UAT deployment, these are the steps that we perform on this server:

1) Create duplicates for all source, objects and data files (not database tables).
2) For purposes of security, we scramble and subset the data in the files.
3) All this is then put into a save file and pushed out to the respective UAT servers.
4) A remote restore save file command is issued on the staging server which deploys the code on the UAT server.

The problem i am facing is in step# 2 above. An elaboration of step# 2 is as follows:

1) After a duplicate of production data files are created, I delete all LF's that exist on the PF's.
2) Remove all members from all PF's.
3) Based on our business needs, I add back a version (or not) with specific member names.
4) Scramble and subset that single member if needed.
5) Add back all the LF's that were earlier deleted.

All the above steps work fine except that some of the LF's that we have in our libraries are based on 1-2 tables in a schema. Ideally, when I am re-creating the LF, I want the LF to be recreated using the schema name that I am going to use on the UAT server. Most of the times, we do not have that schema name present on the "staging" server. I either end up not creating that LF or if it creates, it is pointed to one of the schema names that exist on staging.

Is there any work-around?

My restrictions are:

1) I have to run all these steps on the "staging" server.
2) We have multiple UAT regions, so it is not feasible to have a program deployed on all UAT servers to take care of this problem with the LF.
3) I want to avoid hard coding of any kind because this program would be used across applications.

The version of OS we are currently on is V5R4 (with plans to migrate to V7R1 this summer).

Regards
Ali.
0
Comment
Question by:bhagatali
  • 2
3 Comments
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 37756362
Hi bhagatali,

Not totaly clear to me, why are you deleting the logicals, if you need to re-build them anyway ?

Regards,
murph
0
 

Author Comment

by:bhagatali
ID: 37756835
Hi Murph,

There are 2 reasons:

1) In a subsequent step I remove all versions of physical files that I copied from production so that I could create a blank version of the PF.
2) The LF's that I copied from production are pointing to PF's in the production library. I need to recreate them pointing to the UAT libraries.

Regards
Ali
0
 
LVL 16

Accepted Solution

by:
theo kouwenhoven earned 500 total points
ID: 37756937
Hi Ali,

1) By clearing all PF members, you don't need to rebuild any file.

2) I do my very best to get your situation, copy files from Lib1 to Lib2, but LF's are pointing to the right PF's after coppying.
I even tried to add Lib1 to my LIBL and copy the LF first, but that is not possible if the PF is not in the target library. You only can do that during creation by defining the PF, otherwise copy will point to the right file.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now