Need help - Date format in es Tag / LoadedData

hi,
I have one Date attribute called 'EXPIRATION_DATE' in DOCUMENT table.
I mapped this column entry in 'application-config.xml' as jdbc.column.EXPIRATION_DATE=ExpirationDate;
And when I am trying to get this value in JSP,within '<es:forEachInArray>' tag
scope, using the syntax below
<%
String strDate = (String)doc.getProperty("LodedDate","ExpirationDate");
%>
I am getting different formatted results in different environments
Like , when I executed this in windows ,
I got the resulted string as "Mon Jul 07 00:00:00 EDT 2003" , which can be converted
to 'Date' type
using <% Date exp_date = new Date(strDate); %> which solves my problem.
But , when I executed same code to UNIX ,
I got the resulted string as "2009-02-01 00:00:00.0" , which is not convertible
to 'Date' format.
I got the following exception , when I try to convert this resulted String to
date format like.
<% Date exp_date = new Date(strDate); %>
java.lang.IllegalArgumentException
at java.util.Date.parse(Date.java:585)
at java.util.Date.<init>(Date.java:267)
Finally , I need to convert the resulted string to "MMM dd, yyyy" (Feb 22, 2000)format.
If not above method , what is the best way to get the resulted value in this "MMM
dd, yyyy" format.
/***** My Sample code ********/
<es:forEachInArray array="<%=BankerMsgs%>" id="doc" type="Content" >
<%String strDate = "";
     strDate = (String)doc.getProperty("LodedDate","ExpirationDate");     //strDate =
"Mon Jul 07 00:00:00 EDT 2003"; // Windows
     //strDate = "2003-07-07 00:00:00.0"; // UNIX
     out.println("Original Date is :" + strDate); // In windows env I got this formatted
result 'Mon Jul 07 00:00:00 EDT 2003' and In UNIX I got the string as '2003-07-07
00:00:00.0'
     SimpleDateFormat formatter = new SimpleDateFormat ("MMM dd, yyyy");
     Date strDate12 = new Date(strDate);
     String strExpDate = "";
     try
          strExpDate = formatter.format(strDate12);
          out.println("Formatted Date is :" + strExpDate); // in windows I got correct
result as 'Jul 07, 2003' and in UNIX java.lang.IllegalArgumentException
     catch(Exception e) {}
%>     
</es:forEachInArray>
Any help will be much appreciated.
thanks
-Amar Purumandla

hi,
I have one Date attribute called 'EXPIRATION_DATE' in DOCUMENT table.
I mapped this column entry in 'application-config.xml' as jdbc.column.EXPIRATION_DATE=ExpirationDate;
And when I am trying to get this value in JSP,within '<es:forEachInArray>' tag
scope, using the syntax below
<%
String strDate = (String)doc.getProperty("LodedDate","ExpirationDate");
%>
I am getting different formatted results in different environments
Like , when I executed this in windows ,
I got the resulted string as "Mon Jul 07 00:00:00 EDT 2003" , which can be converted
to 'Date' type
using <% Date exp_date = new Date(strDate); %> which solves my problem.
But , when I executed same code to UNIX ,
I got the resulted string as "2009-02-01 00:00:00.0" , which is not convertible
to 'Date' format.
I got the following exception , when I try to convert this resulted String to
date format like.
<% Date exp_date = new Date(strDate); %>
java.lang.IllegalArgumentException
at java.util.Date.parse(Date.java:585)
at java.util.Date.<init>(Date.java:267)
Finally , I need to convert the resulted string to "MMM dd, yyyy" (Feb 22, 2000)format.
If not above method , what is the best way to get the resulted value in this "MMM
dd, yyyy" format.
/***** My Sample code ********/
<es:forEachInArray array="<%=BankerMsgs%>" id="doc" type="Content" >
<%String strDate = "";
     strDate = (String)doc.getProperty("LodedDate","ExpirationDate");     //strDate =
