What determines output of 'D' in "to_char" function?

Hi,
Oracle 10.1.0.4.0 on Red Hat Linux
SQL> select to_char(sysdate,'D (DY) DD-MON-YYYY') as TODAY from DUAL;
TODAY
5 (THU) 29-MAR-2007What causes Oracle to say that Thursday is the fifth day of the week?
SQL> select NAME, VALUE from V$PARAMETER where NAME like '%nls%'
NAME                    VALUE
nls_language            AMERICAN
nls_territory           AMERICA
nls_sort
nls_date_language
nls_date_format
nls_currency
nls_numeric_characters
nls_iso_currency
nls_calendar
nls_time_format
nls_timestamp_format
nls_time_tz_format
nls_timestamp_tz_format
nls_dual_currency
nls_comp
nls_length_semantics    BYTE
nls_nchar_conv_excp     FALSE
17 rows selected.Thanks,
Avi.

For your information, this is the solution we employed:
select decode(to_char(sysdate,'DY','NLS_LANGUAGE=AMERICAN')
             ,'MON','1'
             ,'TUE','2'
             ,'WED','3'
             ,'THU','4'
             ,'FRI','5'
             ,'SAT','6'
             ,'SUN','7')
  from DUALGood Luck,
Avi.

Similar Messages

  • What is the use of To_date, to_char functions?

    what is the use of To_date, to_char functions?
    while i am using these in my day to day activities but never able to know the exact working of tehse.
    Message was edited by:
    437022

    Dates are stored and manipulated as coded (binary) values that always contain "century, year, month, date, hour, minute second"
    We don't want to see the date as stored. We want to see the characters (digits) that make up the date. So we use to_char(the-date-value)
    We want to tell the system a date, but have a heck of a time entering the binary. So we input the characters (digits) that make up the date and tell the system to convert that to a binary 'date' using to_date(our-string-that-respresents-dates)
    The magic Oracle has added is the format codes (see chapter 2 of the SQL Reference manual for the complete list). We can get the system to print out dates and times, including day of week (and so on) using format codes.
    The default format is to show us the date but not the time. Which leads a lot of people to believe that the time is not stored.

  • SD: Output determination - Use of transmission medium = "Special function"?

    Hi,
    Would you tell me what is the specific use of transmission medium = "Special function" (table TNAPR-NACHA = 8) in the output determination for messages?
    Transaction V/30
    Thanks and regards,
    Eric

    Hi Guys - Transmission medium 8 - special function is a very strong functionality that SAP has provided. You can have a business document perform a specific function everytime it is created, obviously as an output to that document. I am not sure about FICO areas, but I have worked on it in SD.
    We do automatic shipment creation for deliveries. An output condition was created with access sequence of shipping cond and shipping point. Now whenever there will be a delivery created for this shipping point, it would trigger this output. The output is configured with special function transmission medium. The special function executes the program mentioned in the condition record set up. Through that program, we create a shipment that will have that delivery doc.
    So then everytime a delivery is created, we would have a shipment document created for it without having to schedule another background job....!!!!
    Likewise, you may accordingly utilize FICO documents and processing using special function output medium.
    Thanks
    Nikhil

  • What is Output Master Data ?

    Dear Experts,
    What is Output Master Data..pls clear in detail..
    Thx/Vaibhav

    HI vaibav,
    Output Determination Configuration
    Sales order confirmation
    1.     Maintain output types (Transaction: V/30  or Sales & Distribution -> Basic Functions -> Output -> Output determination -> Output proposal using the condition technique -> Maintain output determination for sales document -> Maintain output types)
    1.1.     Select and copy BA00 to ZA00
    1.2.     Access sequence 0003 (Sales org / customer). If one of these is not suitable then you need to maintain condition tables
    1.3.     Change Transm. Medium to 6 (EDI), partner function SP (Sold to), Time (4 = immediate)
    1.4.     Check access to conditions and check off multiple issuing
    1.5.     Save
    2.     Assign output determination procedure (Transaction V/47 or Sales & Distribution -> Basic Functions -> Output -> Output determination -> Output proposal using the condition technique -> Maintain output determination for sales document -> Assign output determination procedure)
    2.1.     Create a new entry for ZA00, medium 6, function SP and order confirmation.
    3.     Maintain output determination procedure (Transaction V/32 or Sales & Distribution -> Basic Functions -> Output -> Output determination -> Output proposal using the condition technique -> Maintain output determination for sales document -> Maintain output determination procedure)
    3.1.     Check Assign output determination procedures -> Allocate sales document header (Transaction V/43) for the Output procedure being used for order OR and BA00 and youu2019ll find that it is linked to V10000
    3.2.     Select V10000 (Transaction v/32) and choose control
    3.3.     Add a new step for your new output type. Eg. Step 40 (Next Step in sequence), Counter, Type = ZA00 and requirement 22 (Requirement tells when the output is required to be fulfilled. Ie. After order confirmation, after goods issue, u2026)
    4.     Create condition records (Menu path: Logistics -> Sales & Distribution -> Master data. Output -> Sales document u2013 Create)
    4.1.     If required select the appropriate key combination (in this case the Sales org / customer relationship)
    4.2.     Enter the customer number (QWM000 in this case) and enter. The rest of the values should be read in except the partner number.
    4.3.     Enter the required partner number (QWM000 in this case). This is the partner that will be EDIu2019d the data. It is usefull when you have multiple SAP customers that need to send messages to 1 partner. Eg. All the Wal-Marts send their invoices to 1 office. You would then have a list of customers, relating to each Wal-Mart, pointing to 1 Wal-Mart partner that will receive all the EDI docs.
    Advance shipping notification
    Similarly the output type was copied from LALE to ZALE and linked to partner QWM000
    Based on when a delivery note is created (Transaction V/36)
    Invoice
    Similarly the output type was copied from RD00 to ZD00 and linked to partner QWM000
    Based on when a delivery goods issue is posted. (Transaction V/42)
    hope this helps,
    krishna prasad

  • What determines whether the Label name and/or Caption appears in the context help window but in other cases, both the label and caption appear in the context help window?

    I am trying to polish an application, and find that I cannot seem to reliably control which of the label or caption text appears in the context help window because I don't understand what rules are in place to determine which should appear. It seems like if I reate a named constant, then use it's right click menu command "Create Indicator" I get a control with only a Label (as long as I don't add a caption). This then appears in the context help window as the label name followed by the description text (after entering some description text). But if I add a caption, the label name is shown in bracket
    s which is a 'feature' I would like to avoid, because I have certain controls where I would like to use a descriptive variable name on the block diagram side without using so much space on the front panel. It seems like there is no way to avoid showing the Label name in the context help for a control/indicator. Is this true?
    I thought the purpose of having a seperate caption was to make the text that appears with a control programmatically controllable, but if that control is not extended to what appears in the context help window, it limits the usefulness of the caption and forces me to re-consider some Label names. However, the problem goes deeper than that because then even when I make the label and caption exactly the same, or if I delete (via a select caption text-backspace or select caption text- delete key .. sequence) the caption for a control, the label name in the context help window still appears in square brackets!
    Can I have complete control over the context help fo
    r a particular control (or has anyone found a third-party context help solution that functions compatibly with LabVIEW 7 in a built application that they will be so kind as to recommend?)
    I have used LabVIEW for three years, and I am now using LabVIEW 7.0.

    Sorry for that.. I was changing the text of my question and didn't read carefully enough in the preview stage. I wanted it to read "What determines whether the Label name and/or Caption appears in the context help window?"

  • What is the need of creating partner functions for sales document type.

    Hi SAP (SD-GURUS),
    Actually we create partner functions  before creating customer ex: sold to party, ship to party, bill to party, and payer.
    These partner functions are going to be copied into sales order while processing sales order.
    Again what is the need of creating partner functions for sales document type.
    Thanks&Regards
    sreenivas peruru

    There are some Partners you could enter at Sales ORder Level. E.g. Sales Person, Employee Responsible, Forwarding Agent, Broker, etc.
    Thus these partner Determination need to be carried out at Sales Order Level & not at Customer Master level.
    So we have to configure partner Determination for various levels e.g. Customer Master, Sales Order, Delivery level etc...
    Hope this helps...
    THanks,
    Jignesh Mehta

  • Determine output filename based on input filename content with RFC lookup

    Hello Guys,
    I have this sitaution which needs your ideas/sugestion.
    1)  PI system picks up text file from FTP server folders.
    2)  Within PI system,  we need to dynamically determine output filename , logic to determine output filename will be :
              2a)  Read content of the input file particular line number  (Fixed)
              2b)  Pass the value got from step 2a)  to the Remote function module passing value read in step 2a) to get response
              2c)  Use response received from 2b) to construct output filename.
    Please let me know if you have any qeustions on my problem,  appreciate your ideas/suggestions.
    Thanks,
    Krishna

    Hello Priyanka,
    THanks for your response to my post.
    My input  TEXT filename has following contents
    :20:CHASGB2LXXX
    :25:24803501
    :28:11264/01
    :60F:C110921USD85410,88
    :61:110921C12307,00NTR NONREF//5311802
    :86:TR ?
    ?20IV.2000199238 FR.26.08.11 IV.2000198595FR.22.08.11
    ?23AZMAT20091123183
    Now  I would like to read second row of this TEXT file containing   ":25:24803501"   and would like to read only text
    24803501.
    Hope this additional info will provide me more info on my requirement.  Appreciate your response.
    Regards
    Krishna

  • How to redirect standard output/error of a ucb function to matrixx command window

    Is there a way to redirect standard output/error of a ucb function to matrixx command window?
    I know that the recommended way is to use stdwrt or XmathDisplay commands. However, we have some
    libraries that already exists which uses printf calls and I would like to redirect their output
    to the matrixx command window.
    Thanks

    Hi,
    What you need to do is create a printf function that will print the information into a string, then you can use stdwrt to display it in Xmath.
    Then you tell the UCB linking process to compile and link with this version of printf.c
    I am including the printf.c that we used to test the function you needed.
    Hope this helps.
    Attachments:
    printf.c ‏1 KB

  • How to use Output Transmission Medium 8 (Special Function)

    Hi All,
    May I get how to use output transmission medium 8(Special Function) in Output Determination.

    Hi,
       configure output type with transmission medium 8
        in nace transaction and assign it to driver program
        and so that entry exist in table tnapr and use
       RSNAST00 program to send output as email.
      Before you have create entry in va02->header-output->
      with processsing status 0 . 
    Regards
    amole

  • TO_CHAR FUNCTION IN ORACLE FORM

    HI,
    Table called A has column name col1
    col1
    12563.563
    52685.563
    05263.540
    I would like to use SUBSTR(col1,2,6) for insert values from A table to B table by Oracle form and following values are inserted in B table
    2563.5
    2685.5
    263.4
    If I use SQLPLUS it is inserting as my requirement like
    2563.5
    2685.5
    5263.4
    Third row should be 5263.5 instead of 263.4. In Oracle form may have internal coversion function to convert character value to number values, I do not want to convert the value to number. Both table columns are varchar2 column.
    What is the equal to_char function in Oracle form. If it is NLS_NUMERIC_CHARACTERS, please what are the parameters to be passed along with column.
    Thanks in advance
    Saravanan.

    Hello,
    If you don't want to take account any calculation on the decimal part, you could consider the Trunc() function instead of the To_Char():
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select to_char(52685.563,'00000000.0'), trunc(52685.563,1) from dual
      2  /
    TO_CHAR(526 TRUNC(52685.563,1)
    00052685.6            52685.5
    SQL> Francois

  • Message Determination & Output Control

    Hi all,
    What Message Determination & Output Control?
    Why we use them , also what are the configuration steps in same?
    Please guide me alon with transaction codes involved in it?
    Thanks in Advance.
    Komal

    Hi Komal,
    The message determination Process is the process in which you select how you want your output.
    You go to T code "NACE" and can see which Application area is activated for which type. Eg. for PO gernally it is NEU. So you can select from here that which procedure and further which sap script or smart form as well as print driver or program is attached to that and can do amendements if desired.
    Also you can maintain what are the out put detrmination method attached to that like print, email, EDI , fax etc.
    Cheers!!
    Biren Agnihotri

  • What determines which inputs you can select from when you're creating a VISA Resource Name Constant?

    Hey, I'm trying to write a labview driver an instrument. I have another instrument which came with labview drivers, and I had hoped that by looking at how they did it, I could write my own for this piece of equipment.
    However, the problem is they use the old visa open method. That is, they input a string, "GPIB::6", and it outputs a visa session.
    The new Visa open requires that you have an input resource name, and the constants only let me pick from "COM1" and "LPT1", but the GPIB interface card in this computer is in a PCMCIA slot.
    What determines what choices you get when you select the value of the constant?
    Thanks,
    -Dobbs

    If you created a VISA Resource Name control, right click on the control and select "Allow Undefined Names".
    I haven't programmed directly using VISA on LabVIEW 6 but it apppears that if you select from the drop-down menu, it shows the devices that is defined in MAX. Thus, you should be able to select your GPIB resource name if it has been properly installed.
    Nevertheless, it still allows you to override the control by selecting "Allow Undefined Names".
    I hope that helps.
    Shan Pin Koh

  • Trouble getting a timestamp formatted by a 'to_char' function

    We have trouble getting a timestamp formatted by a 'to_char' function and a 'group by'
    for a count. By assigning the result of the to_char function to an attribute and
    grouping on that attribute, we try to get the frequency of an event.
    What happens is a non predictable 'IllegalArgumentException' on
    'Timestamp.class' while getting the timestampvalue.
    We make use of a scrollablecursor as you can see in the stacktrace.
    java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
    at java.sql.Timestamp.valueOf(Timestamp.java:160)
    at oracle.sql.CHAR.timestampValue(CHAR.java:567)
    at oracle.jdbc.driver.ScrollableResultSet.getTimestamp(ScrollableResultSet.java:658)
    at oracle.toplink.oraclespecific.Oracle9Platform.getObjectFromResultSet(Unknown Source)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(Unknown Source)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.fetchRow(Unknown Source)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.cursorRetrieveNextRow(Unknown Source)
    at oracle.toplink.queryframework.ScrollableCursor.retrieveNextObject(ScrollableCursor.java:512)
    at oracle.toplink.queryframework.ScrollableCursor.loadNext(ScrollableCursor.java:357)
    at oracle.toplink.queryframework.ScrollableCursor.hasNext(ScrollableCursor.java:233)
    After restarting the application server there is a chance that the query returns
    with the expected results. But most of the times it just returns the above
    mentioned exception.
    I don't see the logic in the apparently random parsing of the value.
    The column in the database is a timestamp, but that the reason why i'm using the
    to_char method.

    This is a bug in TopLink with ReportQuery. Please report this is Oracle technical support. Basically TopLink is converting to the attribute type, but should not be if a function was applied to the expression.
    To workaround the issue you can use getField(/) in the expression instead of get(/) (using the database field name instead of the class attribute name).

  • Report Generation: what determine row height?

    When using the standard report generation vis, and I append a table, what determines the height of the rows? You can set the column width, but even down into all the vis, I don't see any way to control this.
    This is in Labview 8.5.1
    Message Edited by remenakb on 04-21-2008 12:53 PM
    Brad Remenak
    Certified LabVIEW Architect

    I have a Zebra printer I am trying to print to and it seems like the row height is determined from just the text length. Even if the column width is plenty wide enough.  But if I send it to a regular Canon printer the table seems to print fine.
    Brad Remenak
    Certified LabVIEW Architect

  • What determines how a PDF or EPS file is opened??????

    Hi I was wondering if anyone can tell, what determines how a PDF or EPS is opened in Photoshop.
    If I open a PDF in photoshop, the first thing that pops up is the settings for which you want it to open. i.e., color mode, resolution, you choose what you want and then open.
    I always thought that how the file was created determines the initial settings in which photoshop displays in that little dialogue box. (for example, if I open an illustrator eps file that I created in photoshop, it always prompts the correct settings (300dpi, CMYK) I click open and it works great.
    But when I open a PDF in photoshop it always displays the color mode as RGB, not cmyk. Which i find odd, because I know there is no RGB color space in the PDF.
    Today something weird happend, I created an Ad in Indesign, every image I am certain was 300 dpi, and the rest are vectors. Exported it to PDF with high resolution settings, but when I opened it up in Photoshop, the settins dialogue box promted it as 72dpi, which again I find odd because I know each image is 300, the rest are vectors, and I know the PDF preset to which I exported it creates high res images.
    Does anyone know what determines how a PDF or eps file is opened in Photoshop and why photoshop is rendering a PDF in which I am certain is hi res, to a low res?
    Thanks for any help. Kevin

    >Hi I was wondering if anyone can tell, what determines how a PDF or
    >EPS is opened in Photoshop.
    Nothing, really. EPS provides this info openly in its header, but it is not always right, so PS cannot even assume it would be correct to use that info. For PDF it's a different story. PDF is a container format that can contain any number of items in mixed resolutions and colorspaces, hence PS cannot assume anything. Likewise, you can have multiple pages, links, multimedia content, all of which may influence the result upon display or rasterization...
    Mylenium

Maybe you are looking for

  • How do I save my file using InDesign CS6 so that it can be opened with CS5?

    I know other people asked similar questions but I can't find anything that helps me figure my issue out. Basically, I packaged my file using InDesign CS6. When I sent it to the person it needed to be sent to, she couldn't open it. She was running CS5

  • Include Sub-Items option in User Default Books

    Hi, I have > 1000 users in my On Demand system and the Default Book parameter on a User is set to a Book say "Sales" instead of "Sales +" I want to do a data Import to set this from "Sales" to "Sales +". I tried doing an Import using the data Loader

  • IRecruitment Related Queries

    Hi, 1.where is the post advert button located in vacancy details page and what is its functionality . I am unable to view that button. 2. Once i fill the vacancy details, the page moves on to "Job posting details" page. Is it the same in your case .

  • [commission agent] : deal with a customer with many agent

    Dear SAP Experts, i am trying to set up the commission agent with rebate agreement. Here is my situation: 1. i have 1 customer (customerA) 2. i have 2 agents (agentA & agentB). The agents are created as customer, both are rebate recipients 3. i have

  • "no symbolic info for main compile with -g"

    Hi i compile my code with g77 -g but I get the above error when I try to use the sun studio debugger. Anyone can tell me how to fix?