if [[ ${NUM_CHG_PARTS} -eq 0 ]] then COUNT=1 else ((COUNT=NUM_CHG_PARTS)) fi + [[ 48 -eq 0 ]] + (( COUNT=NUM_CHG_PARTS ))
I=1 + I=1 FILE_COUNT=0 + FILE_COUNT=0 while [[ ${I} -le ${COUNT} ]] do if [[ ${I} -lt 10 ]] then export PARTITION_ID="P0"${I} else export PARTITION_ID="P"${I} fi
CD01_EXTRACT_FILE_TEMP='ar.ARCD-01.'$REPORT_DATE'.extract.'$CYCLE_NO'_'$CYCLE_MM'_'$CYCLE_YYYY.$PARTITION_ID if (test -r $CD01_EXTRACT_FILE_TEMP) then cat $CD01_EXTRACT_FILE_TEMP >> $CD01_EXTRACT_FILE ((FILE_COUNT=FILE_COUNT+1)) fi ((I=I+1)) done
and in the end its comparing as below
if [[ (${FILE_COUNT} -eq 0) || (${FILE_COUNT} -lt ${NUM_CHG_PARTS}) ]] then echo "Not all the Extract files were created" TlgFilePlacer $IR01_EXTRACT_FILE FAILURE ExitProcess 1 fi
i am not understanding why its getting 49 file count when i have only 48
as this code is working on unix something went wrong on linux If someone can help me with this.This message has been edited. Last edited by: FP Mod Chuck,
WebFOCUS, Linux Excel, CSV
August 07, 2017, 03:30 PM
FP Mod Chuck
Hi Genius
This is a WebFOCUS forum not a UNIX/Linux forum. You need to post this elsewhere to get a answer.
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
August 07, 2017, 05:35 PM
Waz
Assuming this is related to WebFOCUS, is this being run by a system call ?
If this is just a script that is being run, then refer to Chuck's comments.
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
August 08, 2017, 06:24 PM
Doug
quote:
If this is just a script that is being run, then refer to Chuck's comments.
Or. check to see if the Unix / Linux commands are disabled (by the WebFOCUS Administrators). Can you do a basic "! PWD"
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206