Maxl - can you use variables in iferror statements
hi guys,
A quick one:
Can you use variables when doing error handling? I assume the answer is yes, but just wanted to make sure.
example:
set app1 = Test;
set app1_db1 = Test;
alter database $app1.$app1_db1 force archive to file "C:\\EssbaseBackup\\$app1\\$app1_db1\\$app1_db1.arc";
iferror 'Bk_$app1.$app1_db1_Error';
define label 'Bk_$app1.$app1_db1_Error';
exit 10;
I am putting error handling into my script and want to double check before I go about making the alterations.
Many thanks,
Russell
Edited by: RussellH-C on 26-Apr-2013 04:45
You don't need to split the files. Create a Maxl with parameters and then call it in a bat file.
In the bat you can then check for Error.
essmsh -D "%HYP_MONTH_SCRIPTS_DIR%\Maxl_Files\HYP_ESS_Archive.msh" %DECRYPTKEY% Appname1 Dbname1
call :archiveerrcheck
essmsh -D "%HYP_MONTH_SCRIPTS_DIR%\Maxl_Files\HYP_ESS_Archive.msh" %DECRYPTKEY% Appname2 Dbname2
call :archiveerrcheck
archiveerrcheck:
SET FILE=%MAXLLOG_DIR%\Archive.log
findstr /R "\<ERROR" %FILE% > ESSErrCheck
for /F %%A in ("ESSErrCheck") do If %%~zA NEQ 0 (
call :datestamp
echo Error in Archive Process......................... > %ESSLOG%
copy %FILE% %HYP_MONTH_ERR_DIR%\Essbase\MaxL\Maxl_Error.log
DEL /Q ESSErrCheck
call :exit_process
) else (
echo %DTSTMP% Log Out Process was successfull......................... >> %ESSLOG%
call :remove_file ESSErrCheck
GOTO EOF
:EOFRegards
Celvin
http://www.orahyplabs.com
Similar Messages
-
I find it annoying that you can't use aliases in where statements
I find it annoying that you can't use aliases in where
statements
for example:
SELECT TOP 1
CAST(amount
/ ( CASE WHEN ISNULL(rate, 0) <> 0 THEN rate
ELSE 1
END ) AS NUMERIC(10, 2)) AS num
FROM table
WHERE num > 1
ORDER BY num
Are there any workarounds?> I find it annoying that you can't use aliases in where
statements
This isn't really (or... "at all") a CF question. You're
better off asking
this sort of thing on a SQL Server forum.
You could use a derived table, I guess:
select top 1 num
from (
SELECT
CAST(amount
/ ( CASE WHEN ISNULL(rate, 0) <> 0 THEN
rate
ELSE 1
END ) AS NUMERIC(10, 2)) AS num
FROM table
where num > 1
order by num
(that might not preserve the intent of you SQL (sorry: it's
late, I'm
tired), but you get the idea.
Adam -
Do you have iphone5s can be used out of united states?
I just want to know do you have iphone 5s can be used out of united states?
Because I just want to use it with my own card in my country, cause I do not think I will come back to
united states again.
I am just a tourist. And I want to buy it before I leave this place.
So I want to make sure if I buy the unlock iphone5s in store, can it be used out of united states?
Thank you.Apple isn't here. This is a user to user forum where we help each other.
You can try calling Apple Customer Service at 1-800-676-2775 for help.
Allan -
Hello All,
I am getting below error can you please help me
Error:-
The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.Perhaps this thread will help you out
http://stackoverflow.com/questions/11453066/error-the-transaction-associated-with-the-current-connection-has-completed-but
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
SPSiteDataQuery - filter by file Title - Can I use variable for the filter value?
I use SPsiteDataQuery to search across multiple lists and filter by file title. I have the file title information in a variable.
Can I use variable in the filter value?
string fileName = "Policies.doc"
SPSiteDataQuery spQry = new SPSiteDataQuery();
spQry.ViewFields = "<FieldRef Name='Title'/><Value Type='Text'>fileName</Value>"If I have understood correctly, you want to search based upon a File title in all the sites. You can include a query to filename in the spQry
spQry.Query = "<Where>" +
"<Eq>" +
"<FieldRef Name=\"FileLeafRef\"/>" +
"<Value Type=\"Text\">" + fileName + "</Value>" +
"</Eq>" +
"</Where>";
get2pallav
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
If your database in Full Recovery mode, can you use Bulk Insert Task to load data
If your database in Full Recovery mode, can you use Bulk Insert Task to load data
If your database in Full Recovery mode, can you use Bulk Insert Task to load data
Yes you can ofourse but dont be in idea that logging will be mininal. Loggign will be as per recovery model full. Every thing will be logged. If you are going to use bulk insert task you can consider switching recovery model to Bulk logged but you will not
have option to do point in time recovery.
PS: please dont create duplicate threads
If you read first Note section in below link it clearly states that yes logging will be full and you can use
http://technet.microsoft.com/en-us/library/ms191244(v=sql.105).aspx
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
I WANT TO BUY A MAC BOOK PRO. MUST I WAIT FOR THE ONE WITH RETINA DISPLAY. WILL THE FACT THAT THERE IS NO CD ROAM BE A PROBLEM? CAN YOU USE AN EXSTERNAL CD ROAM WITH A MAC?
Apple will gladly sell you a color coordinated and texture matching external SuperDrive to go with your Retina'ized MBP for about $80 bucks.
Note that those models are completely sealed with no serviceable or upgradeable parts inside. So if you decide to bite the bullet, be sure to customize its guts to your heart's content from the get-go as no further change will be possible. This means CPU speed, amount of RAM and size of the solid state drive. Other external options, like the Superdrive, can be added later. -
Do you need a credit card to buy the sketchbook proor can you use itunes cards?
do you need a credit card to buy the sketchbook pro or can you use itunes cards?
Hi..
It might depend on the tax rate for your location.
If you are in the U.S. > http://www.bankrate.com/finance/taxes/check-taxes-in-your-state.aspx
If taxes or fees are applied to the $59.99, I doubt that $60.12 will cover it. You may need to purchase another iTunes gift card which you can redeem to increase the funds available.
it is 59.99 dollers and i have 60.12 and it goes to the billing part
If there are not funds available you will see a dialog asking you to edit your payment information. When there are not sufficient funds, the difference between the purchase amount and funds available is deducted from a credit or debit card account. If you don't want to have a credit or debit card then purchase another iTunes gift card. -
I was using an iPhone 4 while I was living in Japan. How can I use it in the states now that I live here? It is a perfectly good phone and I don't want to use it only as an iPod and camera.
That's one option. The other is to sell it (you can probably get close to what you paid for it) or trade it in and get a new unlocked phone directly from an Apple store. That way you can use it in the US, and also in Japan when you return there.
-
Can you use time capsule for your mac and have readynas backup your pc's on the same network
Can you use time capsule for your mac and use readynas to back up your pc's on the same network
Sure, that is trivial setup.. they both have different names and IP addresses.
You should be able to use ReadyNas for TM backup but you should check the latest state of play for that. -
Can you use the same Apple ID on more than one MacBook Pro for updates and applications?
We just got a few new MacBook Pro's and when I went to install updates it said I need to make an Apple ID. Can you use the same Apple ID and email address for that Apple ID on multiple machines, or do I need them both to be unique per machine? I'm not sure how that works when you have multiple machines.
An Apple ID is a user name you use for everything you do with Apple. Creating an account for an Apple service, such as the iTunes Store or the App Store, creates an Apple ID. Apple ID allows you to access other Apple services. So you can use the same Apple ID for up to 10 Macs associated with it.
To create an Apple ID you need to enter your full name and your primary email address as your Apple ID. This will be used as the contact email address for your account. -
How many Ipods can you use with one Itunes account?
How many iPods can you use/sync with one iTunes account?
PT wrote:
Macistotle wrote:
Unless you have DRM still haunting your tunes ... Then you can only use those songs on 5 devices. Otherwise, connect as many as you like (as stated above).
No, you can sync your DRM tracks to an unlimited number of iPods (but only authorized to play on 5 different computers/user accounts)
Patrick
So I can sync two iPods to my iTunes account and sync the same digital copy movies that come with some o' my DVDs to both ipods? Do movies make a difference really, DRM-Wise? Thanks in advance. -
Can you use a iTunes card to purchase more storage for iCloud
can you use a itunes card to purchase more storage for icloud
No. iTunes Store only.
"An iTunes Gift Card lets you shop for anything at the iTunes Store " > http://store.apple.com/us/browse/home/giftcards/itunes/gallery -
Can you use soundtrack pro's loops in your youtube videos or do you need to purchase a license since it is royalty free?
I understand they are royalty free, I am just confused about using the actual loops for films, videos, etc - if there is a special license you must purchase or what?
Yes sure, it's a library and may be used a lot - but is it legal or against agreement?
And to clarify - what about music I create on the program , that is ok right?If you purchased the software you have the right to use the loops that came with the software in the software to make whatever you want.
-
Can you use the Airport Express A1264 as an AP and a DHCP server at the same time?
Can you use the Airport Express A1264 as an Access Point and a DHCP server at the same time?
I would like to use it as a DHCP server and AP at the same time in my LAN (no internet, just local machines through a few switches). I was lead to belive this could be the case from a few networking friends that haven't been friendly enough to help me out setting it up.I need it to act as a dLink/Cisco/Linksys/etc basic wifi router, in the fact that you can access it via wifi, and it will spit out DHCP addresses (192.168.1.xxx) to everything wired downstream of it.
I want to simultaniously provide a Wifi connection and a LAN connection at the same time
Thanks,
BRad
Maybe you are looking for
-
Mini Display Port to VGA Adapter Having Issues with My Samsung 40" HDTV
So I ordered the brand new 15" i7 Macbook Pro along with the Apple wireless magic mouse and wireless keyboard after having bought my HDTV (went on a bit of a spree) with the intention of using the TV as a monitor for couch surfing. But, upon hooking
-
Can't connect 2TB Time Capsule to my home network
I can't seem to get my new 2TB Time Capsule to show up in Airport Utility on my MacBook Pro. I started out trying to connect wirelessly, then with an Ethernet cable directly between the Time Capsule and my MacBook. Still, the new device does not appe
-
Questions related to the localstorage=false client restarted and join back
Hi, We are using the coherence 3.4.2 version. I notified a strange problem in our application, related to the coherence. I am posting here seeking for help. We are using JDK 1.6.0_16 on Linux 64 OS. To simplify the problems, let me just say that we h
-
PSE9/Win 7: How can I select only my jpg's in Organizer?
Using PSE9 on Windows 7. In Organizer I want to select every jpg in my catalog. Ctrl+1 gives me pictures. But those includes bmp, psd, png, etc. Find with search for filename. But I can't seem to do a *.jpg. Thanks for any ideas or advice!
-
Can i know the releasing date of next update for n...
Current version 7.36