Left justified for extraction file

Hi iam developing an extraction program on cost center master data, my requirement is  the logical file should be (~)  delimetered and all fileds are left justified.
there are 10 fileds all are 'C' data type.
i know how to delimeterd but can u tell me  what is left justified and how can i make all the fileds are (including datatype N and C ) left justfied?
please explain indeatils
Regards
neeru

Hi,
If you are using RTF layout template, left justify the cell there and put two spaces after the number to make Excel think its a character string?
Regards,
Gareth
Blog: http://garethroberts.blogspot.com/

Similar Messages

  • Sql for extract file path without file_name form the folumn value

    Dear Experts,
    can someone give the sql script to extract file path without file_name form the folumn value.
    can someome provide sql to extract only path in the column value.
    column value :
    /data/rrsapus/oradata22/rrsa_25122011rpsp_arpch.rsp
    i need output like this */data/rrsapus/oradata22/*

    Hi,
    Welcome to the forum!
    INSTR and SUBSTR is probably the most efficient way. Use INSTR to find where the last '/' is, and SUBSTR to get that many characters, starting from the beginning of the string.
    INSTR and SUBSTR (and REGEXP_SUBSTR, and REGEXP_REPLACE, and RTRIM, and REPLACE, and all the other bullt-in functions) are documented in the SQL language manual:
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/index.htm
    REGEXP_SUBSTR or REGEXP_REPLACE would also do the job, perhaps with a little less code, but maybe not as efficiently.
    Here's a more creative way:
    SELECT     RTRIM ( str
               , REPLACE (str, '/')
               )          AS file_path
    FROM     table_x
    ;What results do you want if str does not contain a '/'?

  • SQL Server 2014 Express extract file parameter?

    I am working to bundle SQL Server 2014 Express with an application.  I am using the following command line to install via an InstallShield prerequisite:  /qs /INSTANCENAME=MYINSTANCE /ACTION="Install" /FEATURES=SQLEngine,Conn,SSMS
    /SECURITYMODE=SQL /SAPWD="Password" /TCPENABLED=1 /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /IACCEPTSQLSERVERLICENSETERMS
    The installer I am using is SQLEXPRWT_x86_ENU.exe.
    When the installer starts up their is a dialog named:  Choose Directory for Extract Files.  In earlier versions of SQL Server Express this dialog did not require the user to press Ok to continue.  Since it takes several minutes to install
    SQL Server Express I prefer to show the installation to the user, so they can see that something is taking place.  The /q (Quiet) parameter will suppress this dialog, but nothing is seen for several minutes.  Note:  the Installer documentation
    does state that:  The /QS switch only shows progress, does not accept any input, and displays no error messages if encountered. The /QS parameter is only supported when /Action=install is specified.  Consequently, I believe the /QS parameter
    should not be requiring input.
    All that for these questions:
    1) Is there away to suppress this dialog while still using the /qs (Quiet Simple) parameter.
    2) Is there a parameter to tell the installer to extract the files to a specified location?
    Thanks,
    Les

    Hi,
    After you download the installation package of SQL Server Express 2014, and extracts it to the specified location, the dialog of “Choose Directory for Extract Files” will appear when you install the SQL Server Express. Usually, we need to use the following
    steps to extract the setup files to a temporary location.
    1.In the Command Prompt window type %USERPROFILE%\Downloads\ SQLEXPRWT_x86_ENU.exe /x
    2.When prompted to Choose Directory For Extracted Files type C:\SQLEXPR and click OK to extract the files.
    Or suppress the dialog to extract the right location in SQL Server Express 2008 or other lower version. Such as
    c:\temp>SQLEXPRWT_x64_ENU.exe /extract: "c:\temp".
    However, in SQL Server Express 2014, I do a test, we could not suppress the dialog or use the parameters directly to extract in command line. For more information about
    installing SQL Server 2014 from the Command Prompt, you can review the following article.
    http://msdn.microsoft.com/en-us/library/ms144259.aspx
    If necessary, personally, I recommend you can provide Microsoft a feature request at
    https://connect.microsoft.com/SQLServer so that we can try to modify and expand the product features based on your needs.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Hi. I'm using illustrator cs6 on pc. I've made a scientific figure for a paper and now I'm trying to export as a png or save for microsoft office. Despite my figure being in the middle of my artboard, it always comes out bottom left in the png file or jpg

    Hi. I'm using illustrator cs6 on pc. I've made a scientific figure for a paper and now I'm trying to export as a png or save for microsoft office. Despite my figure being in the middle of my artboard, it always comes out bottom left in the png file or jpg. Must be making a school boy error! Please help!

    In similar cases, my solution is to "select all" then "deselect" only the artwork I want to keep and "delete". If I'm curious I may "cut" then "paste" to see what shows up in the center of the screen. it is usually some stray point. or other element out direct sight.

  • Last week I found records of purchases for 3 files using itunes, and left money for my credit card, do not make such purchases, what the **** is going on? itunes is not safe?

    ast week I found records of purchases for 3 files using itunes, and left money for my credit card, do not make such purchases, what the **** is going on? itunes is not safe?

    Contact iTunes support at the link below.
    https://ssl.apple.com/emea/support/itunes/contact.html

  • Problem with Audigy self extracting file for Vi

    I have downloaded the latest Vista driver for the Audigy 2, which is a self
    extracting file. When I run it, I always get the same error message:
    file error[@s]crc,0xc50a2d5:0x0d8c70c
    and then the process aborts. When I download and run the file on my XP
    machine, it runs just fine and brings up the installation program. Any ideas
    on how I can get this thing to run under Vista. I went this route because I
    was never able to get the onboard Realtek '97 audio to work. Under that
    scenario, Control panel says the device is working properly and there are no
    conflicts, but the speaker icon in the system tray has a red x over it, and I
    get no sound. I would gladly accept a solution to either problem so I can get
    the audio working.
    Chuck

    Ok, I've edited the VI you posted to reproduce my error (this time with 8.0). 
    I added a "master stop" and "start log" button.  To demonstrate my problem:
    1.  Run the VI
    2.  Click "START LOGGING" - c:\test.txt is created
    3.  Click "STOP" - c:\test.txt is closed
    4.  Delete the file c:\test.txt with Windows shell or explorer
    5.  Click "START LGGING" - a new c:\test.txt file should be created but instead an error is raised in the Write LabVIEW Measurement File function.
    Any ideas?
    Thanks,
    Dave
    Attachments:
    Write LV Meas File 2.vi ‏96 KB

  • Omit the Open Hub control file 'S_*' for flat file extracts

    Hi Folks,
    a quick question is it somehow possible to omit the control file generation for flat file extracts.
    We got some unix scripts running that get confused by the S_* files and we where wondering if we can switch the creation of those files off.
    Thanks and best regards,
    Axel

    Hi,
    However, the S_ (structure) file does not reflect the proper structure. The S_ file lists all fields sorted in alphabetical order based on the field name, instead of listing all fields in the correct order that they appear in the output file.
    As I know and checked this is not the case. The S_ file has the fields in the order of infospoke object sequence ( and in transformation tab, source structure).
    I would suggest you to control it again.
    Derya

  • How to look for spaces in an extract file in order to trigger a MOVE_IT rule

    In studio I am defining a variable field on a section and I want to pull information from my extract file using a simple MOVE_IT rule. 
    I am trying to pull information from a record that has spaces in columns 10-14.  How do I enter the information required in the DATA field to request this? 
    For example, if I was pulling the information from a record that had "XXXXX" in column 10-14 I know the DATA field would be 10,XXXXX
    I cant seem to figure out how to look for spaces at a particular offset.
    Thanks.

    Using XPath to locate the elements you are after is very easy.
    Try something like this:
    import java.io.File;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.xpath.XPath;
    import javax.xml.xpath.XPathConstants;
    import javax.xml.xpath.XPathFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    public class BasicXMLReplaceWithDOM4J {
         static String inputFile = "C:/student.xml";
         static String outputFile = "C:/studentRenamed.xml";
         public static void main(String[] args) throws Exception {
              // Read xml and build a DOM document
              Document doc = DocumentBuilderFactory.newInstance()
                        .newDocumentBuilder().parse(new InputSource(inputFile));
              // Use XPath to find all nodes where student is named 'Suresh'
              XPath xpath = XPathFactory.newInstance().newXPath();
              NodeList nodes = (NodeList)xpath
                   .evaluate("//stud_name[text()='Suresh']", doc, XPathConstants.NODESET);
              // Rename these nodes
              for (int idx = 0; idx < nodes.getLength(); idx++) {
                   nodes.item(idx).setTextContent("Suresh-Renamed");
              // Write the DOM document to the file
              Transformer xformer = TransformerFactory.newInstance().newTransformer();
              xformer.transform(new DOMSource(doc), new StreamResult(new File(outputFile)));
    }- Roy

  • Mac OS X keep getting error message when extracting files for trail version of CS5 master suite.

    Mac OS X keep getting error message when extracting files foUsingr trail version of CS5 master suite. I deleted all Adobe files and tried again several time and keep getting the same results.

    What error message are you receiving?  What version of Mac OS do you have installed?

  • Preview unavailable for this file while trying to extract from canon 5d mark3?

    I have lightroom 3.  Suddenly, I am unable to import photos off the SD card.  I am getting the message, "Preview unavailable for this file"  What happened and what can I do to fix?
    Thanks.

    Why did it stop working all of the sudden.  I have had the 5dmk3 for almost a year and I have not had this problem with my current lightroom.  Are the DNG files lossy files? Can you work with them with out losing info?

  • ODBC Problem for MSAccess file as Source data extraction

    <p><span class="postbody">Hi,</span></p><p><span class="postbody"><br />Please dont ignore this posting. Please try to help in providing relevent solution to my problem. <br />I believe, my previous posting didnot convey you. Let me explain my problem to you. <br />I have MSAccess database file(.mdb) to process. I am able to process for 1(One) file. I am testing for multiple files submission. As the ODBC points on the file1 and when i need to submit file2, its not allowing me to do a sql query. says, &#39;Database access Error&#39;. <br />I am trying to work on usual way, that is, moving file from Incoming to Processing folder where the processing folder holds the ODBC pointer on the file, here the file cannot be deleted as the job going to fail. For this reason, i am replacing the file which is under Processing folder and trying to access the file same time, but it fails with the &#39;Database access Error&#39;. <br /><br />I have tired using DI exec() for replacing file and also tired using the batch script. <br />Here i find the DI is one step behind using the batch script. When i use Batch script it replaces the file in Processing folder and fails with above error but when i use the DI exec() and pass the parameters to Replace file from incoming folder to Processing folder, the job does&#39;t support Replace command,instead it starts processing the existing file(ODBC pointer file). <br />I think DI has peculiar problem in this situation. Please advice and show the way how i can fix this. <br /></span></p>

    How can the ODBC driver still hold a handle on the previous file if the dataflow stopped and hence its process stopped. Can you try with a different application, e.g. excel to do the same manually just to figure it is not a problem of the ODBC driver itself?

  • Preview app: Add text annotation with left justify?

    I'm using the Preview app to insert text into some PDF files. I can use the Annotate feature to create a text box in the area I need it and adjust the font, color, size, etc. The only thing I can't seem to do is set the justification to Left Justify. It will show text as center justify - anyone know how to change this?

    I can find out what the defaults are with:
    defaults read com.apple.preview
    There are many properties but a TextAligment property is not one of them.
    I tried below but they do not work.
    defaults write com.apple.preview NSTextAlignment 0
    defaults write com.apple.preview PVAnnotationTextAlignment 0
    NB: 0 means left alignment
    Any idea?
    Maybe Apple has to create an text alignment feature for the GUI or provide the property that we can set it from Terminal.

  • How do I left justify the text in the tabs of a JTabbedPane.

    In 1.3.1 this used to work by supplying an HTML string with <div align="left"> but when I run with 1.4.1 this is now broken and I get center justification.
    Does anybody know a way to get the text in the tabs to be left justified.
    Thanks,
    Philip

    First, I found while using JTabbedPane that the "standard" behavior is to allow to a tab the exact space needed to display the tab text. Hence with this behavior, there is actualy no difference of "left" or "center" aligned text. So I assumed that you found a way or another to make your tabs wider than the "string width"...
    Here is a solution:
    You can override the TabbedPaneUI class and ajust the "layoutLabel()" method. Here is the code..
    //Your code using the tabbedPane
    JTabbedPane tp = new JTabbedPane();
    tp.setUI(new LeftTabbedPaneUI());
    //File containing the overrided TabbedPaneUI
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.text.View;
    class LeftTabbedPaneUI extends javax.swing.plaf.metal.MetalTabbedPaneUI {
            //I also overrided this function just to force tabs wider than
            //the displayed "String Width". I asume that you found another
            //way to do this so you can delete this function in your
            //implementation
         protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics){
              return 150;
        protected void layoutLabel(int tabPlacement,
                                   FontMetrics metrics, int tabIndex,
                                   String title, Icon icon,
                                   Rectangle tabRect, Rectangle iconRect,
                                   Rectangle textRect, boolean isSelected ) {
            textRect.x = textRect.y = iconRect.x = iconRect.y = 0;
         View v = getTextViewForTab(tabIndex);
         if (v != null) {
             tabPane.putClientProperty("html", v);
         //This Line is added to avoid writing on tab border while aligned to left.
         //You can comment this line to test and or adjust the "5" pixel space
         Rectangle rec = new Rectangle(tabRect.x+5,tabRect.y,tabRect.width,tabRect.height);
            SwingUtilities.layoutCompoundLabel((JComponent) tabPane,
                                               metrics, title, icon,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.LEFT,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.TRAILING,
                                               rec,
                                               iconRect,
                                               textRect,
                                               textIconGap);
         tabPane.putClientProperty("html", null);
         int xNudge = getTabLabelShiftX(tabPlacement, tabIndex, isSelected);
         int yNudge = getTabLabelShiftY(tabPlacement, tabIndex, isSelected);
         iconRect.x += xNudge;
         iconRect.y += yNudge;
         textRect.x += xNudge;
         textRect.y += yNudge;
    }Here I overrided the "Metal" implementation of the tab but you must override the implementation of the used Look And Feel,
    ex. "com.sun.java.swing.plaf.window.WindowsTabbedPaneUI" for the windows LAF.

  • What are the settings for datasource and infopackage for flat file loading

    hI
    Im trying to load the data from flat file to DSO . can anyone tel me what are the settings for datasource and infopackage for flat file loading .
    pls let me know
    regards
    kumar

    Loading of transaction data in BI 7.0:step by step guide on how to load data from a flatfile into the BI 7 system
    Uploading of Transaction data
    Log on to your SAP
    Transaction code RSA1—LEAD YOU TO MODELLING
    1. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    2. Creation of Data Source
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( Transaction data )
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to create ODS( Data store object ) or Cube.
    • Specify name fro the ODS or cube and click create
    • From the template window select the required characteristics and key figures and drag and drop it into the DATA FIELD and KEY FIELDS
    • Click Activate.
    • Right click on ODS or Cube and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.
    4. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. There are two tables in ODS new table and active table to load data from new table to active table you have to activate after selecting the loaded data . Alternatively monitor icon can be used.
    Loading of master data in BI 7.0:
    For Uploading of master data in BI 7.0
    Log on to your SAP
    Transaction code RSA1—LEAD YOU TO MODELLING
    1. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    2. Creation of Data Source
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( master data attributes, text, hierarchies)
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to select Insert Characteristics as info provider
    • Select required info object ( Ex : Employee ID)
    • Under that info object select attributes
    • Right click on attributes and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.

  • CS4 Help with spry menu bar. Want Top Centered and Subs left-justified.

    Hi there, using DW8 mostly, but have the trial version of CS4
    for the spry menu bar. WinXP.
    Can someone help me with the spry menu bar on this page? I'd
    like the main menu to be centered, as it looks better for
    appearance, and the sub menus to be left-justified.
    http://www.manmeetswoman.com/example4.html
    But I can't seem to do that, if I make the main menu
    centered, it seems to override the submenus even if I make a class
    just for the submenu to be left-justified.
    Am I doing something wrong or is this not possible?
    And the menu bar looks horrific in IE6. I assume it looks ok
    in IE7 and above. Can someone help me with a code just for IE6 for
    this?

    audio90 wrote:
    Not quite what I was looking for. I'm wanting the top menu to be grouped together and to the right and the submenu boxes to all a single square box, not just with backgrounds extending only the length of the word. Also, your menu bar doesn't display properly in IE6 either.
    1) You should be able to achieve a square box for your submenu items by fixing the widths of all of your submenu items to something larger than the content of your widest submenu <li> tag.  This should be achievable with a single change of setting in the following CSS rule.
    ul.MenuBarHorizontal ul li {
         width:???em;
    Set your width using em units, so that the box shrinks and grows with the size of the text when the latter is changed by the user.
    2) Getting your top menu items to group together to the right may be more difficult as the entire menu bar is built on an HTML list structure with left-floated <li> tags.  If it is possible, then you should begin your experimentation with the following CSS rule
    ul.MenuBarHorizontal li {
         float:right;
    Change the float property from left to right, as I have indicated.
    My suspicion, however, is that many subsequent adjustments will have to be made.  So, back up your current CSS file before you begin.
    Roddy

Maybe you are looking for

  • Load data in R/3 BW delta Queue

    Hi, Is there any option to load data in R/3 BW delta Queue. I have done nothing for that. I have found that new record is available in source table. Is there any option to schedule / execute in R/3 end. Thanks & regards, Goutam

  • Creative Cloud Desktop App refuses log-in for Windows 8

    I've been getting this "unknown server error" for 4 days on my windows 8 creative cloud desktop app. I cannot install other CC aps until you resolve this. -- This has been a problem ever since creative cloud FORCED me to "upgrade" the creative cloud

  • Absence quota zero after Time Evaluation

    Dear friends, We are generating Absence quota automatically after Time evaluation. But CL/PL/SL leave quota generated is zero after TE. Even I am not able to edit Absence quota(IT2006) manually or through IT2013. Please guide me, what needs to be don

  • Problem in starting sdm

    HI Help me . I have problem in sdm server. initially it was started.but second time onwards it doent start. what is the problem for that. pls help me... regards BHI

  • Update Icons Missing

    All, When I create one read/write report the update icons are missing. When I create a different read/write report the update icons are present. The insert incons are present in both. Any idea what is going on here. Is there a work around for this? T