Solved

Logical Files and UAT deployments

Posted on 2012-03-22
3
355 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

There is a lot to be said for protecting yourself and your accounts with 2 factor authentication.  I found to my own chagrin, that there is a big downside as well.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 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