It is not possible to run alias commands within the uproc script.

Document ID : KB000085223
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Affects Release version(s): 5

Error Message :
Error message in the job log:
Patch level detected:Dollar Universe 5.6
Product Version: Dollar.Universe 5.6.0 FX25010

Description :It is not possible to run alias commands within the uproc script. The alias command cannot be found.
Environment:
OS: All Unix
Cause:
Cause type:
By design
Root Cause: It is normal behavior that an alias command does not work on any shell script. It is a system limitation and not Dollar Universe issue.
Resolution:
Add following commands within the script so that an alias commands would work within the script:

source ~/.bash_profile --> This could vary depending on the name of the profile that you are using.

shopt -s expand_aliases



For example:
===================================
#! /bin/bash

source ~/.bash_profile

shopt -s expand_aliases

lddu
envrep


exit $?
===================================

Fix Status: No Fix

Additional Information:
Workaround :
N/A