"Mon Jul 07 00:00:00 EDT 2003"; // Windows
     //strDate = "2003-07-07 00:00:00.0"; // UNIX
     out.println("Original Date is :" + strDate); // In windows env I got this formatted
result 'Mon Jul 07 00:00:00 EDT 2003' and In UNIX I got the string as '2003-07-07
00:00:00.0'
     SimpleDateFormat formatter = new SimpleDateFormat ("MMM dd, yyyy");
     Date strDate12 = new Date(strDate);
     String strExpDate = "";
     try
          strExpDate = formatter.format(strDate12);
          out.println("Formatted Date is :" + strExpDate); // in windows I got correct
result as 'Jul 07, 2003' and in UNIX java.lang.IllegalArgumentException
     catch(Exception e) {}
%>     
</es:forEachInArray>
Any help will be much appreciated.
thanks
-Amar Purumandla

Similar Messages

  • Need help in formatting the Date - Date does not

    Need help in formatting the Date - Date does not formats and give Not a valid month error in the below scenario.
    select oc.ST_PGM_MGR, r.ag_dnum, get_major_work_type(r.perf_eval_rtng_id) "v_work_code", r.ag_dnum_supp "supp", r.intfinal, to_char(r.formdate,'MM/DD/YYYY') "formdate", to_char(r.servfrom,'MM/DD/YYYY') "srv_from", to_char(r.servto,'MM/DD/YYYY') "srv_to", descript, add_months(to_char
    --- Bellow line of Code on trying to format it to mm/dd/yyyy gives the error
    (r.formdate, 'DD-MON-YYYY'),12) "formdate2"
    from  table REdited by: Lucy Discover on Jul 7, 2011 11:34 AM
    Edited by: Lucy Discover on Jul 7, 2011 1:05 PM

    Your syntax is wrong - look at the post above where this syntax is given:
    to_char (add_months(r.formdate,12), 'MM/DD/YYYY') "formdate2"Look at the formula from a logical perspective - "inside out" to read what is happening -
    take formdate, add 12 months
    add_months(r.formdate, 12)then apply the to_char format mask - basic syntax
    to_char(date, 'MM/DD/YYYY')Compare to your syntax:
    to_char(add_months(r.formdate, 'MM/DD/YYYY'),12) "formdate2"You will see your format string inside the call to add_months, and your 12 inside the call to to_char.
    Good luck!

  • Need help for Format HD

    Hi I need Help for Formating HD so Wat Key need hold on start up for format HD I apprciated you Help

    Jesus:
    Formatting, Partitioning Erasing a Hard Disk Drive
    Warning! This procedure will destroy all data on your Hard Disk Drive. Be sure you have an up-to-date, tested backup of at least your Users folder and any third party applications you do not want to re-install before attempting this procedure.
    • With computer shut down insert install disk in optical drive.
    • Hit Power button and immediately after chime hold down the "C" key.
    • Select language
    • Go to the Utilities menu (Tiger) Installer menu (Panther & earlier) and launch Disk Utility.
    • Select your HDD (manufacturer ID) in left side bar.
    • Select Partition tab in main panel. (You are about to create a single partition volume.)
    • _Where available_ +Click on Options button+
    +• Select Apple Partition Map (PPC Macs) or GUID Partition Table (Intel Macs)+
    +• Click OK+
    • Select number of partitions in pull-down menu above Volume diagram.
    (Note 1: One partition is normally preferable for an internal HDD.)
    • Type in name in Name field (usually Macintosh HD)
    • Select Volume Format as Mac OS Extended (Journaled)
    • Click Partition button at bottom of panel.
    • Select Erase tab
    • Select the sub-volume (indented) under Manufacturer ID (usually Macintosh HD).
    • Check to be sure your Volume Name and Volume Format are correct.
    • Click Erase button
    • Quit Disk Utility.
    cornelius

  • I need help with the conditional build tag option RoboHelp 10

    I need help with the conditional build tag option. I want to apply CBT to content in a topic. I looked at the Help topics and believed that I applied the feature correctly. Howver, it is not working as desired. In the 2nd sentence below I want the text highlighted in blue to only appear for the printed output and the text printed in purple to only appear for the .htm /online output. Please help.
    There are common tasks used to manage the folders in the Navigator and the folders
    in the BBS Folders Viewer Grid. For more information on these common tasks see Help
    and Support in Success Enterprise. click the links below.

    Hi there
    Using tagging is a two part process.
    Part One
    You create and apply the tags to the information you wish to control.
    Part Two
    You create a Build Expression that is used when you generate your output. The Build Expression typically reads something like: NOT Tag1 (or whatever your tag name is)
    Then when you generate and use the Build Expression, the information tagged is not included in the build.
    Cheers... Rick

  • Help needed in date formating

    Hi guys merry Christmas in advance .i was trying to write a code to compare given string with current date .
    So i have written a piece of code to set hour minute second millisecond of current date to 0.
    It worked fine for minute second millisecond but hour always shows 12.
    Here is the code.
    Please help
    import java.util.*;
    public class SampleDate
    public static void main(String[] args)
    java.util.Date date = new java.util.Date();
    //convert current date to cal format and set hour min sec mill to 0
    java.util.Calendar cal1=java.util.Calendar.getInstance();
    cal1.setTime(date);
    cal1.set(java.util.Calendar.HOUR,0);
    cal1.set(java.util.Calendar.MINUTE, 0);
    cal1.set(java.util.Calendar.SECOND, 0);
    cal1.set(java.util.Calendar.MILLISECOND, 0);
    //convert from cal to date format
    date=cal1.getTime();
    System.out.println("Current Date in Date Object: " + date);
    }Output:
    C:\TIMECOMPARE>java SampleDate
    Current Date in Date Object: Thu Dec 24 12:00:00 IST 2009Expected output is :Current Date in Date Object: Thu Dec 24 00:00:00 IST 2009

    The HOUR field of the Calendar class represents a 12 hour clock format where 0 indicates 12 noon. Instead use the HOUR_OF_DAY in the code as shown below:
    cal1.set(java.util.Calendar.HOUR_OF_DAY,0);

  • Need help in formating a form dealing with negative currency

    Need Help!!!
    Creating forms in Adobe acrobat Pro I could format a number cell to calculate additions/subtractions of currency. If the result was negative I could get the cell to show the negative result in red text and show parentheses around them. How can I do that in LiveCycle?
    If i have to use formcalc - what would i type in?

    In LiveCycle can be done using the Numeric Field object and some formcalc script.
    Use the "Numeric Field" from the Object Library. For the Field patterns (Select the placed numeric field, On object Window Object -> Field) use "num.currency{}" to show the currency(Ex: $) and "parentheses" if its negative. Write some script to show red text/border in red .
    On exit event of the Numeric Field here is the script:
    if($.rawValue <0) then $.font.fill.color.value = "255,0,0" endif  // This will make entire text in red color if the value is negative.
    if($.rawValue <0) then $.validate.nullTest = "error" endif      //This will make border of the field in red color if the value is negative.
    Hope this helps.

  • Need help with Template - unbalanced #EndEditable tag

    I am unable to use this template to create a new page and get the "unbalanced #EndEditable tag" error.
    If I open the file independently it looks great - otherwise I get the error.
    Code for internal_students.dwt
    There is an error at line 45, column 79 (absolute position 2188)
    <div id="metanav"><!-- #BeginLibraryItem "/Library/metaNav.lbi" -->
    <p><a href="../Library/contact/index.html">Contact Us</a></p>
    <!-- #EndLibraryItem --></div>
            <div id="navigation">
                <div id="navigation_l">
                    <div id="navigation_r"><!-- #BeginLibraryItem "/Library/mainNav.lbi" --> <ul>
                            <li><a href="../index.html" class="first"><img src="../images/spacer.gif" alt="CAITE Homepage" width="75" height="20" border="0" /></a></li>
                            <li><a href="../about/index.html">About</a></li>
      <li><a href="../news/index.html">News And Events</a></li>
      <li><a href="../educators/index.html">For Educators</a></li>
      <li><a href="../students/index.html">For Students</a></li>
      <li><a href="../industry/index.html" class="last">For Industry</a></li>
                        </ul>
    <!-- #EndLibraryItem --></div>
    I need help with this as the site and templates were created 2/3 years before I arrived on the job.
    Thank you
    Cheryl

    Okay
    - This is on-line page  http://caite.cs.umass.edu/students/index.html
    If you want code from template here it is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/internal_about.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>CAITE - Commonwealth Alliance for Information Technology Education</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <meta name="Description" content="Commonwealth Alliance for Information Technology Education (CAITE) to design and carry out comprehensive programs that address under representation in information technology (IT) education and the workforce. CAITE will focus on women and minorities in groups that are underrepresented in the Massachusetts innovation economy" />
    <meta name="Keywords" content="Commonwealth Alliance for Information Technology Education CAITE Massachusetts women minorities information technology IT" />
    <meta name="robots" content="all, index, follow" />
    <meta name="revisit-after" content="14 days" />
    <meta name="author" content="Outreach Web Team" />
    <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable --><!-- InstanceEndEditable -->
    <link rel="shortcut icon" href="/images/favicon.ico" />
    <script type="text/javascript" src="../scripts/jquery.js"></script>
    <script type="text/javascript" src="../scripts/jquery.easing.js"></script>
    <script type="text/javascript" src="../scripts/jquery.pngfix.js"></script>
    <script language="JavaScript" type="text/JavaScript">
        <!--
        $(document).ready(function() {
            $("img[@src$=png], div#wrapper_l, div#wrapper_r, div#whatsnew").pngfix();
        //-->
    </script>
    <link href="../css/screenstyle.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="../css/printstyle.css" rel="stylesheet" type="text/css" media="print" />
    </head>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <body>  
        <div id="wrapper">
            <div id="metanav"><!-- #BeginLibraryItem "/Library/metaNav.lbi" -->
    <p><a href="../Library/contact/index.html">Contact Us</a></p>
    <!-- #EndLibraryItem --></div>
            <div id="navigation">
                <div id="navigation_l">
                    <div id="navigation_r"><!-- #BeginLibraryItem "/Library/mainNav.lbi" --> <ul>
                            <li><a href="../index.html" class="first"><img src="../images/spacer.gif" alt="CAITE Homepage" width="75" height="20" border="0" /></a></li>
                            <li><a href="../about/index.html">About</a></li>
      <li><a href="../news/index.html">News And Events</a></li>
      <li><a href="../educators/index.html">For Educators</a></li>
      <li><a href="../students/index.html">For Students</a></li>
      <li><a href="../industry/index.html" class="last">For Industry</a></li>
                        </ul>
    <!-- #EndLibraryItem --></div>
                    <!-- end navigation right -->
                </div><!-- end navigation left -->
           </div><!-- end navigation -->
            <div id="wrapper_l">
                <div id="wrapper_r">
                      <div id="innerwrapper">
                        <div id="internalBanner-print"> <h1>Commonwealth Alliance for Information Technology Education (CAITE)</h1></div>
                        <div id="internalBanner"><!-- InstanceBeginEditable name="internalBanner" -->
                          <div class="students-banner">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="125" height="188" align="left" valign="top" id="homeImage"><img src="../images/logo_vertical_small.png" alt="CAITE" width="105" height="188" /></td>
                                <td align="left" valign="top" id="internal-banner-quote"><div id="internalQuote">
                                    <div id="internalQuote-inner">
                                      <p>CAITE designs and carrys out comprehensive programs that address under-representation in information technology (IT).</p>
                                  </div>
                                </div></td>
                              </tr>
                            </table>
                        </div>
                        <!-- InstanceEndEditable --></div> <!-- end banner -->
                        <div id="internalContent">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="317" align="left" valign="top" id="secondary-content">
                                  <!-- InstanceBeginEditable name="SecondaryNav" --><!-- #BeginLibraryItem "/Library/studentNav.lbi" -->
                                  <h3><a href="../students/index.html">For Students</a></h3>
                                  <div id="secondaryNav">
                                    <ul>
                                      <li><a href="http://www.takeITgoanywhere.org" target="_blank">TakeITgoanywhere.org</a></li>
                                    </ul>
    </div><!-- #EndLibraryItem --><!-- InstanceEndEditable -->
                                </td>
                                <td align="left" valign="top" id="contentCell"><!-- InstanceBeginEditable name="mainContent" -->
                                  <h1>For Students</h1>
                                  <p>The University of Massachusetts Amherst is leading a Commonwealth Alliance for Information Technology Education (CAITE) to design and carry out comprehensive programs that address under representation in information technology (IT) education and the workforce. CAITE will focus on women and minorities in groups that are underrepresented in the Massachusetts innovation economy; that is, economically, academically, and socially disadvantaged residents.</p>
                                  <p>The project will pilot a series of outreach programs supported by educational pathways in three regions (one rural, one suburban, and one urban). The project will include work with high school teachers, staff, and counselors. CAITE will identify best practices and disseminate, deploy, extend and institutionalize these best practices statewide and nationally.</p>
                                  <p>Community colleges are the centerpiece of CAITE because of the central role they play in reaching out to underserved populations and in serving as a gateway to careers and further higher education.</p>
                                  <p>This project will build a broad alliance built on its leadership in and partnership with the Commonwealth Information Technology Initiative (CITI), the Boston Area Advanced Technological Education Center (BATEC), regional Louis Stokes Alliances and NSF EGEP programs, and other partnerships and initiatives focused on information technology education and STEM pipeline issues</p>
                                  <p> </p>
                                <!-- InstanceEndEditable --></td>
                              </tr>
                          </table>
                        </div>
                        <div id="alliances">
                              <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td height="30"  align="left" valign="top"><h2><a href="../about/alliances.html">Alliances</a></h2></td>
                                </tr>
                                <tr>
                                  <td  align="center" valign="middle"><!-- #BeginLibraryItem "/Library/AllianceTable.lbi" --><p>
    <table border="0" cellpadding="2" cellspacing="0">
                                    <tr>
                                      <td width="35"  align="center" valign="middle"> </td>
                                      <td  align="center" valign="middle"><a href="http://www.citi.mass.edu/" target="_blank"><img src="../images/logo_citi.jpg" alt="Citi" width="65" height="50"  border="0 /"></a></td>
                                      <td align="center" valign="middle"><a href="http://www.batec.org/index.php" target="_blank"><img src="../images/logo_batec.jpg" alt="BATEC" width="69" height="46" border="0" /></a></td>
                                      <td  align="center" valign="middle"><a href="http://www.nsf.gov/index.jsp" target="_blank"><img src="../images/nsflogo.gif" alt="NSF" width="64" height="65" border="0" ></a></td>
                                      <td  align="center" valign="middle"><a href="http://www.nelsamp.neu.edu/" target="_blank"><img src="../images/nelsamplogo.gif" width="100" border="0"></a></td>
                                      <td  align="center" valign="middle"><p><a href="http://mysite.verizon.net/milnerm/" target="_blank"><img src="../images/umlsamp.png" width="85" height="63" border="0"></a></p>                                  </td>
                                      <td  align="center" valign="middle"><a href="http://www.neagep.org/index.asp" target="_blank"><img src="../images/nealogo.gif" border="0" ></a></td>
      </tr>
                                  </table>
    <!-- #EndLibraryItem --></td>
                                </tr>
                          </table>
                        </div>
                    </div> <!-- end inner wrapper -->
                </div><!-- end wrapper right -->
            </div><!-- end wrapper left -->
            <div id="bottom">
                <div id="bottom_l">
                    <div id="bottom_r"> </div><!-- end bottom right -->
                </div><!-- end bottom left -->
            </div>  <!-- end bottom -->
        </div><!-- end wrapper -->
        <div id="copyright"><!-- #BeginLibraryItem "/Library/copyright.lbi" -->
    <p>Sponsored by CAITE an NSF CISE Broadening Participation in Computing Alliance<br />
    &copy; copyright 2008 <a href="http://www.umass.edu/" target="_blank">University of Massachusetts, Amherst</a></p>
    <font color="#666666"><br>
    </font>
    <p><font color="#666666" size=2>  This material is based upon work supported by the National Science Foundation under Grant No.s NSF-0634412 and NSF-0837739. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.</font> </p>
    <!-- #EndLibraryItem --></div>    
    <!-- end copyright -->
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-7435501-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
        </body>
    <!-- InstanceEnd --></html>

  • Need Help with Format/Partition.. using cmd

    Okay guys.. Im kinda sick of trying to get my Recovery to work. Seems like its about to finish and everything is perfect.. then suddenly I get an error message saying that Recovery didnt work, or something like that..
    I figured I might as well try starting with a fresh hard drive, then trying the recovery again..
    So someone told me that if I have the HP Recovery disks, then I would be able to try them, even on a brand new hard drive, or a formatted one or whatever..
    Is this true?
    If so, then what I am asking you guys, is, if there is anybody that would be able to help guide me thru the steps needed, in order for me to Format my hard drive, & then partition it or whatever…
    & I wanna be able to do all this, using cmd (command prompt)
    So Please.. anyone.. your help would be greatly appreciated..
    I have an HP Pavilion dv6653cl
    Thanks!!

    Hi,
    There's no need to pre-format a new Hard Drive - if you perform a 'Factory Reset' using your Recovery Discs, these will perform a quick format and also re-create all the original partitions on the new drive as part of the process.
    A complete guide to using Recovery Discs can be found on the relevant link below.
    Performing An HP System Recovery - Windows 7.
    Performing An HP System Recovery - Windows Vista.
    Performing An HP System Recovery - Windows XP.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Need help in formatting the report created using SSRS

    I have created an image and used it as the body background. But I want that image to come at right
    Set bodyRepeat as RepeatY. 
    Currently its showing as below              I need this blue image at the right most side of the report as below
    Also I need to display text on the image.
    Need Help!!!
    Abhinav

    Hi AbhinavSultania,
    According to your description, you created a report and added background image to it, you want to display the image at right side of the report and display text on the image.
    According to my knowledge, we could not control position of background image, as a workaround, we can refer to the following steps:
    Create an image with the blue line at right side of it using Paint.
    Right-click body of the report to open Body Properties dialog box, then import the image as background image.
    Drag text box from Toolbox to the blue line of the image. Right-click inside of the text box and click Expression, we can use expression to show dynamic contents at runtime.
    The following screenshot is for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Help: Date Format Mask Issue year 0004 instead of 2004

    Hi,
    I set Date Format Mask as MM/DD/YYYY for a date field. However, when user enter
    12/31/04 the result turned out as 12/31/0004
    Of course, I'd like user put 12/31/2004, but 12/31/04 leads to 12/31/0004 has to be stopped.
    Any suggestions?
    Thank you in advance.
    Jimmy

    Thank you very much Francois and it works for me.
    Jimmy

  • Need Help in Formatting Spool data

    Hi,
    Can anyone of you let me knw how to obtain the output flat file in the below format ?
    "ID"|"NAME"|"PARENT_ID"
    "NQ TEL"|"14"|"Macetown"
    But I am gettin the output.. as below.
    VENDOR_NAME||'|'||VENDOR_ID||'|'||CITY
    NQ TEL|14|Macetown
    NA TEL|14|Molokai
    I am using the following script in SQL PLUS and calling it with @ < file path>.
    set heading on
    set echo off
    set feedback off
    spool Y:\Spool\output1.txt
    select Vendor_Name || '|' || Vendor_ID || '|' || City from vendor where city like 'Ma%';
    spool off;
    set feedback on
    set echo on
    set heading on
    Can anyone help me on this.? In Addition to this, I also need to remove the line separating Header and the Data .
    Thanks a ton. :)

    Try this:
    select ' " ' || Vendor_Name || ' " ' || ' "|" ' from vendor where city like 'Ma%';

  • Need help to format data

    Hi Gurus,
    I am extracting the field "CATEGORY" from oracle to BW. But I found data in the InfoCube is in exponential format (Example Cateory = 4.1030000000000000E+03 ). I don't need data in exponential format. What's the best way to fix this problem.
    Thanks
    Liza

    Hi,
    Check the downloaded file from Oracle. I guess, you opened up in Excel and then loaded into BW.
    Open it in Notepad and suppose you are creating .csv file, then open it as text file in the Excel.
    Hope, it helps.
    Thanks
    Viswa

  • Need help in formatting a number field with same precision for excel output

    I am trying to get the same preciision for a field in RTF template when the output is in EXCEL
    i.e. same number of digits after decimal. So, I would like to show 150 as 150.00 and 123.2 as 123.20 etc !! Is there a way to do it. the Built in formatting will not display 150.00 for 150 . but if i add $ symbol it will display. But i dont need $ syambol. please help.

    I found this on one of the forum questions.
    Excel dont preserve the trailing zeros.
    try opening the xcel and type 5.0000 and tab out, it wont preserve the trailing zeros after decimal.
    try finding out how to disable the option in excel. if you do that, you will see what you send out from the report.
    But you can try to convert the number into a text by trying to append a space at the beginning. See if that would work.
    Thanks
    Swarna

  • I need help in formating in Pages

    I need formating help in Pages: I need two columns for text, but other text not in the columns. How do I do both?

    Hi Mandy,
    I'm not sure if I've understood what you want to do, but here's an example, based on what you've said. These instructions apply to a word processing document.
    The Columns control button toward the right end of the format bar is used to set the number of columns. It's the dark one (indicating it's been selected) just above the top left corner of its menu in the image:
    The 'other' text (I've called it 'extra text' in the image) can be placed in a text box. Click the T in the toolbar to insert a text box, resize to fit your 'other' text, and position as desired.
    One recommendation I'd make to everyone learning to use Pages is to download and read through the first few chapters of the Pages '09 User Guide. Then check in the other chapters when you want to learn how to use specific features of Pags.
    You'l find a download link in the Help menu in Pages.
    Regards,
    Barry

  • Need help with formating in a dashboard prompt

    Hi
    This should be an easy one. I'm creating some dashboard prompts and been looking on the Sample OBIEE and some prompts there. Well, what I would like to do is a prompt so simple as:
    Prompt Label:
    - alt1
    - alt2
    - alt3
    - and so on ...
    Have you seen what I've done? I want the Label of the prompt to be bold but the data inside, the alternatives should be normal.
    What I do is that go to the Dashboard prompt, create it and so on and on the lower part of the Dashboard prompt edit pane "Display" I click on the pencil ... "Edit" ... go to "Format" and in there I choose "Style: Bold" ... the thing is that both Label and Alternatives turn Bold for me ...
    What am I doing wrong?

    Hi,
    If you are using 11g then keep the prompt in a section and you can add section title and you can format it accordingly. But keep the name in the label as a BLANK.
    And if you are using 10g then by default the name in the label for the prompts becomes BOLD but the values would be normal.
    Award points if found useful/helpful to you.
    Regards
    MuRam

Maybe you are looking for