Ascii and asciistr

when i am using function    select asciistr('abcd') ,asciistr('?lp') from dual;
its not working and it displays as
ASCIISTR('DEFG') ASCIISTR('?X!')
DEFG             ?x!            
whereas when i am using
select ascii('abcd'),ascii('?lp') from dual;
i am getting the following output
ASCII('DEFG') ASCII('?X!')
           68           63
what is the difference between the two?
why asciistr not working? and ascii is showing that output which asciistr should have shown

Hi,
Both functions are working correctly.
Why do you think ASCIISTR is not working?  Why do you think ASCII is wron
Look up each function in the SQL Language manual if you're confused about what they are supposed to do.
  ASCII returns a NUMBER, depending on the 1st character of the arguemnt only.
  ASCIISTR   returns a string, depending on the entire argument.

Similar Messages

  • What is the diffrence between ASCII and BIN mode

    Hello All,
    What is the diffrence between ASCII and BIN mode
    Regards,
    Lisa.

    'ASC' :
    ASCII format. The table is transferred as text. The conversion exits are
    carried out. The output format additionally depends on the parameters
    CODEPAGE, TRUNC_TRAILING_BLANKS, and TRUNC_TRAILING_BLANKS_EOL.
    'IBM' :
    ASCII format with IBM codepage conversion (DOS). This format correspond
    to the 'ASC' format when using target codepage 1103. This codepage is
    often used for data exchange by disc.
    'DAT' :
    Column-by-column transfer. With this format, the data is transferred as
    with ASC text. However, no conversion exists are carried out and the
    columns are separated by tab characters. This format creates files that
    can be uploaded again with gui_upload or ws_upload.
    'DBF' :
    The data is downloaded in dBase format. Because in this format the file
    types of the individual columns are included, import problems, for
    example, into Microsoft Excel can be avoided, especially when
    interpreting numeric values.
    'WK1' :
    The data is downloaded in Lotus 1-2-3 format.
    'BIN' :
    Binary format. The data is transferred in binary format. There is no
    formatting and no codepage conversion. The data is interpreted row by
    row and not formatted in columns. Specify the length of the data in
    parameter BIN_FILESIZE. The table should consist of a column of type X,
    because especially in Unicode systems the conversion of structured data
    into binary data leads to errors.

  • Need your suggestions - how to display large file in ASCII and HEX

    Hello,
    I want to create an application which can read in a large file and switch between displaying ASCII and HEX (formatted a particular way). There are two problems here that I'm not quite sure how to solve.
    1. How to switch dynamically between ASCII and HEX. Should the HEX formatter be in the document of the JTextArea(or equivalent), or somewhere in the view? If it's in the view then where? I'd rather not read in the file more than once.
    2. How to do some kind of paging scheme for huge files. I'd like to read in part of the file and display it, then when the user scrolls to another area, read in that part of the file.
    Thanks!
    Jeff

    Hello,
    I want to create an application which can read in a
    large file and switch between displaying ASCII and
    HEX (formatted a particular way). There are two
    problems here that I'm not quite sure how to solve.
    1. How to switch dynamically between ASCII and HEX.
    Should the HEX formatter be in the document of the
    e JTextArea(or equivalent), or somewhere in the view?
    If it's in the view then where? I'd rather not read
    d in the file more than once.You can iterate over all the characters in the String using String.charAt, cast the chars to ints, and call Integer.toHexValue(...)
    >
    2. How to do some kind of paging scheme for huge
    files. I'd like to read in part of the file and
    display it, then when the user scrolls to another
    area, read in that part of the file.
    Thanks!
    Jeff

  • Reading a fle format thats part ascii and part binary

    Hey
    I'm trying to write a importer for the PLY filke format. That file format starts of with a header in ascii and then continues with either the data in ascii or in binary. When the data is in ascii I have no problem reading the file but when the data is in binary I'm noth quite sure how I should do it. Right now I do something like this:
    BufferedInputStream stream = new BufferedInputStream(new FileInputStream(file)); // I first create this
    BufferedReader reader = new BufferedReader(new InputStreamReader(stream));  // then this is for reader ascii
    DataInputStream dataInputStream = new DataInputStream(stream); // And this is for reading binaryThen I read the ascii header with the BuffereReader and then wheter I turns out that the data is in ascii I countine reading with the reader, otherwise I start reading with the DataInputStream. But the data from the DataInputStream is not the same as I get from the BufferedReader. I try it on these files that are in diffrent endians and either ascii ot binary
    http://www.cs.ucl.ac.uk/staff/Joao.Oliveira/ply.html in the Nbunny.zip.
    Anyone that can help me with this? Or know about a PLY file reader in java already?
    Discordia
    Message was edited by:
    Discordia

    DataInputStream is NOT the right class to use for general binary input. It is used only for the specific purpose of reading Java primitives. The input obviously needs to be in the right format for that to work, i.e. it needs to be written using a DataOutputStream.
    I would read everything using an InputStream, not a reader. Store the bytes of the header until you reach the end of the header (not sure how to determine that since I don't know the fileformat). Then convert those bytes into a String using the proper charset ("US-ASCII" in this case, if by "ascii" you really mean ASCII).
    Then just continue reading the binary data.

  • Incrementing Ascii and integer loop

    Hi there,
    Just wondering if anybody can help me with this little problem that I have... I'm trying to write a loop that increments ascii and integers. It should look something like this:
    0 1 2 3 4 5 6 7 8 9 A B C D ..... X Y Z 00 01 02..... 0A 0B 0C .... 0Z 10 11 .... ABCD1 and so on...
    I got the loop bits but I don't know what I can do to combine the 2...
             for (char x= 'A'; x <= 'Z'; x++)
                   System.out.println("Count is:" + x);
             for(int i=1; i<11; i++){
                   System.out.println("Count is: " + i);Can anybody give me some tips please? Thanks in advance!

    you can do this you know
    for(int i=0,char a='a';i<11,a<='z';i++,z++)and then print whatever you want to

  • Problem with java, ASCII and Linux

    Hi Friends,
    I has a Linux RedHat 9.0 with a jre1.5.0_04 (rpm package of Sun).
    I has a problem with ASCII , for example :
    import java.io.*;
    public class HolaMundo
    public static void main (String[] args)
    System.out.println("Hol� M�ndo");
    this programs runs ok on my windows jdk so it prints "Hol� M�ndo", but when i run the same HolaMundo.class program on my linux redhat it prints "Hol�� M��ndo"
    I think the problem is with the ASCII table that uses the linux version of jre, but i dont know how to solve this problem. I need a Spanish-European ASCII table on my application but i think it is working with a US-ASCII table.
    Then i has installed a kaffe 1.0 (rpm) java machie on this linux and this solve the problem but i has another problems of compatibility with this old version of java kaffe.
    Do you know whats happening?
    Thanks in advance.

    The problem doesn't have to do anything with Java or Linux as far as i can see. It's more likely a problem with Windows XP and IE. Be assured that normally downloading the Linux JDK in windows is not a problem.

  • A string that can be displayed as both ASCII and hex in an indicator will only save the data to a file in ASCII format

    We can see the data in an indicator just fine, but when we try to write that string of hexadecimal data to a file, it will only save the data in ASCII format.  
    This sounds fairly simple, as the indicator can be selected to display the data in several different formats (VI>Properties>Appearance>Display Style: Normal, Backslash...., Hexadecimal).  However, I have been unable, as of yet, to save the data in different formats.
    Solved!
    Go to Solution.

    altenbach wrote:
    ... or you could just read the string:text.text property to get whatever is actually displayed.
    like this...
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    texttextString.PNG ‏6 KB

  • FCC with ASCII and UTF-8 encoding issue

    Hi,
    I have File to IDoc scenario and I am doing FCC which has Japanese chars. (PO with HEADER,1,ITEMS,*)
    I have specified UTF-8 encoding in file adapter to processed the file.
    Earlier, my source file was in ASCII format which had junk chars; my file was picked and Idoc posted had junk chars.
    Then I used UTF-8 encoding for my source file to correct this issue. XI showed proper Japanese chars but this time Header part is missing.
    Do I have to specify encoding in "module" for File adapter?
    Regards,

    Thanks for your replies Chirag/Gabriel,
    ISO encoding didn't work.
    My source file will be in UTF-8 format.
    There is one correction. It is ANSI encoding, not ASCII as in the subject.
    I still have this issue when my document offset is 0.
    I tried to play around with FCC and found this odd thing.
    When first line of my input file is blank....and I omit reading the first line with offset 1, then file is read in its entirety.
    Again, when I remove this blank line and the file starts with Header and with offset 0 in File adapter, then again my Header part is missing.
    What to do?
    Regards,
    AV

  • Read Data (ASCII) and send to analog output

    Hello
    I have the following MAX configuration:
    Analog input task, continous, 2 samples, rate 100Hz (PCI-6024E)
    Analog output task, continous, 64 samples, rate 100Hz (PCI-6723)
    The cards are synchronized by the RTSI bus.
    With Dasylab I display signals from load cells by the input task. A "Read Data" module sends values to the output task. The "Read Data" module has the following settings: Output in realtime, synchronisation with analog input task, file is an ASCII, block size 4 values, no ascii time channel.
    Additional settings for DAQmx are done by DasyLab:
    Analog input: Driver buffer 30
    Analog output: Driver buffer 30, output start after 2
    When I start DasyLab I get a DAQmx failure (after a couple hours): DAQmxReadAnalogF64, Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten.
    Could anyone please explain, how to configure analog input/output task and the DasyLab settings (Read Data)? - Attached the DasyLab diagram.
    Additional information: The application should read and display signals from a test bench (load cells). The output shall feed external controllers. The input and output signals shall be displayed on the same chart (as realtime as possible).
    Thank you
    Regards Samuel
    Attachments:
    DasyLabDiagram.png ‏67 KB

    Thanks for the prompt reply! - I have changed the settings to the following:
    Analog input task, continous, 16 samples, rate 100Hz, driver buffer 32
    Analog output task, continous, 16 samples, rate 100Hz, driver buffer 32, output start after 32
    In the "Data read" module the block size is now 16 at 100Hz
    With this setting, DasyLab runs, but only for around 12 hours.
    The following error occurs:
    "Read date module name" / The data flow is blocked by one of the following modules.
    Followed by:
    Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten.
    Is there something else I have to care? Could it be problematic to send signals from different modules to the same Chart Recorder module? I use DasyLab version 11.
    Samuel

  • Convert EBCDIC to ASCII and ASCII to EBCDIC in PI7.0 SP14

    Wea re going to be implementing PI7.0 SP14.
    I am writing the technical specification for an inbound/outbound interface into/out of ECC 6.0!
    I need to convert the File that is created out of SAP into EBCDIC in PI and for the inbound convert the file from EBCDIC into ASCII for import into ECC.
    I have more than one way to this...
    The ways I have found so far are:
    Use MessageTransformBean, use TextCodepageConversionBean, XmlAnonymizerBean, using the File Encoding field on the File/FTP Adapter, XSLT mapping or Java mapping!
    I have checked the OSS Note 821267, but this doesn't help.
    I am sure all these methods have pros and cons...
    What would be the most efficient method of changing this?  It will be running hourly and have upto 6000 entries an hour - each way!

    Hi Barry,
    I think the most efficient way in my thinking is XSLT and Java mapping.
    For java mapping u just need to get thye jar file.I believe that the encoding cp285 / cp500 is EBCIDIC. Try printing
    byte [] msg = .. // whatever
    System.out.println(new String(msg, "cp285"));
    if you get an exception saying Cp285 is unknown you may need an international version of the JRE, depends on the version you're using.
    Also u can use this in reverse.
    Please see this post:
    Re: Handling Packed decimals in XI
    regards
    Aashish Sinha
    Edited by: Aashish Sinha on Mar 25, 2008 6:07 PM

  • Ascii and printing

    I restarted my old hp4mp. I am running it on a G4 and os3.9.
    I can send a file (of any kind) to the printer but I get a message on my screen that says "printer not responding"
    I think this is because I have to set (something) to ASCII
    Can someone tell me where I find the screen that gives me this option?
    Thanks in advance
    Johanna

    HP4/MP LaserJet support is http://h20000.www2.hp.com/bizsupport/TechSupport/Home.jsp?lang=en&cc=us&prodTypeId=18972&p rodSeriesId=25485&submit.y=0&submit.x=0&lang=en&cc=us

  • ASCII and Unicode problem...

    Would you happen to know if InDesign CS3 still recognizes ASCII characters in an Applescript?
    I did some tweaking of a search & replace script (formerly used in Quark 6.5), to apply in InDesign, but it doesn’t seem to work.
    I read online that when Leopard came out, ASCII became obsolete but InDesign CS3 would be fully compatible with Unicode. So I entered Unicodes in the script and that didn’t work either.
    I also tried saving the script as “text” instead of “script” since some of the default Applescripts in my InDesign folder are “text”. But that didn’t help either.
    Script permissions are set to read/write/execute, so that can’t be the issue.
    Any ideas or suggestions?
    (attached is a portion of the search and replace Applescript, and sample InDesign file I’ve been running the script on)

    InDesign CS3 will accept Unicode and MacRoman text. if you want to enter Unicode characters directly in a script, you need to be using Applescript 2.0, which comes with OS X 10.5 -- before that you generally have to resort to hacky workarounds.
    Shane Stanley <[email protected]>
    AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

  • Access files (ascii and TDMS) by blocks, step by step

    Whener I perform a data acquisition and save the data I save to files (either ascii or TDMS, depending on acquisiton length, sampling rate, etc).
    Afterwards, when I want to access the data, the only way I have managed to is by reading it all at a time. And so, I have to turn to other softwares such as MatLab for postprocessing. And also, if files are bige enough, I sometimes have memory related troubles when reading complete files.
    I would like to know how to, because I am sure it can be done, how to do a loop for reading files by blocks, step by step; conrolling file position, block length, etc.
    Regards,
    usuario

    You may want to read Managing Large Data Sets in LabVIEW.  It walks through many of the issues you are facing here, although it is a bit dated.  After you read that, also read the LabVIEW help on the In Place Element Structure and the Data Value Reference.  Approach both with caution, since both break data flow (i.e. can be a potential race condition), but they help when dealing with copies of large data.
    Text files can be read incrementally by either line or character.  Since the ideal block read size for a Windows file system is about 65,000 bytes, I like to read in my text files 65,000 bytes at a time and doing any parsing from the memory buffer.  When the buffer runs out, I get another 65,000 bytes until the file is done.  <shamelessAdvertising>This method will be the subject of my next post on object-oriented file I/O, which will, unfortunately, be about two to three weeks from now, due to my "real job" getting in the way .</shamelessAdvertising>.  If you are in a hurry and enjoy complex code, the Read From Measurement File Express VI in LVM mode also uses this method.  If you open the front panel of one and dive into the code, you can see it in action.
    Good luck!  Let us know if you need more help.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • ASCII and UNICODE

    Hi forum,
    Do you know if there are problems in a scenario with a ASCII R/3 (4.6C) system as backend for a UNICODE SCM (5.0) ?
    Regards.
    Ganimede Dignan.

    for sure - as everything is latin-1 (1100) only, this works )
    Regards
    Volker Gueldenpfennig, consolut.gmbh
    http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de

  • ASCII and UNICODE interoperability

    Hi forum,
    Do you know if there are problems in a scenario with a ASCII R/3 system as backend for a UNICODE SCM (4.1 or 5.0) ?
    Regards.
    Ganimede Dignan.

    It ends.

Maybe you are looking for

  • Search in Internal Table Utility -- Need Pointers

    Hi Experts, As per my requirement i need to search for words in internal table and arrange internal table based on ranking i.e record which has maximum no. of hits should come first. Example: search for a string 'media rent'. Incoming internal table

  • FI - TV posting per Diems in travel to different G/L accounts in travel

    Hallo everybody, I have one question: I need to post per Diems for Meals  in Travel Management FI-TV and other flat rates {VERP, FAK, KAP} to different G/L accounts depending on the choice of travel expense admin (once to G/L account 512100 -Educatio

  • User Exit for PO change

    Hello Friends, I'm looking for a User exit/BADi which I can use to change the quantity of PO while posting the Goods Receipt from MIGO. If you know one, could you please let me know.Thanks a lot in advance. Regards, Satya

  • Converting fmb to txt

    Hi I have around 200 forms modules and would like to convert all of them in one shot to txt files so i can search for a phrase. I understand we can do it thru form designer conver binary to text option but that I have to do one by one. Is there any b

  • Opening *.webloc files in Firefox on Windows

    when will Firefox on Windows support saved *. webloc files from Firefox on Mac? This is ridiculous :/