Environment Name within a UBE output

askuodas

Active Member
In a UBE output, is it possible to append the environment name into the UBE's file name ?

The client has a Production and Pre-Live environment that share the same path code, apart from the Data & Control files.

There are a number of interfaces used that output files from JDE to a specified folder. The file destination is detailed in the Batch Job processing Options. As the Pre-Live and Production environments share the Processing OPtions, it is not possible to send output from the Pre-Live environment to a different folder / file. As such any legacy applications that picks up this interface file cannot determine if the file is Live or Pre - Live data. This makes final testing in the Pre-Live environment difficult.

As such one thought was to append the environment to the file name so as the JDE output could be identified in terms of it's source.

Any comments / recommendations welcome.

Xe Update 6 / Unix / HP / Citrix
 
Depending on if you can still modify the UBE and processing options, you might be able to put the files in a different folder depending on environment. If I understand correctly what you are doing, you could do the following.

In the UBE, once the job is being run, modify the folder path by appending the environment at the end. You should be able to manipulate the string to add the System Value for Login Environment at the end. Obviously, you will need to make sure the output destination exists.

For example, if your output path is defined in the PO as Z:\output, modify the path in the UBE ER so that it now points to Z:\output\ENV by appending the PO value with the system value for login environment.

I think this will work.
 
Back
Top