|
|
|
|
|
|
|
|
|
Re: Concurrent Program fails with DATE_STANDARD value set [message #539432 is a reply to message #539388] |
Sun, 15 January 2012 14:57 |
|
gliddenc
Messages: 5 Registered: December 2011
|
Junior Member |
|
|
Hi Vamsi,
The link that you sent is mine. I did try to use $7 and $8 without success.
I have solved my problem. I figured out how to cut the timestamp away from the parameter.
For others that are having the problem, this is my code BEFORE:
# NOTE ON VARIABLES: 6 variables will be passed into this script
# from LASR. These variables are $0-$6 respectively.
# $0 - Shellscript name
# $1 - Oracle username/password
# $2 - User_id
# $3 - LASR(Oracle Applications) username
# $4 - Concurrent request id
# $5 - Parameter 1 (start date)
# $6 - Parameter 2 (end date)
# Send output to the log file
echo
--------------------------------------------------------------------------------
echo 'Program arguments: '
echo
--------------------------------------------------------------------------------
echo '$5 := '$5 >> `echo $lfil`
echo '$6 := '$6 >> `echo $lfil`
# Change directory to LASR output directory
cd $LASR_OUT
# Initiate CONCSUB
# The awk section of code is used to find the file
# name of the recently submitted file. CONCSUB
# returns a message "Submitted Request x" where
# 'x' is the request id. This request is
# appended to the fdx string and '.out' is
# appended to that to create the output file name
# that is send to National City.
RID=`CONCSUB $1 \
SQLAP \
"OAKLAND AP LOL USER" \
$USER_NAME \
WAIT=Y \
CONCURRENT \
LC \
LCAPXPOS \
PROGRAM_NAME='"Positive Pay Report for LASR"' \
IMPLICIT="YES" \
'""' '""' '""' '""' '""' '""' $5 $6 Y \
| /usr/xpg4/bin/awk '/Submitted/{print $3}'`
This code, because of the new valueset and the way Oracle passes in the timestamp causes $5 = STARTDATE and $6 = TIMESTAMP instead of ENDDATE
This is the current working code:
# NOTE ON VARIABLES: 6 variables will be passed into this script
# from LASR. These variables are $0-$6 respectively.
# $0 - Shellscript name
# $1 - Oracle username/password
# $2 - User_id
# $3 - LASR(Oracle Applications) username
# $4 - Concurrent request id
# $5 - Parameter 1 (start date)
# $6 - Parameter 2 (end date)
# Modify the incoming parameter (date+timestamp)
# Set the incoming parameter to our variable
SDATE=$5
EDATE=$6
# Remove the timestamp from the parameter
echo 'Cutting now...'
SDATE="`echo $SDATE | cut -c1-11`"
EDATE="`echo $EDATE | cut -c1-11`"
# Send output to the log file
echo
--------------------------------------------------------------------------------
echo 'Program arguments: '
echo
--------------------------------------------------------------------------------
echo 'SDATE := '$SDATE >> `echo $lfil`
echo 'EDATE := '$EDATE >> `echo $lfil`
# Change directory to LASR output directory
cd $LASR_OUT
# Initiate CONCSUB
# The awk section of code is used to find the file
# name of the recently submitted file. CONCSUB
# returns a message "Submitted Request x" where
# 'x' is the request id. This request is
# appended to the fdx string and '.out' is
# appended to that to create the output file name
# that is send to National City.
RID=`CONCSUB $1 \
SQLAP \
"OAKLAND AP LOL USER" \
$USER_NAME \
WAIT=Y \
CONCURRENT \
LC \
LCAPXPOS \
PROGRAM_NAME='"Positive Pay Report for LASR"' \
IMPLICIT="YES" \
'""' '""' '""' '""' '""' '""' $SDATE $EDATE Y \
| /usr/xpg4/bin/awk '/Submitted/{print $3}'`
I appreciate all of the advice that you gave. I couldn't have figured this out without it.
Thanks,
Corey
|
|
|