Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Unix code not working on Linux issue

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Unix code not working on Linux issue
 Login/Join
 
Gold member
posted
I have below code

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
 
Posts: 62 | Registered: May 23, 2017Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Expert
posted Hide Post
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.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
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
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Unix code not working on Linux issue

Copyright © 1996-2020 Information Builders