Oracle BI Publisher, RTF Template Date format - oracle

I have used "Date, MM/DD/CCYY" under the <format> column in the RTF, when used in SQL developer I get proper output where CC is replaced with century(e.g. 03/07/2016 as per the format "MM/DD/CCYY" will be 03/07/2116 [21st century]) but in RTF I get the output as 03/07/CC16.
I also tried TO_CHAR(FIELD,’MM/DD/CCYY’) but its not working. Can you please let me know the issue, why the format is not workin

Try using small 'yy' instead of 'YY'.Hopefully you will get the output.
if you want to display concatenated with CC then use small yy,else you can do like this "MM/DD/CC/YY" Or "MM/DD/CCyy"
Please post if you have any other concerns.

Related

APACHE NIFI Error message: 'dd/MM/yyyy hh:mm:ss', which cannot be converted to a timestamp"

I have received a workflow in Nifi that converts logs from IBM-MQ to JSON format and it's supposed to put the information into an Oracle Database.
Each log line is parsed using ExtractGrok, and in the original parsing performed by the person who gave me the workflow, the format obtained is as follows: 'yyyy-MM-ddhh.mm.ss' when in fact there are other characters that the parsing ignores (probably It's in a TIMESTAMP format). The PutSQL Processor gets the error in the title (APACHE NIFI Error message:'dd/MM/yyyy hh:mm:ss', which cannot be converted to a timestamp"), no matter how I parsed the time component, and i have done so in a variety of ways using JOLT (the picture contains 3 examples).
How do I get Nifi to put in the time field in the Oracle? Since I am new to Nifi I would be happy to a fairly detailed explanation so I can carry out the whole process with your helpful explanation.
Many many thanks to everyone who helps!
The solution was to add a dot and 3 zeros as milliseconds to the format (I used jolt transform) and by that transforming the format to the following: "yyyy-MM-dd HH:mm:ss.SSS".
I saw the solution in an explanation that #Ben Yaakobi gave in another question here on stack overflow:
"The appended 3 zeros are since epoch in NiFi is in milliseconds."

Sonar API search issues

I am trying to get the issues(bug,codesmells) through sonar API by using the following
/sonar/api/issues/search?pageSize=1&projectUuids=AV7s-_ldd2-CFpJxZLc4&types=BUG&createdAt=2017-11-08&resolved=false
Its working well, But what I am looking here is, instead of giving the date manually, Is it possible to pass the date which I will get it from script?
My codes :
wget.download('http://00.00.00.00:9090/sonar/api/project_analyses/search?project=project-id',out='file1.json',bar=None)
data = json.load(open('file1.json'))
date_time=(data["analyses"][0]["date"]).split("'")[0]
date=date_time[0:10]
print date
I need to pass the output(date) to,
/sonar/api/issues/search?pageSize=1&projectUuids=AV7s-_ldd2-CFpJxZLc4&types=BUG&createdAt=date&resolved=false
Any suggestion?
Call api/issues/search with a date format that respect one of the 2 formats:
2017-10-19T13:00:00+0200
2017-10-19

Bestw.d format syntax in SAS

I am converting a character variable to a numeric variable. I am using a bestw.d format. I also tried just best. as the format in the input statement and this worked fine. I cant find any mention of just using best. instead of bestw. in SAS help, though I know from SAS help that the d can be omitted. I have been playing around with using just the best.and I am wondering if there is a default w assigned when just using best..
All formats have a default w. It is not generally good practice to use best. (or <format>.) in most cases, as you should know and plan for the specific width needed, but it always exists.
Also, informat and format have different defaults in many cases where there are identically named informat and format.
In the case of bestw., the default length is 12. See this documentation page for details.
I always find it's worth using a worked example, this shows the different outcomes when using lengths on the BEST. format:
data _NULL_;
a=1031564321300.302;
put '==================================';
put 'Different "BEST" formats';
put '==================================';
put 'BEST8. - ' a best8.;
put 'BEST12. - ' a best12.;
put 'BEST13. - ' a best13.;
put '==================================';
put 'BEST. - ' a best.;
put '==================================';
run;
You can run this in your environment and check the outcome. On my machine it looks like this:
==================================
Different "BEST" formats
==================================
BEST8. - 1.032E12
BEST12. - 1.0315643E12
BEST13. - 1031564321300
==================================
BEST. - 1.0315643E12
==================================
i.e. It looks like BEST12. is the matching format when no width is specified.

how to select few words from text area in selenium rc

steps:
1. i uploaded file using browse option.
2. uploaded file content displayed in non-editable format
3. now i have to select few words.
for this i used mouseMoveAt (100,200) mouseDown() mouseMoveAt (150,250) mouseMoveUp().
This is not working..
Can anyone can give sample code?
I'm not sure I understand your question completely, but here's my take -
You can use selenium.getText(); for retrieving the text on a page and storing it in a variable. You can use this variable, which you can verify for correctness.
Here's an example syntax:
String var = selenium.getText(your_identifier_for_text);
Further, if you need to extract and verify just a portion of the text contained in var, you can use Java string functions.

How I can format date in report to appear exactly as I want - RDLC

I have a report in my application and this report will show a long date from db and I used this expression to make it shorter:
=FormatDateTime(Fields!StatementDate.Value,DateFormat.ShortDate)
and the date will show like this : 1/1/2010
I need to make it like this : 2010/1/1
How I can do it?
That expression do the trick
=CDate(Fields!Fecha.Value).ToString("yyyy/M/d")
I think that it is a lot cleaner to use the Format property rather than format it in your expressions:
http://msdn.microsoft.com/en-us/library/ms252080%28v=vs.90%29.aspx
You can use the standard .NET formatting strings.
Value=Fields!StatementDate.Value
Format=yyyy/M/d
Fields!StatementDate.Value will need to be a DateTime, if not you can try convert it:
Value=CDate(Fields!StatementDate.Value)
=CDate(Fields!StatementDate.Value).ToShortDateString()

Resources