EBCDIC to ANSI

hi..
i have an file which is in AFP format..i can read the EBCIDIC bytes of this file , when i opne this file in a HEX editor..
I just want to convert this files content ASCII and write it to file...
Can anybody please guide on how do i code a java program for this
Thanks
Amar

Thanks for the help
Here is my code..
import java.io.*;
public class DcollType {
static String readInput() {
StringBuffer buffer = new StringBuffer();
try {
     FileInputStream fis = new FileInputStream("CLR812AX_TST5000.afp");
     InputStreamReader isr = new InputStreamReader(fis, "Cp1047") ;
     Reader in = new BufferedReader(isr);
     int ch;
     while ((ch = in.read()) > -1) {
          buffer.append((char)ch);
     in.close();
     return buffer.toString();
} catch (IOException e) {
     e.printStackTrace();
     return null;
static void writeOutput(String str) {
try {
     FileOutputStream fos = new FileOutputStream("ascii.out");;
     Writer out = new OutputStreamWriter(fos, "ASCII" );
     out.write(str);
     out.close();
} catch (IOException e) {
     e.printStackTrace();
public static void main(String[] args){
String inputstr=readInput();
writeOutput(inputstr);
Now my main intention for this code is , that i just want to override some information..
1.
Lets say like if i have a customer name in a File as 'TOM', then wherver in the file i get TOM, i just want to replace it with 'XXX' and then again convert it to EBCDIC..
How do i do my search on TOM and replace with XXX using java code..
2. once my above task is completed, i would reconvert my code back to EBCDIC.. will i lose the integrity of mine contents of then or mine contents will remain same..
Thanks
Amar

Similar Messages

  • EBCDIC to ANSI Conversion

    Hi,
    We have a question from the partner and they want to know how the data from mainframe can be converted from EBCDIC to ANSI format?
    Any pointer would be helpful.
    Thanks
    Umesh

    Check out the DB2 z/OS Installation & Setup guide (...and, I think you mean ASCII and not ANSI...)
    If you use a typical GG capture process + data pump to send data to/from z/OS to/from unix/linux/windows, then GoldenGate v10+ should automatically convert between ASCII and EBCDIC when the pump sends the data to the remote trail. (It's been a while since I've tried.... But you can use logdump to verify if you have the environment to test with.) See the limitations in the aforementioned guide (e.g., multi-byte characters are not converted, unicode is not converted).
    Also, you may have to explicitly add in a conversion parameter if going to/from Nonstop... if you are, see the GG win/unix upgrade instructions for GG v11. It's just one parameter that I'm omitting here so as not to confuse the issue.
    Note also that if you're using logdump, there are specific ebcdic commands you can use to view trail data & trail header info on z/OS. Just type "help" in logdump on z/OS for all the options.
    If you're attempting to convert any of the unsupported data types -- then you'll probably have to do it in the database post-replication (e.g., Oracle DB has functions to do this), such as loading a staging table with the ebcdic data that is in turn processed and loads your ascii table. (There are probably a number of ways to accomplish this with varying degrees of complexity.)
    Cheers,
    -m

  • Conversion of XML file from ANSI to UTF-8 encoding in SAP 4.6C

    Hi All,
      Im working on SAP 4.6C version.I have generated a XML file from my custom report.It is downloading in ANSI format.But i need to download this into UTF-8 format.So can anyone please let me know how to do this?
    Is this possible in 4.6C version?
    Thanks in Advance,
    Aruna A N

    Hello
    It is possible in 4.6.
    Try this code:
    REPORT Z_TEST_XML_DOWN .
    data:
      lp_ixml type ref to if_ixml,
      lp_xdoc type ref to if_ixml_document,
      lp_sfac type ref to if_ixml_stream_factory,
      lp_ostr type ref to if_ixml_ostream,
      lp_rend type ref to if_ixml_renderer,
      lp_enco type ref to if_ixml_encoding.
    data:
      lp_root type ref to if_ixml_element,
      lp_coll type ref to if_ixml_element,
      lp_elem type ref to if_ixml_element.
    class cl_ixml definition load.
    data:
    udat like lfa1,
    s type string.
    select single * from lfa1 into udat where lifnr = '0000000001'. " <- set here real number
    *** create xml
    lp_ixml = cl_ixml=>create( ).
    lp_xdoc = lp_ixml->create_document( ).
    lp_root = lp_xdoc->create_simple_element( name = 'Node'
                                              parent = lp_xdoc ).
    s = udat-land1.
    call method lp_root->set_attribute( name = 'country_name'
                                        value = s ).
    s = udat-name1.
    call method lp_root->set_attribute( name = 'vendor_name'
                                        value = s ).
    s = udat-ort01.
    call method lp_root->set_attribute( name = 'city_name'
                                        value = s ).
    *** render xml
    types: begin of xml_tab_line,
             line(256) type x,
           end of xml_tab_line.
    types: xtab type table of xml_tab_line.
    data: t_xml type xtab,
          size type i,
          rc type i.
    lp_sfac = lp_ixml->create_stream_factory( ).
    lp_ostr = lp_sfac->create_ostream_itable( table = t_xml ).
    lp_enco = lp_ixml->create_encoding( character_set = 'utf-8'
                                   byte_order = if_ixml_encoding=>co_none ).
    call method lp_ostr->set_encoding( encoding = lp_enco ).
    lp_rend = lp_ixml->create_renderer( ostream = lp_ostr
                                        document = lp_xdoc ).
    rc = lp_rend->render( ).
    *** export to file
    size = lp_ostr->get_num_written_raw( ).
    call function 'WS_DOWNLOAD'
      exporting
        bin_filesize = size
        filename = 'c:\sapxml_test.xml'
        filetype = 'BIN'
      tables
        data_tab = t_xml
      exceptions
        others = 1.
    It is just simple example.

  • Comunicação entre Labview e ANSI's.

    Estou definindo Projeto de Graduação e estou interessado em trabalhar na integração entre Labview e ANSI's na análise de elementos finitos. Gostaria de saber se alguém possui alguma informação sobre o tema.

    Voce poderia ser mais especifico com relacao a informacao que voce esta precisando?
    Atenciosamente
    Filipe A.
    Applications Engineer
    National Instruments

  • Write to file in ansi

    I want to write an arraylist to a text file and have the file encoded in ansi. I have found the only way to have the file encoded in ansi is to write strings to the file. I can't figure out how to cast my arraylist to strings, (which is what i think I must do).
    Any help/suggestions are appreciated. Below is my code:
    import java.io.*;
    //This class writes the status to the Master.txt file upon radio button press
    class Writer1{
         public Writer1(){
              System.out.println("writer1 has been called");
              try {
         OutputStream bout = new BufferedOutputStream(fout);
         OutputStreamWriter out = new OutputStreamWriter(bout,"ASCII");
                   for(int i = 0; i < Chat6.arrList.size(); i++) {
                             //out.write(Chat6.arrList.get(i)) + "\n");//need to convert to string
                        System.out.println("writing array loop " +Chat6.arrList);
                        out.flush();
                   out.close();
              } catch (IOException e) {
    }

    FileWriter? I've written it before -- FileWriter is just a convenient subclass
    of OutputStreamWriter that folds in a FileOutputStream. Here is its
    complete source code, minus comments:
    package java.io;
    public class FileWriter extends OutputStreamWriter {
        public FileWriter(String fileName) throws IOException {
            super(new FileOutputStream(fileName));
        public FileWriter(String fileName, boolean append) throws IOException {
            super(new FileOutputStream(fileName, append));
        public FileWriter(File file) throws IOException {
            super(new FileOutputStream(file));
        public FileWriter(File file, boolean append) throws IOException {
            super(new FileOutputStream(file, append));
        public FileWriter(FileDescriptor fd) {
            super(new FileOutputStream(fd));
    }What's missing from FileWriter that exists in OutputStreamWriter is
    the ability to choose a charset! And the OP (perhaps mistakenly) seems
    hellbent on choosing ASCII.

  • How to get the last 32 bits in ANSI X9.19 MAC generation ( very urgent )

    I am trying to generate the MAC of 256bits of data according to ANSI X9.19 standard.
    I am trying to do this in the following way
    1) Encrypt the whole 256 bits using DES in CBC mode ( blocksize=64bits and hence 4 blocks)
    2) Taking the last 8 bytes (i.e., last 64bits) I am decrypting it with DES in ECB mode using another key
    3)Taking the ciphertext from above step, i am encrypting the ciphertext using DES ECB mode with key used in step1
    Is the above steps are correct according to ANSI X9.19 MAC standard.
    If so how to generate the final 32 bits from the 64 bits of the final block according to the X9.19 standard.

    Please see the paper at the following location
    http://citeseer.ist.psu.edu/cache/papers/cs2/112/http:zSzzSzwww.scs.carleton.cazSz~paulvzSzpaperszSzElecLetters.pdf/a-key-recovery-attack.pdf
    The above pdf file describes the X9.19 MAC generation and at the end of the file there is the diagram that describes the process.
    2) Taking the last 8 bytes (i.e., last 64bits) I
    am decrypting it with DES in ECB mode usinganother
    key Really? Decrypt something that wasn't encrypted?
    aking the ciphertext from above step
    What ciphertext? Do you mean plaintext? Or do you
    mean you encrypted in the previous step?
    , i am
    encrypting the ciphertext using DES ECB mode with
    key used in step1 Encrypting ciphertext? why? it's already encrypted.
    Is the above steps are correct according to ANSI
    X9.19 MAC standard.
    Almost certainly not, it reads like sheer nonsense to
    me.
    If so how to generate the final 32 bits from the 64
    bits of the final block according to the X9.19
    standard.
    You carry out the steps in the standard. I haven't
    read it. Have you?

  • What is the best way to import an ANSI as UTF-8 Text file using the import wizard

    I'm using SQL Server 2008 and am trying to import a flat txt file that is ANSI as UTF-8 and keep getting error after error on different fields.  I'm wondering if there is a series of settings that will give me the best chance of importing this
    file.  I've inserted a a sample that you can look at.
    The row delimiters are SOH and CR LF
    Column delimiters are Pipe
    This is one record
    01|KSB|266916|5/1/2008 0:00:00|9.69|03|OUT|KSB|3|13429|5/1/2008 0:00:00|9.69|5/1/2008 0:00:00|14.56|C|January 28, 200810:47 am Called MARCI from EHRLICH, JERRY S M.D. marci will callme back if she needs any boostrix. She was very busy.Copied: 01/28/08
    10.80Copied: 02/28/08 12.53Copied: 03/05/08 10.67  Completion memo:PREBOOKED FLU ALREADY WITH ANOTHER SUPPLIER. NO NEED FOR ANYTHING TODAY.Copied: 04/04/08  9.44  Completion memo:placed order 4/1/08Copied:
    05/01/08 14.56  Completion memo:call marci tomorrow|N|N|||||||||N|0
    Anytime you see 01| it's the next record
    01|KSB|266923|5/1/2008 0:00:00|9.70|03|OUT|KSB|3|6784|5/1/2008 0:00:00|9.70|5/1/2008 0:00:00|12.74|C|July 25, 200704:29 pm Called MARK from INFECTIOUS DISEASE spokt to mark nn. thought he prebooked with us. No order but I sent him FFCopied: 07/25/07
    16.50Copied: 10/25/07 15.58Copied: 11/19/07 15.57Copied: 12/04/07 16.08Copied: 01/04/08  9.48Copied: 01/30/08 15.23Copied: 02/25/08 16.53Copied: 03/11/08 10.98Copied: 04/04/08  9.45 
    Completion memo:placed order 4/1/04Completed: 05/01/08 12.74  Completion memo:placed order today for meds|N|N|||||||||N|0
    01|KSB|266935|4/4/2008 0:00:00|9.75|03|OUT|KSB|3|77377|4/4/2008 0:00:00|9.75|4/4/2008 0:00:00|9.60|C|(History Copy)FDA NEWS FLASH from Seacoast MedicalFeds Prescribe "new recipe" for Flu Shot
    Copied: 03/05/08 11.20Copied: 04/04/08  9.50  Completion memo:flu rep called todayCompleted: 04/04/08  9.60  |N|N|||||||||N|0
    01|KSB|267768|5/30/2008 0:00:00|15.01|03|OUT|KSB|3|6401|5/30/2008 0:00:00|15.01|5/30/2008 0:00:00|10.24|C|July 23, 200710:40 am Called LIZ from MAIN STREET FAMILY HEALTH spoke with Liz and she said to fax her ff menactra and adacel pricingCopied:
    09/27/07 14.88Copied: 11/06/07 11.23  Completion memo:left msg for Liz to call me if she needs anything today.Copied: 11/27/07 10.75  Completion memo:No need for anything today.Copied: 01/28/08 15.30  Completion
    memo:LEFT MSG FOR LIZ TO CALL ME IF SHE NEEDS ANYTHIN TODAY.Copied: 02/29/08 12.66Copied: 04/07/08 14.76  Completion memo:spoke to liz says she orders from mckesson but I can fax her pricing.Copied: 05/30/08 10.24 
    |N|N|||||||||N|0
    01|KSB|267880|5/7/2008 0:00:00|15.93|03|OUT|KSB|3|13649|5/7/2008 0:00:00|15.93|5/12/2008 0:00:00|12.73|C|July 11, 200704:17 pm Called INGA from ASSOCIATES IN FAMILY PHYSICIAN left msg on vm about Mnactra and AdacelCopied: 07/11/07 16.30Copied:
    08/06/07 14.89Copied: 10/25/07 14.37Copied: 11/27/07 16.37  Completion memo:left msg for denise to call me if she needs anything today.Copied: 01/04/08 11.47  Completion memo:left msg for Denise to call me if she needs
    anything today.Copied: 02/05/08 11.66  Completion memo:LEFT MSG FOR D HUNT ABOUT FLU AND OTHER MEDS.Copied: 03/10/08 11.33Copied: 04/07/08 15.68  Completion memo:lef msg on vm to see if she needs anything. faxing her 
    pricingCopied: 05/12/08 12.73  Completion memo:LEFT MSG FOR DEBBIE TO CALL ME IF SHE NEEDS ANYTHING TODAY.|N|N|||||||||N|0
    01|KSB|267942|5/7/2008 0:00:00|16.41|03|OUT|KSB|3|16945|5/7/2008 0:00:00|16.41|5/7/2008 0:00:00|14.81|C|January 8, 200811:10 am Called MARY from INTERNAL MEDICINE PHYSICIANSCopied: 01/09/08 12.44Copied: 03/31/08 10.84  Completion memo:Sent
    email that nail clippers are in.Copied: 04/07/08 16.16  Completion memo:PLACED 3 ORDERS ON 4/7/08Copied: 05/07/08 14.81  Completion memo:ORDER PLACED 5/1/08|N|N|||||||||N|0
    01|KSB|267949|4/21/2008 0:00:00|16.44|02|OUT|KSB|3|11700|4/21/2008 0:00:00|16.44|4/22/2008 0:00:00|9.79|C|March 4, 200802:35 pm Called DEBBIE/Gail from BURKERT,THOMAS S. ,MD SPOKE TO DEBBIE AND SHE SAID TO FAX HER PREBOOK FORMCopied: 03/04/08 14.60Copied:
    04/07/08 16.19Completed: 04/22/08  9.79  Completion memo:PREBOOKED FLU ON 4/8/08|N|N|||||||||N|0
    01|KSB|269137|5/9/2008 0:00:00|15.29|03|OUT|KSB|3|16489|5/9/2008 0:00:00|15.29|5/13/2008 0:00:00|10.51|C|July 17, 200709:47 am Called MICHAEL from MEDICAL ASSOCIATES DANBURY HOSCopied: 10/26/07 14.64Copied: 11/28/07 15.16  Completion memo:LEFT
    MSG FOR MICHAEL TO CALL ME IF SHE NEEDS ANYTHING.Copied: 0101|KSB|270740|4/14/2008 0:00:00|16.42|03|OUT|KSB|3|2224|4/11/2008 0:00:00|16.42|4/14/2008 0:00:00|14.07|C|April 11, 200804:10 pm Called BECKI from AHC - WOMEN'S HEALTH CARE BECKI IS OFF TODAY.
    CAAL BACK 4/14/08Copied: 04/14/08 14.07  Completion memo:ORDER PLACED 4/9/08|N|N|||||||||N|0
    anything today|N|N|||||||||N|0
    01|KSB|270816|5/14/2008 0:00:00|9.26|03|OUT|KSB|3|12320|5/14/2008 0:00:00|9.26|5/14/2008 0:00:00|10.78|C|August 7, 200710:35 am Called DR. from ALIG, HOWARD M., MD INC SPOKE WITH KATHY FOR A 3RD TIME. SAYS SHE  OPEN THE BOX AND WAS MISSING ONE VIAL OF
    DEPO-TESTOSTERONE. BOB AND DIANE CHECK IT OUT AND ALL DEPO QUANTATIES SENT OUT THAT DAY ALL MATCHED UP, AND THEY SHOULD OF GOT 3 VIALS. KATHY SAID SHE WOULDNT LIE AND COULDN'T USE THEM FOR HERSELF. TOLD HER I DO CFA AS PER DCF. SHE SAID OK.Copied:
    08/07/07 10.66Copied: 10/26/07  9.79  Completion memo:left msg for kathy to call me if she needs anythingCopied: 11/27/07 10.38 LEFT MSG TO SEE IF SHE NEEDS ANYTHING.Copied: 01/10/08  8.76 TOLD KATHY TO CALL ME IF
    SHE NEEDS ANYTHING TODAY.Copied: 03/10/08 15.69  Completion memo:SPOKE WITH RECPT AND SAID TO FAX HER UPDATED PRICING.Copied: 04/14/08  9.01  Completion memo:spoke with kathy's recpt and she said to fax over pricing.Copied:
    05/14/08 10.78  Completion memo:KATHY NOT IN. CALL BACK TOMORROW|N|N|||||||||N|0
    01|KSB|270822|5/14/2008 0:00:00|9.27|03|OUT|KSB|3|2213|5/14/2008 0:00:00|9.27|5/14/2008 0:00:00|11.49|C|March 6, 200809:52 am Called KELLY from MICHELS, DALE E MD CALL KELL TOMORROW AT 402 488-7400Copied: 03/06/08  9.88Copied: 03/10/08
    15.70Copied: 04/14/08  9.02  Completion memo:placed order 3/26/08Copied: 05/14/08 11.49  Completion memo:placed order 5/14/08|N|N|||||||||N|0
    01|KSB|270830|4/14/2008 0:00:00|9.30|03|OUT|KSB|3|6250|4/14/2008 0:00:00|9.30|4/14/2008 0:00:00|10.75|C|September 19, 200709:54 am Called TINY from WANG, SHIUSH C.  MD SPOKE TO TINY. NO NEED FOR ANYTHING TODAYCopied: 09/19/07  9.91Copied:
    11/05/07  9.65 NO NEED FOR ANYTHING TODAYCopied: 11/05/07  9.66Copied: 12/12/07 15.58Copied: 01/04/08 14.12Copied: 01/14/08 14.76  Completion memo:SPOKE TO TINY. NO NEED FOR ANYTHING TODAY.Copied:
    02/20/08 11.18  Completion memo:LEFT MSG FOR TINY TO CALL ME IF SHE NEEDS ANYTHING.Copied: 03/27/08 10.19  Completion memo:PLACED ORDER 3/12/08Copied: 04/14/08  9.05  Completion memo:placed order 3/28/08Copied:
    04/14/08 10.75  |N|N|||||||||N|0
    01|KSB|270839|5/5/2008 0:00:00|9.39|03|OUT|KSB|3|6987|4/24/2008 0:00:00|9.39|5/5/2008 0:00:00|9.59|C|October 10, 200708:55 am Called Karen from FAMILY MEDICINE OF GREENHILL SPOKE TO LYNETTE AND SHE SAID FAX HER THE PREBOOK FORM FOR FLUVIRIN.Copied:
    10/10/07  8.94Copied: 11/09/07 11.37Copied: 12/18/07 14.89Copied: 01/18/08 10.45 SPOKE TO LYNETTE. NO NEED FOR ANYTHING TODAYCopied: 02/22/08 11.17Copied: 03/28/08 10.32  Completion memo:CALL BACK 4/12/08Copied:
    04/14/08  9.14  Completion memo:spoke with rep 4/3/08Copied: 05/05/08  9.59  |N|N|||||||||N|0
    01|KSB|270841|4/23/2008 0:00:00|9.40|03|OUT|KSB|3|2224|4/23/2008 0:00:00|9.40|4/23/2008 0:00:00|11.26|C|September 14, 200702:18 pm Called BECKI from AHC - WOMEN'S HEALTH CARE Spoke to Sue. No need for anything todayCopied: 09/14/07 14.31Copied:
    11/05/07 10.59Copied: 11/05/07 11.23Copied: 12/12/07 15.82Copied: 01/11/08 16.24  Completion memo:CALL BACK 1/14/08Copied: 01/14/08 15.27  Completion memo:left msg for Sue to call me if she needs anythingCopied:
    02/20/08 14.43  Completion memo:spoke to becky. no need for anythingCopied: 03/27/08 11.89Copied: 03/31/08 01|KSB|270876|5/14/2008 0:00:00|9.87|03|OUT|KSB|3|81523|5/14/2008 0:00:00|9.87|5/14/2008 0:00:00|11.74|C|March 26, 200802:26
    pm Called Kathy from FRONTIER HEALTHCARE RECPT GAVE CATHY THE MSG YESTRDAY ABOUT THE CORRECT EMAIL ADDRESS(dcf). SHE IS WITH A PATIENT AND WILL CALL BACK.Copied: 03/26/08 14.46Copied: 04/14/08  9.62  Completion memo:placed order
    4/08/0/8Copied: 05/14/08 11.74  Completion memo:PLACED ORDER 5/6/08|N|N|||||||||N|0
    memo:PLACED ORDER 4/21/08|N|N|||||||||N|0
    01|KSB|270887|5/5/2008 0:00:00|9.89|03|OUT|KSB|3|6526|5/5/2008 0:00:00|9.89|5/6/2008 0:00:00|10.46|C|July 13, 200709:49 am Called ANU from SIRIKONDA, PURNACHANER  MD ANU ON VACY UNTIL 7/26. FAXED JUY/AUG SPECIALCopied: 07/13/07  9.82Copied:
    08/07/07 14.84  Completion memo:SPOKE TO ANU AND SHE SAID SEND HER INFO ON FLU AND OTHER VACCINESCopied: 10/29/07 11.08  Completion memo:No need for anything today.Copied: 12/04/07 10.69  Completion memo:CALL BACK
    AFTER 3PCopied: 12/12/07 14.34  Completion memo:ANU SAID NO NEED FOR ANYTHING TODAY.Copied: 01/11/08 15.78  Completion memo:NO NEED. SEND PRICING ON MED SUPPLIESCopied: 01/14/08 15.20Copied: 02/21/08 
    9.45Copied: 03/26/08 14.52 CALL BACK NEXT MONTHCopied: 04/14/08  9.64  Completion memo:placed order 4/4/08Copied: 05/06/08 10.46  |N|N|||||||||N|0
    01|KSB|270912|4/14/2008 0:00:00|10.27|03|OUT|KSB|3|2229|4/14/2008 0:00:00|10.27|4/14/2008 0:00:00|10.03|C|October 12, 200711:25 am Called BETTY from HEALTH CARE PROFESSIONALS they will call back if they need any flu vaccineCopied: 10/12/07 11.42Copied:
    11/12/07  9.37  Completion memo:Spoke to Betty. No need for anything today.Copied: 12/04/07 16.10Copied: 01/04/08 14.22Copied: 02/14/08 11.28Copied: 03/24/08 10.00  Completion memo:placed ordered 3/14/08Copied:
    04/14/08 10.02  Completion memo:betty said no need today. Fax scaleCopied: 04/14/08 10.03  Completion memo:placed order for scale|N|N|||||||||N|0
    01|KSB|270914|5/14/2008 0:00:00|10.28|03|OUT|KSB|3|2229|5/14/2008 0:00:00|10.28|5/14/2008 0:00:00|11.80|C|October 12, 200711:25 am Called BETTY from HEALTH CARE PROFESSIONALS they will call back if they need any flu vaccineCopied: 10/12/07 11.42Copied:
    11/12/07  9.37  Completion memo:Spoke to Betty. No need for anything today.Copied: 12/04/07 16.10Copied: 01/04/08 14.22Copied: 02/14/08 11.28Copied: 03/24/08 10.00  Completion memo:placed ordered 3/14/08Copied:
    04/14/08 10.02  Completion memo:betty said no need today. Fax scaleCopied: 04/14/08 10.03  Completion memo:placed order for scaleCopied: 05/14/08 11.80  Completion memo:PLACED ORDER 5/08/0/8|N|N|||||||||N|0
    01|KSB|270944|4/14/2008 0:00:00|10.59|03|OUT|KSB|3|1387|4/14/2008 0:00:00|10.59|4/14/2008 0:00:00|10.45|C|December 3, 200710:54 am Called PAT from NEBRASKA SPINE CENTER LLP SPOKE TO PAT. NO NEED FOR ANYTHING TODAY.Copied: 12/03/07 10.90Copied:
    01/04/08 13.74Copied: 01/17/08 10.68Copied: 02/13/08 10.86Copied: 03/14/08 10.69  Completion memo:SPOKE WITHE BRENDA 3/5/08Copied: 04/14/08 10.34  Completion memo:LEFT MSG FOR PAT TO CALL ME IF SHE NEEDS ANYTHING.
    FAXED SCALE INFO.Copied: 04/14/08 10.45  Completion memo:spoke to Pat no need today. Fax her scale pricing.|N|N|||||||||N|0
    01|KSB|270960|5/14/2008 0:00:00|10.71|03|OUT|KSB|3|1387|5/14/2008 0:00:00|10.71|5/14/2008 0:00:00|11.81|C|December 3, 200710:54 am Called PAT from NEBRASKA SPINE CENTER LLP SPOKE TO PAT. NO NEED FOR ANYTHING TODAY.Copied: 12/03/07 10.90Copied:
    01/04/08 13.74Copied: 01/17/08 10.68Copied: 02/13/08 10.86Copied: 03/14/08 10.69  Completion memo:SPOKE WITHE BRENDA 3/5/08Copied: 04/14/08 10.34  Completion memo:LEFT MSG FOR PAT TO CALL ME IF SHE NEEDS ANYTHING.
    FAXED SCALE INFO.Copied: 04/14/08 10.45  Completion memo:spoke to Pat no need today. Fax her scale pricing.Copied: 05/14/08 11.81  Completion memo:PLACED ORDER 5/9/08|N|N|||||||||N|0
    01|KSB|271011|5/14/2008 0:00:00|10.98|03|OUT|KSB|3|12692|5/14/2008 0:00:00|10.98|5/14/2008 0:00:00|9.74|C|September 19, 200709:43 am Called JANET from FAMILY PRACTICE G01|KSB|271065|5/14/2008 0:00:00|11.33|03|OUT|KSB|3|82059|5/14/2008 0:00:00|11.33|5/14/2008
    0:00:00|12.00|C|December 4, 200702:29 pm Called Karen from HENRIETTA JOHNSON MEDICAL CTR LEFT MSG FOR KAREN TO CALL ME IF SHE NEEDS ANYTHING.Copied: 12/04/07 14.49Copied: 01/04/08 14.20Copied: 01/11/08 15.60  Completion memo:number
    is disconnectedCopied: 03/13/08 11.68  Completion memo:placed orderCopied: 04/14/08 11.08  Completion memo:faxed over pricing on scale and April special.Copied: 05/14/08 12.00  Completion memo:FLU REP CALLED
    5/14/08|N|N|||||||||N|0
    mo:PLACED ORDER 3/12/08Copied: 04/14/08  9.05  Completion memo:placed order 3/28/08Copied: 04/14/08 10.75 placed order 4/08/08Copied: 05/08/08  9.47  Completion memo:PLACED ORDER 5/2/08|N|N|||||||||N|0
    01|KSB|271245|5/14/2008 0:00:00|14.27|03|OUT|KSB|3|82241|5/14/2008 0:00:00|14.27|5/14/2008 0:00:00|16.15|C|December 5, 200708:49 am Called TERESA from COVENANT CLINIC MEDICAL ASSOC CALL BACK 12/7Copied: 12/05/07  8.82Copied: 01/18/08 
    9.19  Completion memo:LEFT MSG FOR TERESA TO CALL ME IF SHE NEEDS ANYTHING TODA7Y.Copied: 02/04/08 15.79 CB 2/5/08Copied: 02/28/08 14.28  Completion memo:SPOKE WITH MARC AND HE IS FAXING OVER DEA LICENSESCopied:
    03/11/08  8.83  Completion memo:PLACING ORDER ONLINE.Copied: 04/14/08 14.02  Completion memo:NO NEED FOR ANYTHING RIGHT NOW.Copied: 05/14/08 16.15  Completion memo:Spoke with Marcus Sowinski, who took over Marc
    Simpsons place. Said he will go on the website and check our pricing. I will call hin in 2 weeks to see if he needs anything, or if he needs help.|N|N|||||||||N|0
    01|KSB|271293|4/18/2008 0:00:00|14.71|03|OUT|KSB|3|11658|4/18/2008 0:00:00|14.71|4/21/2008 0:00:00|9.73|C|September 14, 200710:32 am Called CECILIA from MEDHEALTH-SGP LEFT MSG FOR CECILIA TO CALL ME IF SHE NEEDS ANYTHING.Copied: 09/14/07 10.54Copied:
    11/02/07 11.28Copied: 12/03/07 15.09  Completion memo:LEFT MSG FOR CECILIA TO CALL ME IF SHE NEEDS ANYTHING.Copied: 01/04/08 10.75Copied: 01/30/08 15.29Copied: 03/03/08 13.83  Completion memo:Sent email to
    see if they need anything.Copied: 03/28/08 14.28  Completion memo:emailed formulariesCopied: 04/14/08 14.46Copied: 04/21/08  9.73  Completion memo:left msg for Cecilia to call me if she needs anything today.|N|N|||||||||N|0
    01|KSB|271352|5/14/2008 0:00:00|15.55|03|OUT|KSB|3|11520|5/14/2008 0:00:00|15.55|5/15/2008 0:00:00|10.29|C|October 18, 200709:35 am Called Amy from ATRIUM OB/GYN LEFT MSG FOR AMY TO SEE IF THEY NEED ANYMORE FLU VACCINE.Copied: 10/18/07  9.60Copied:
    11/26/07 14.17  Completion memo:LEFT MSG FOR AMY TO CALL ME IF SHE NEEDS ANYMORE FLU VACCINE.Copied: 01/09/08 14.73  Completion memo:left msg for Amy to call me if she needs anything today.Copied: 02/15/08  9.10 
    Completion memo:LEFT MSG FOR AMY TO CALL ME IF SHE NEEDS TO PREBOOK FLU VACCINE.Copied: 03/14/08 10.89  Completion memo:LEFT MSG ABOUT M/S.Copied: 04/14/08 15.30  Completion memo:spoke to amy. No need for anything today
    but fax her scale info.Copied: 05/15/08 10.29  Completion memo:left msg for any to call me if she needs anything today.|N|N|||||||||N|0
    01|KSB|271550|4/16/2008 0:00:00|10.49|03|OUT|KSB|3|15520|4/16/2008 0:00:00|10.49|4/18/2008 0:00:00|10.26|C|March 5, 200810:01 am Called Marty from AICHELE & FREY FAMILY PRACTICE LEFT MSG ON MARTI'S VM TO SEE IF SHE WANTS TO PREBOOK FLU. FAXED FF.Copied:
    03/10/08 10.48  Completion memo:cbCopied: 04/15/08 10.24  Completion memo:marty off today. call back tomorrow.Copied: 04/18/08 10.26  Completion memo:SPOKE WITH MARTY. NO NEED FOR ANYTHING TODAY.|N|N|||||||||N|0
    Thanks!

    For this I think you may be better off creating SSIS package from Business Intelligence Development Studio rather than using Export Import wizard. You need to convert the code page of columns from 1252 to 65001 for saving it to UTF 8 file. In SSIS you
    can use a derived column task for that.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Help with ansi joins

    hi all
    i have this query in which i have used ansi joins,not an expert though on ansi joins ...got to knw abt ansi joins only today
    SELECT abc.vendor_number, abc.vendor_name, api.invoice_amount,
           api.invoice_date, api.invoice_type_lookup_code, api.invoice_num,
           avp.prepay_number, api.description,   --,avp.INVOICE_CURRENCY_CODE CCY,
                                              aup.prepay_amount_applied,
           aup.prepay_amount_remaining,
           SUM (-avp.prepay_amount_remaining * NVL (api.exchange_rate, 1)
               ) prepaid_available,
           '1234' voucher_number
      FROM ap_invoices_v api INNER JOIN ap_invoice_distributions_v aid ON (    api.invoice_id =
                                                                                  aid.invoice_id
                                                                           AND api.invoice_type_lookup_code =
                                                                                  'PREPAYMENT'
                                                                           AND api.invoice_num =
                                                                                  '5'
                                                                          ), ap_invoices_v api LEFT OUTER JOIN ap_apply_prepays_v avp ON (api.invoice_id =
                                                                                                                                             avp.invoice_id
           ap_invoices_v api INNER JOIN ap_checks_v abc ON (abc.vendor_id =
                                                                     api.vendor_id
                                                           ), ap_invoice_payments abb LEFT OUTER JOIN ap_apply_prepays_v avp ON (abb.invoice_id =
                                                                                                                                    avp.invoice_id
           ap_invoice_distributions_v aid LEFT OUTER JOIN ap_unapply_prepays_v aup ON (aid.invoice_distribution_id =
                                                                                          aup.prepay_distribution_id
           ap_unapply_prepays_v aup LEFT OUTER JOIN ap_apply_prepays_v avp ON (aup.prepay_distribution_id =
                                                                                  avp.invoice_distribution_id
                                                                              ), ap_invoices_v api INNER JOIN ap_invoice_payments abb ON (abb.invoice_id =
                                                                                                                                         api.invoice_id
                                                                                                                                     )i am getting column ambigously
    defined in the select clause,is there another way to refer to the columns?
    kindly guide
    thanking in advance
    Edited by: makdutakdu on Dec 20, 2011 11:28 AM

    what is it?
    ap_invoices_v api INNER JOIN ap_invoice_distributions_v aid ON (    api.invoice_id =
                                                                                  aid.invoice_id
                                                                           AND api.invoice_type_lookup_code =
                                                                                  'PREPAYMENT'
                                                                           AND api.invoice_num =
                                                                                  '5'
                                                                          ), ap_invoices_v api LEFT OUTER JOIN ap_apply_prepays_v avp ON (api.invoice_id =
                                                                                                                                             avp.invoice_id
    ..use
    ap_invoices_v api INNER JOIN ap_invoice_distributions_v aid ON (    api.invoice_id =
                                                                                  aid.invoice_id
                                                                           AND api.invoice_type_lookup_code =
                                                                                  'PREPAYMENT'
                                                                           AND api.invoice_num =
                                                                                  '5'
                                                                          ) LEFT OUTER JOIN ap_apply_prepays_v avp ON (api.invoice_id =
                                                                                                                                             avp.invoice_id
    ...

  • Non-ANSI Outer Join Operator Issue (reposted due to text issues)

    I am currently using Designer 11.5.0.0. Itu2019s XI Rel 2, but Iu2019m not sure what service pack. I have created several universes with outer joins against a SQL Server 2005 database, but when I try using them in a Crystal report, I get the following error:
    Failed to retrieve date from the database. Details: 42000:[Microsoft][ODBC SQL Server Driver][SQL Server] The query uses non-ANSI outer join operators (u201C=u201D or u201C=u201D). To run this query without modification, please set the compatibility level for current database to 80 or lower, using stored procedure sp_dbcmptlevel. It is strongly recommended to rewrite the query using ANSI outer join operators (LEFT OUTER JOIN, RIGHT OUTER JOIN). In the future versions of SQL Server, non-ANSI join operators will not be supported even in backward-compatibility modes.
    Here is my ODBC DSN configuration:
    Microsoft SQL Server ODBC Driver Version 03.85.1132
    Data Source Name: FlexOPS
    Data Source Description:
    Server: dalsvrw031
    Database: (Default)
    Language: (Default)
    Translate Character
    Data: Yes
    Log Long Running Queries: No
    Log Driver Statistics: No
    Use Integrated Security: No
    Use Regional Settings: No
    Prepared Statements Option: Drop temporary procedures on disconnect
    Use Failover Server: No
    Use ANSI Quoted Identifiers: Yes
    Use ANSI Null, Paddings and Warnings: Yes
    Data Encryption: No
    Okay, so I understand what the issue is. It appears that the version of Designer that I am using does not default the ANSI92 parameter to u201CYesu201D. So all the outer joins I have created in each of my universe are using the old *= as the join operator. And apparently, the ODBC driver I am using is not very happy with that.
    As I understand it from what Iu2019ve read on other sites, I have the following options:
    1) Set the ANSI92 parameter to Yes, drop all my joins, close and re-open Designer, and recreate all of the joins.
    2) Find a different driver or connectivity method that will support non-ANSI joins.
    3) Set my database back to SQL 2000 compatibility.
    Option 1 is unappealing as it will cause a lot of time redoing all the work that Iu2019ve spent the past month doing. Option 2 is only a band-aid fix at best. Option 3 really isnu2019t an option for us.

    So I am wondering what other options I have to change these non-ANSI joins to ANSI compatible joins. Do I need to update Designer with a service pack? Is there a script out there that will automatically do this in each of the universes? I would appreciate any suggestions or guidance on this.
    Thanks,
    Lee

  • Non-ANSI Outer Join Operator Issue

    I am currently using Designer 11.5.0.0.  Itu2019s XI Rel 2, but Iu2019m not sure what service pack.  I have created several universes with outer joins against a SQL Server 2005 database, but when I try using them in a Crystal report, I get the following error:
    Failed to retrieve date from the database.
    Details:  42000:[Microsoft][ODBC SQL Server Driver][SQL Server] The query uses non-ANSI outer join operators (u201C=u201D or u201C=u201D).  To run this query without modification, please set the compatibility level for current database to 80 or lower, using stored procedure sp_dbcmptlevel.  It is strongly recommended to rewrite the query using ANSI outer join operators (LEFT OUTER JOIN, RIGHT OUTER JOIN).  In the future versions of SQL Server, non-ANSI join operators will not be supported even in backward-compatibility modes.
    Here is my ODBC DSN configuration:
    Microsoft SQL Server ODBC Driver Version 03.85.1132
    Data Source Name: FlexOPS
    Data Source Description:
    Server: dalsvrw031
    Database: (Default)
    Language: (Default)
    Translate Character Data: Yes
    Log Long Running Queries: No
    Log Driver Statistics: No
    Use Integrated Security: No
    Use Regional Settings: No
    Prepared Statements Option: Drop temporary procedures on disconnect
    Use Failover Server: No
    Use ANSI Quoted Identifiers: Yes
    Use ANSI Null, Paddings and Warnings: Yes
    Data Encryption: No
    Okay, so I understand what the issue is.  It appears that the version of Designer that I am using does not default the ANSI92 parameter to u201CYesu201D.  So all the outer joins I have created in each of my universe are using the old *= as the join operator.  And apparently, the ODBC driver I am using is not very happy with that.
    As I understand it from what Iu2019ve read on other sites, I have the following options:
    1)   Set the ANSI92 parameter to Yes, drop all my joins, close and re-open Designer, and recreate all of the joins.
    2)   Find a different driver or connectivity method that will support non-ANSI joins.
    3)   Set my database back to SQL 2000 compatibility.
    Option 1 is unappealing as it will cause a lot of time redoing all the work that Iu2019ve spent the past month doing.  Option 2 is only a band-aid fix at best.  Option 3 really isnu2019t an option for us.
    So I am wondering what other options I have to change these non-ANSI joins to ANSI compatible joins.  Do I need to update Designer with a service pack?  Is there a script out there that will automatically do this in each of the universes?
    I would appreciate any suggestions or guidance on this.
    Thanks,
    Lee
    Edited by: Lee Vance on Jul 6, 2009 10:02 PM

    Hi,
    try the following:
    open your universe in the Universe designer, go to File->Parameter, select the Parameter tab and change the value of the ANSI92 parameter from No to Yes.
    Regards,
    Stratos

  • I want to get the file in ANSI format.. Any idea?

    Hi all,
    I am doing a file to file bypass scenario .My client has demanded that the output file should be in ANSI format.
    I checked the <b>file.encoding</b> option in sap-help but ANSI is not available can u suggest that what encoding type i must use.
    I used ISO-8859-1 as well.But client rejected this file saying that ANSI characters not present in ISO-8859-1
    Any one pls throw some light on this how to acheive.
    Regards
    Seema.

    Hi Stefan,
    Thanks for those links.. I have few doubts .. please suggest me.
    Based on those links and as per my thinking, now i have to follow below steps in File Module .
    Processing sequence:
    <b>Module Name :</b> AF_Modules/StrictXml2PlainBean
    <b>Type :</b> Local Enterprise Bean
    <b>ModuleKey :</b> 0
    <b>Module Name :</b> AF_Modules/StrictXml2PlainBean
    <b>Type :</b> Local Enterprise Bean
    <b>ModuleKey :</b> 1
    Module Configuration :
    <b>ModuleKey :</b> 0
    <b>Parameter Name :</b> singleRecordType (Since it is Bypass scenario,i want the entire file to have endseparator as /r/n.)
    <b>Parameter value: </b> What i need to mention i this field??
    <b>ModuleKey :</b> 1
    <b>Parameter Name :</b> Convert
    <b>Parameter value:</b>  No value ??
    In the links, i found these 3 parameters stating as
    Enter the parameter convert. It can have the following values:
    &#9679;     none - no conversion
    &#9679;     CRLFtoLF - conversion from Microsoft Windows CRLF to Unix LF
    &#9679;     No value or another value - conversion from Unix LF to Microsoft Windows CRLF
    So now i want the file to be in (CRLF).SO i need to mention "No value" here??
    Please suggest me stefan if iam thinking in correct way.
    Regards
    Seema.

  • Access Counter with ANSI C

    Hi Folks,
    I am trying to access counter  using ANSI C (python wrapper actually). Now I am able to read number of counts with sets of commands:
    DAQmxCreateTask("", &task);
    DAQmxCreateCICountEdges(task, "Dev1/ctr0", "", DAQmx_Val_Rising, 0, DAQmx_Val_CountUp);
    DAQmxSetCICountEdgesTerm(task, "Dev/ctr0", "Dev1/PFI11");
    DAQmxStartTask(task);
    DAQmxReadCounterScalarU32(task, 10, &data, NULL) 
    This example cumulates all counts since task was started, so I can get all counts from begining of task or from previous call (using internal software buffer).
    But what I want to do is count non-periodical series of 'events'  represented with TTL/NIM pulses. So I want to set up measurement (integration) time for one single shot (let say 1000 ms) and then in loop read number of counts (=events) in this window (i.e. frequency in Hz). I probably need to trigger the 'counting function' in some way, probably something like DAQmxCfgSampClkTiming...
    Can you please show me short, simple piece of code, how to do this?
    Thanks a lot.
    Radek 

    Hi Stefo,
    Thanks for trying to help me.
    I tried to use DAQmxCreateCIPeriodChan and it works fine, but it just not what I was looking for. In our application, we have to read counts from multiple counters (usually 3) in the same time window and the signal is NOT periodic (if it matters). Also it blocks one more counter for each one in the task, so if I need 3 Inputs, the 6601 cards with just 4 counters is not enough. Maybe if it is be possible to share that "gate" counter, I will need just 4 and also it will be maybe possible to count corresponding events in the same time window.
    But I found a solution. This "code" (seems to) do exactly what I need:
    (this is just important part of Python code, but I guess it is very easy to read, so...)
    def cOut0(self, chan, up = 1, down = 0.1, samps = 1e3, num = -1):
        err1 = self.device.DAQmxCreateCOPulseChanTime(self.task, char(chan), char(""), int32(DAQmx_Val_Seconds), int32(DAQmx_Val_Low), float64(0), float64(down), float64(up))
        if num > 0:
            err2 = self.device.DAQmxCfgImplicitTiming(self.task, int32(DAQmx_Val_FiniteSamps), uInt64(num))
        else:
            err2 = self.device.DAQmxCfgImplicitTiming(self.task, int32(DAQmx_Val_ContSamps), uInt64(samps))
    def cOut1(self, chan, freq = 1e3, duty = 0.1, samps = 1e3, num = -1):
        err1 = self.device.DAQmxCreateCOPulseChanFreq(self.task, char(chan), char(""), int32(DAQmx_Val_Hz), int32(DAQmx_Val_Low), float64(0), float64(freq), float64(duty))
        if num > 0:
            err2 = self.device.DAQmxCfgImplicitTiming(self.task, int32(DAQmx_Val_FiniteSamps), uInt64(num))
        else:
            err2 = self.device.DAQmxCfgImplicitTiming(self.task, int32(DAQmx_Val_ContSamps), uInt64(samps))
    def cIn5(self, chan, trig, rate = 1e9, samps = 1e3):
        err1 = self.device.DAQmxCreateCICountEdgesChan(self.task, char(chan), char(""), int32(DAQmx_Val_Rising), uInt32(0), int32(DAQmx_Val_CountUp))
        err2 = self.device.DAQmxSetPauseTrigType(self.task, int32(DAQmx_Val_DigLvl))
        err3 = self.device.DAQmxSetDigLvlPauseTrigSrc(self.task, char(trig))
        err4 = self.device.DAQmxSetDigLvlPauseTrigWhen(self.task, int32(DAQmx_Val_Low))
    def wait(self, tOut = -1):
        tOut = float(tOut)
        err = self.device.DAQmxWaitUntilTaskDone(self.task, float64(tOut))
    def gCts(self, tout = 1.0, buff = False):
        tout = float(tout)
        ret = numpy.zeros(1, dtype=numpy.uint32)
        err = self.device.DAQmxReadCounterScalarU32(self.task, float64(tout), ret.ctypes.data, bool32(0))
        return ret[0]
    And here is terminal output (important part):
    >>> devOS.createTask(taskName = "OS")
    >>> devOS.cOut1(chan = "/Dev1/ctr0", freq = 1e5)
    >>> devOS.startTask()
    >>>
    >>> devOG = pydaq.nidaq()
    >>> devOG.createTask(taskName = "OG")
    >>> devOG.cOut0(chan = "/Dev1/ctr1", up = 1, down = 0.1, num = 1)
    >>>
    >>> devIA = pydaq.nidaq()
    >>> devIA.createTask(taskName = "IA")
    >>> devIA.cIn5(chan = "/Dev1/ctr2", trig = "/Dev1/PFI32")
    >>>
    >>> devIB = pydaq.nidaq()
    >>> devIB.createTask(taskName = "IB")
    >>> devIB.cIn5(chan = "/Dev1/ctr3", trig = "/Dev1/PFI32")
    >>>
    >>> devIC = pydaq.nidaq()
    >>> devIC.createTask(taskName = "IC")
    >>> devIC.cIn5(chan = "/Dev1/ctr4", trig = "/Dev1/PFI32")
    >>>
    >>> import time
    >>> def fce(n):
        T1 = time.time()
        r = []
        for i in xrange(n):
            t1 = time.time()
            devIA.startTask(); devIB.startTask(); devIC.startTask();
            devOG.startTask()
            devOG.wait()
            devOG.stopTask()
            c = [devIA.gCts(), devIB.gCts(), devIC.gCts()]
            devIA.stopTask(); devIB.stopTask(); devIC.stopTask();
            t = time.time() - t1
            r.append(c)
            print "%d: %d %d %d (%d s)" % (i + 1, c[0], c[1], c[2], t)
        T = (time.time() - T1) / float(n)
        print "Total Average Time: %d s" % (T)
        return r
    >>> a = fce(10)
    1: 100000 100000 100000 (1 s)
    2: 100000 100000 100000 (1 s)
    3: 100000 100000 100000 (1 s)
    4: 100000 100000 100000 (1 s)
    5: 100000 100000 100000 (1 s)
    6: 100000 100000 100000 (1 s)
    7: 100000 100000 100000 (1 s)
    8: 100000 100000 100000 (1 s)
    9: 100000 100000 100000 (1 s)
    10: 100000 100000 100000 (1 s)
    Total Average Time: 1 s
    So conclusion:
    1) I know I can put all Input Tasks together to only one task, but when I try to read the counts with DAQmxReadCounterU32 function, I get error -200523. So what Read function is for task with multiple counters?
    2) All those Trigger functions I used I found somewhere on the internet. Where is documentation? I can not find it in NI-DAQmx C Reference Help. Also in the header file, there are a lot of functions prototypes of which are not mentioned in the documentation.
    3) When I change the lowTime parameter in function DAQmxCreateCOPulseChanTime, the time of measurement does not change, so it seems that this part of pulse is not part of 'task' and/or the DAQmxWaitUntilTaskDone function waits just when the trigger pulse is high. This decreases our death time, because it seems not be possible to set duty cycle to 100 %, but still it is little confusing for me.
    Diky moc
    Radek
    P.S.: Ten "editor" na vlkadani dotazu je udesnej... :-)

  • Possible to redefine function keys via Ansi ESC sequences in terminal?

    If it is possible, I would be be very grateful if somebody could be so kind as to show me a couple of examples.
    BACKGROUND:
    I want to reconfigure my function keys in terminal,via ansi-escape-sequencenses from
    a script, before invoking the "screen" utility, to make it less cumbersome to use.
    It's really nifty, if you want to see som manpages, without ending up with a zillion of terminalwinwindows, and you can name the windows too, so you can easily see the difference between
    terminfo and bash for instance, - but the keypresses for invoking screen is quite cumbersome.
    I will try do it by ansi-sequences, but I haven't managed to do that yet.
    I want to store other keypresses, like [^A"] on functionkey F2 for instance.
    I have no intention to restore the keys, as i just close the window when I'm finished using screen.
    I have configured my function keys in terminal, and I think that writing new values for them in the defaults database, and be able to use the new configuration from within terminal is a little to much to expect.
    If anybody has a solution not including ansi sequences, I'm open for that as well.
    Sincerely
    mc Geek

    Thank you. That wasn't what I had in mind, but thats what I'll go for, as I can't seem to figure out how to send and ansi escape sequence that does it, and creating a new terminfo file with the new settings, exporting it, and and creating a new subshell is just too much work. "Screen" runs fine now, with some function-key bindings.
    sincerely

  • Using "Save As" execCommand in IE8 to save XML file in ANSI format instead of UCS2-Little Endian

    I am currently trying to save an XML data using "SaveAs" execCommand  from Javascript in Internet Explorer 8 only.I am using document.write(xml) to write the xml content after i open a window.The document object in IE8 uses a saveAs Exec
    Command to allow the user to save the xml file in the local folder.The XML file is generated but it doesnt set the encoding to my preferred type  for a different interface where i need to send this XML which is ANSI/UTF-8   encoding.I can only save
    the XML in UCS2 little Endian encoding format.Below is the code i am using.
         var location = "D:\\export_to_MCT"+dateTime+".xml";
            var xml = tmpSelectedConfigurationXML.transformNode(xslDoc);// XML Is generated here
           alert(xml);
             **var testlink = window.open  ("about:blank","_blank","toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,left=10000, top=10000, width=10, height=10, visible=none");
             testlink.document.write(xml); //fileData has contents for the file
        testlink.document.close();
        testlink.document.execCommand('SaveAs', false, location);**
        testlink.close();
    My purpose is to save the xml  in ANSI/UTF-8 encoding without BOM format.I cant use Scripting.FileSystemObject method of ActiveX object.Please suggest

    @panda Boy--
    But my intention isnt that .I need to download the xml in ANSI format

  • Regarding Converting file from UTF-8 encoding to ANSI

    Hi Experts!
    I have a problem that my given file is in encoding UTF-8 and i have to convert it into ANSI first so that i can use my bdc session to upload the file.
    Kindly if you can help me out with that.If there is any fm available to do that.
    thanks in advance
    jawad

    hi Jawad,
    place the matter u want to convert in the c program given in the following link it will solve your problem
    http://www.codeguru.com/forum/archive/index.php/t-288665.html
    Reward if useful

Maybe you are looking for

  • QuickTime Wont Open. Need Help!!

    I upgraded to the new itunes 6.0 and quicktime. and now both wont open. Quicktime opens for 2 seconds and then closes. And thats making my itunes not work since quicktime cant open. lmk if anyone knows what to do. Thanks

  • How to STOP OS X from automatically changing between language input methods

    I want to know if there is a way in OS X Leopard to stop the system from automatically changing the language input method. I use English and Japanese on my computer, but this would apply to anyone using more than one input method. For example, when I

  • Meta-Data are missing for table

    Dear ALL , I am trying to call "HR_READ_INFOTYPE" from a Java program using rfc and I got this error: " Meta data equal to null is not allowed for field INFTY_TAB with type TABLE in meta data instance TABLES " the required table INFTY_TAB is used as

  • Clicking on a link repeatedly gets multiple copies of Firefox running. How do I prevent this?

    My laptop has a nasty habit of loading one copy of Firefox every time I click on a link in an email message. Once this starts it quickly degrades system performance (not surprising). It is caused by my impatience. the longer it takes, the worse thing

  • SMB users cant be disconnected manually via Server 3.01

    Has anyone had this problem? We have just been trying out SMB instead of AFP for some new users on our Mavericks servers. All the users create and log in ok but the connection remains in the File Sharing window of Server.In fact if a user changes com