SQLLoader - using more than 1 function in a single field

Hi.
I have problem with sqlloader. i'm trying to call 2 function (DECODE and NPCS_FINBOUND_CTRL) for field type like below
LOAD DATA
INFILE "TEST.txt"
APPEND
INTO TABLE NPCS_INBOUND_NIZ
TYPE POSITION(1:1) "DECODE(:TYPE,1,2,:TYPE)" "NPCS_FINBOUND_CTRL(:TYPE,NPCS_FSEQCTRL('P_GFA','0',:TYPE),NPCS_FSEQC
TRL('P_GFA','1',:TYPE),NPCS_TRANS_ID_SEQ.nextval,null,null,null)"
,FILE_ID "NPCS_FSEQCTRL('P_GFA','0',DECODE(:TYPE,1,2,:TYPE))"
,BATCH_ID "NPCS_FSEQGET('P_GFA','1',:TYPE)"
,TRANS_ID "TRANS_ID_SEQ.nextval"
,DATA POSITION(1:160)
is sqlloader allow us to call more than 1 function because when i run the loader i got error like this
SQL*Loader-350: Syntax error at line 6.
Expecting valid column specification, "," or ")", found "DECODE(:TYPE,1,2,:TYPE)".
DECODE(:TYPE,1,2,:TYPE)" "DECODE(:TYPE,1,2,:TYPE)"
,FILE_ID "NP
ok
tq.

create the control file as given below
load data
infile *
into table emp1 truncate
(empno char terminated by '\n',
ename expression "substr(function1(:empno),1,3)",
ename1 expression "substr(function2(:empno),1,3)")
begindata
111
222
333
Regards,
Abu

Similar Messages

  • More Than 250 Characters in single field

    Hi
       Can anybody help me Regarding this issue.
       Is there any possibilty to get More than 250 Characters in single field (i.e up to 500),whether in Background or Online Mode.

    Hi
    do declare the field  as string than Char .
    data var1 type string  , this can hold more 500 size .
    Please mark helpful answers

  • Using more than 1 recordset text in page

    Ok, im not sure how to explain this, but basically, if i use
    more than one of these
    <%=(RScomments.Fields.Item("comment_notes_text").Value)%>
    So in this example;
    <%=(RScomments.Fields.Item("comment_notes_text").Value)%>
    <%=(RScomments.Fields.Item("comment_notes_text").Value)%>
    Then the second or subsequent ones show as blank in the page,
    can anyone help?
    I need to do an if then else statement, and because of this
    issue, the conditions work but the data does not display.
    Darren

    Not sure this is right, but it might depend on your database
    and SELECT statement order. If it's e.g. MS SQL, and
    "comment_notes_text" is a blob field (e.g. ntext or other
    memo-style field), then you should make sure your SELECT statement
    selects all the blob/text fields after any other kind of field, and
    then in order. Like this:
    SELECT nonblobfield1, nonblobfield2, nonblobfield3,
    nonblobfield4, blobfield1, blobfield2
    If you don't do that, then your blob fields might not display
    on the page.

  • Force VM Buffering to Use More than 3.5GB RAM - Good Idea?

    Sorry if this was explained, but I didn't see the short answer in any of the other threads I just stumbled on (and it sounds interesting).
    First: Download and Info:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402029&sliceId=1
    The information about VM Buffering in Photoshop CS3 is confusing at first glance.
    First it says it gives PS access to about 8GB RAM and speeds things up, then it says it slows things down.
    What might be the short recommendation on 2008 Mac Pro 2.8 8-core, 4 internal SATA (no RAID), 10.5.2 Leopard, 14GB RAM?
    Files range from 20MB-1GB.
    Should I be using these plugins?
    ForceVMBuffering.plugin
    DisableVMBuffering.plugin

    >Just to be sure now, if I install ForceVMBuffering plugin, Photoshop CS3 will use more than the 3.5 GB?
    As long as we're clear on what "use" means. The primary function of the VM buffers is to put as much scratch data as possible into RAM, instead of using the normal and much slower scratch hard disks you set in Preferences. That means if you are using a file so small that Photoshop wouldn't need to swap out to the scratch files, you may not see it take much high RAM. Also, my understanding is that because buffering is only about scratch files, it does not help provide more RAM to calculate a single operation, such as a running a complex filter on a very large layer. But if you never see "out of RAM" errors (and most people don't, because Photoshop is already well optimized), you don't need to worry about having enough RAM for operations. You only need to be concerned about using any extra available RAM for performance-enhancing memory buffers, and that's what Photoshop takes care of with VM buffering.

  • Can i create more than one instance for single database?

    HI
    anybody can tell me how to create more than one instance for single database(without using RAC)?
    thanks
    Kalanidhi

    Anandji,
    I sometimes think differently. I also think like what this person is asking..(although I have installed and administering 5 different RAC databases)
    The main doubt of mine is that we create multiple instances accessing the same storage area.
    Anyway the controlfiles of all instances will have the same information except the instance_names and instance id's.
    Hence I always think , why can't it be possible to to create another instance in the same system and point it to a controlfile which is copied from the other instance.
    Why can't the same files be shared between the two instances in a same system ?
    I know I am thinking a little bit confusing...
    Anyway I need to test that also...
    Mahesh.

  • [VIA] Via K7-266 Pro2 - System crashes if use more than 512 MB of memory

    Cannot use more than 512 MB of memory or system crashes. After running without a problem for over 2 years with 1 GB of memory installed, system started intermittent crashing, generally after 5 to 30 minutes of use.  I worked with the system manufacturer's tech support and they determined that it must be a motherboard problem.  I am hoping to find another fix rather than replacing motherboard.  System details:
    MB: Via K7-266 Pro2 (MS 6380)
    OS: MS Windows XP Update 1
    Bios: V3.6
    I've used Norton Systemworks and Norton Anti-Virus to keep system clean, and SpyBot and Adaware to clean adware
    During troubleshooting, we found that it will run with 512 MB of memory without problems, but not with the 1 GB I had installed.  My memory was 2 x 256 MB installed with the machine and 512 MB I purchased from Crucial and installed.  Computer ran over 2 years with all memory installed without a problem.  After the problem started and during troubleshooting, we found that any combination of 512 MB worked fine (either the 2 x 256 MB or the one 500MB chip), apparently in any arrangement of slots.  But as soon as I went to higher memory, I was subject intermittent crashes.
    Could not ID the source of the crash.  It sometimes happened when I was working with a single program open (various programs from IE to Excel to playing at GameSpy), had multiple programs open in background, or even when computer was sitting idle with only the startup programs active.
    During troubleshooting we also did a complete re-install of Windows XP, updated the bios to V3.6, and checked bios settings, but the problems persists. 
    What else could be the problem?

    I am beginning to suspect a PSU problem.  I neglected to mention in my first post that when the system crashes, it does not freeze but has intermittent reboots.
    I ran the memtest86+ test first on the two old sticks of memory then on just the one new 512 MB stick; both passed the test.  I also used the Prime95 stress test on both sets, and both ran without incident.
    I used PC Alert to report CPU and case temperatures during the stress test.  The results maxed at 54 and 41 degrees respectively during the first stress test and 46 amd 39 degrees during the second test (I think part of the difference was due to a lower ambient, room temperature during the second test.)  The voltages reported during both tests were similar and were: Vcore1: 1.71v;  Vcore2: 1.26v; +5v: 4.76v; 3.3v: 3.31v; +12v: 11.60v; and -12v: 12.60v.  I am not sure if that information is meaningful, PCAlert showed all measurements as within the required range.
    I periodically have cleaned the dust out of my computer, so I don't think that is the problem.
    I used 2 power calculators with major differences in the reported status of the system. The test from pcpowercooling reported minimum and maximum requirements for my system (with the full 1 GB of memory installed) of 300w and 510w.  The alternate I found at jscustompcs (from a recent article about power supplies at Extreme Tech) reported a minimuum of 256w (no maximum is calculated with their tool.  The two tools had significant differences for memory, CPU, and PCI cards.  Off particular relevance to my problem was the difference in memory requirements; Pcpowercooling calculated memory requirements at 8w per 128MGB while jcustompcs used 12.5 per stick, resulting in different totals of 64w vs. 21w.  Which is right?
    One item that makes me think it is not the PSU, however, is that the problem would occur with the 1 GB of memory while the system was idle, thus I was not using any of the hardware devices.  However, I never experienced the problem while using a device (e.g. DVD, CDRW, or tape drive) - either with 500MB or 1GB of memory.
    My power unit is a Power Man #FSP 300-60BTV with 300w output, including +3.3v: 28amps; +5v: 30.0 amps; +12v: 15 amps; +5vsb: 20amps; -5v: 0.3amps; -12v: 0.8amps.  It also notes max output of +3.3v and +5v of 200amps.
    My system also includes a Leadtek nVidia Geforce 3 Ti400 graphics card, DVD, CDRW, HP 14 GB tape drive, 1 case fan, and 4 PCI cards (modem, network, USB2.0, and Audigy 1).  The USB card is connected only to a bus in my Dell monitor and I have not used other USB devices.
    Any thoughts or suggestions?  Do I need to replace the PSU?

  • Use more than one look and feel in the Portal

    Hi,
    I'm searching for a solution to use more than one Theme in the portal. It's not based on user or a role. One and the same user should be able to enter the portal and depending on his adress he should be rooted to A or B theme.
    We are usein EP6 sps13.
    Kind regards
    Michiel Veenemans

    Hello,
    To my feeling you should be work with display rules.
    You probably have user who need one theme and other user you want to give another theme. By using display rules you can assign a theme to one user group and another theme or themes to another group.
    So depending on the group the user is assigned to you get another theme. This way everybody uses the same URL and a theme can be altered with the default user functions.
    Best regards,
    Frederik

  • Use more than one Catalog from ECC 6

    At the configuration point in ECC 6 Materials Management ... Web Services: ID and Description I can describe more than one catalog URL address , but the user see in transaction ME21N or ME51N only that catalog with the default flag.
    Is it possible to use more than one catalog by these SAP standard functionality?

    Hi Markus,
    no!
    Unfortunatly, it is just posible to use ONE catalogue. At the beginning of development there was kept open the posibilitiy to make posible the use several catalogues in a later state.  That`s mainly the reason why more than one can be entered in customizing. But the functionality of using more than one was never developed later on.
    best regards,
    Angela

  • Using More Than One App At A Time

    Does anyone know if there is a way to use more than one app at a time? It would be nice to get back to the home screen without quitting an app if you are in the middle of something.

    I know I have seen some apps that specifically say that they can be used while surfing the web, etc. It may be a function of the app that it can continue to run while you're doing something else. I'm kind of surprised that a radio app wouldn't allow for that.

  • Deploying more than one webapplication on single cluster

    Hello Folks,
    Is there a way to deploy more than one webapplication on single cluster of weblogic. Presently, we are getting an error while deploying second webapplication as
    “Context path is already in use by the module: First Application Name”.
    Awaiting reply, ...Thanks in Advance :)
    Amit

    Hi,
    Yes, We can. For Instance . Your weblogic cluster consist of two managed servers. Each managed server different port number.
    managedserver1: http://localhost:7003
    managedserver2: http://localhost:7005
    so your webapplication context name is same all managed servers.
    http://localhost:7003/context,http://localhost:7005/context. you should select running weblogic cluster on jdeveloper ide when you deploying webapplication to server then the webapplication deployed all managed server.

  • Has anyone used more than one event for one project?

    Hi,
    I have an opinion about Final Cut Pro X that hasn't changed since my first few days with it.  I waited to see if I would get used to it.  But, after a fair amount of time, I still am not comfortable with 'Events' and 'Projects'.  The separation of the media and projects creates more problems than solutions with my workflow.
    The purpose of it was to add flexibility for both the professionals and consumers using it, but my first impressions are still the same.  The new Event and Project system adds complexity to organization and archiving.  I wouldn't write this if it wasn't enough of a hindrance for me, that I encounter constantly.  I think the new Final Cut Pro X is incredible, but this issue is definitely important to me.
    Has anyone out there used more than 1 Event for 1 Project?  Some of us create more than 1 Project for an Event, to make different version of a video, or for brainstorming, or to make a part 1 and part 2 of a video, but I've never had more than 1 Event for 1 Project.  I don't need to use the media from multiple Events for the same Project.  And I've never used it for a reason.  I don't think someone will want to use their Hawaii vacation footage for a Denver vacation project, and a Florida vacation project.  I think we should bring back the connection between Events and Projects in a meaningful way. 
    This is a throw back to the older days, but that's not always a bad thing.  Let us keep our projects, or timelines, in the Events folder.  Make an area above the JPG section, and PNG section, and MOV section, and call it the Projects section.  Then we can easily find our Projects and add a new Project every time we need it, and organize our files quickly - without having to keep track of more windows. Final Cut Pro X is all about being more simplified than other video programs, and I think this goes right along with that idea.
    Thanks,
    - David

    My original fear was that FCPX was just going to be iMovie Pro... It so is not!
    People use the interface in different ways. I think that's what most of us like about it, it's flexibiity to accommodate different types of workflows.  For me, I use the Events browser mostly like I'd be using the Finder. All the imported clips I use are referenced by the hard disks on which they reside. I know where to find them in the Event Browser and I know where to find them in the Finder.  I use a lot of stock footage and therefore *reuse* a lot of stock footage from project to project. I'm not going to re-import duplicates into different events because I don't find that the least bit convenient and I do find it a terrible waste of precious HD real estate.
    But that's me.
    Some people like to load up everything they're going to use in a single project in a single event... I get that. You can command click your way through a bunch of clips, type E and everything is automatically arranged on your storyline in the order you selected the clips. That is *awesome*!! Instant storyline (/timeline.) Furthermore, for those that need to share projects, it's easier to bundle up the events and projects if they're all together (albeit in two different folders) on one disk (— at least they are always at the top level of the drive and easy to find.)
    Keeping your Events media in a different location (satellite drives) and keeping your current project on your *fastest* drive is probably the fastest way to edit (particularly if your satellite drives are Firewire or Thunderbolt [peer-to-peer interfaces don't hog system resources].) There is little cross interference in disk accesses that way. So essentially, you can keep FCPX dealing with original clip data that doesn't need to be quite as fast, reading and writing to slower drives on your system, while letting it plow through the heavy work on your fastest access drive (usually your internal HD.)
    By no means is FCPX "more simplified". It has a huge amount of power. It has all the best parts of Color, Soundtrack Pro and Motion built in. It allows you to explore *ideas* in real time rather than having to plan for them a week in advance [layout, round-tripping plans to Color, STP and/or Motion for titling or effects.]  You can grab and move around elements anywhere on your "palette" with simple mouse moves and an occasional key press. The list goes on. Bottom line, it doesn't matter how you organize your events or your projects. It's all about the finished product. And for me, I can turn that around in about 1/5th the time (not claiming it's great — but I think better results in 20% of the time, on average, than it would have taken in Studio.) [Not a professional video editor -- I'm a graphic designer, and I develop Motion graphics for FCPX to make all "you guys" look better.]

  • Using more than one Business area in the same report

    Hi,
    Is it possible / recommended to use more than one business area in the same report.
    For example, I have a sales (business area sales) report on one tab and a rebates(rebates business area) report on a second tab.
    Thanks

    Hello
    Possible: yes
    Recommended: no
    This can certainly be done and Discoverer will not prevent you from having reports that use different business areas as you describe.
    However, for management and security purposes it does not make for ease of use. As you know a user has the ability to share a workbook with another user. If they do this then ALL reports within that workbook are shared. If the receiving user does not have access to one or more of the business areas then some reports will run and some will not. This can be very confusing to an end user and a possible nightmare to administer.
    My recommendation would be to have a workbook per business area and not mix.
    If there is more than one business area per functional area, for example sales and returns, then so long as the users have access to both business areas then you could use a common workbook.
    Personally I would not even do this, so my strongest advice would be to have all reports in a workbook written against the same business area.
    Hope this helps
    Michael

  • Cant use more than one authorization group per report with SBO CR Basic

    Cant use more than one authorization group per report with SBO CR Basic.
    I have installed on SAP Business One SBO 2007 SP00 PL49 the Crystal Reports Basic 2.0.0.7.
    i have defined two users, manager and supervisor.
    I have defined two groups, M and S.
    Manager belongs in managers (M), and supervisor is assigned to the supervisors (S).
    i enter to one report, disable the public option to enable group authorization, and then check M group.
    Manager can see the report, but Supervisor is not allowed. So far good.
    Then i uncheck M, then check S in the report properties, and Manager cant get in, supervisor opens the report, So far good.
    But when we check both Groups or more, only the M group authorization appears to work, and S group users cant acess, even the report is allowed for that group, also happens with all the groups appart the first (2nd, 3rd, 4th, etc.).
    It seems that a report can manage a single group, but i have to be shure to tell this to the customer.
    So far we have included all Manager users to the S group in order that only S group is used and authorized users can use, but this is duplicating user participation in groups, and it would be much easier to check the desired groups for a single report.

    Cant use more than one authorization group per report with SBO CR Basic.
    I have installed on SAP Business One SBO 2007 SP00 PL49 the Crystal Reports Basic 2.0.0.7.
    i have defined two users, manager and supervisor.
    I have defined two groups, M and S.
    Manager belongs in managers (M), and supervisor is assigned to the supervisors (S).
    i enter to one report, disable the public option to enable group authorization, and then check M group.
    Manager can see the report, but Supervisor is not allowed. So far good.
    Then i uncheck M, then check S in the report properties, and Manager cant get in, supervisor opens the report, So far good.
    But when we check both Groups or more, only the M group authorization appears to work, and S group users cant acess, even the report is allowed for that group, also happens with all the groups appart the first (2nd, 3rd, 4th, etc.).
    It seems that a report can manage a single group, but i have to be shure to tell this to the customer.
    So far we have included all Manager users to the S group in order that only S group is used and authorized users can use, but this is duplicating user participation in groups, and it would be much easier to check the desired groups for a single report.

  • Using more than 2 control points in Interpolater.Spline

    Hello,
    what I'm working on is a bouncing ball, I figured it might work controlling the interpolator to create a multiple control points using the spline. ( a function with x ^n^ , where n is the number of control points)
    In a spline I can use only two control points, is there a way to make it use more than that, or do i have to use another way.
    Thanks for all help.
    Edited by: A.m.z on May 9, 2013 1:49 AM
    Edited by: A.m.z on May 9, 2013 1:49 AM

    Well, I guess it wasn't so hard - at least when there are libraries written by others to borrow from . . .
    This interpolator requires the apache commons math 3.2 lib - you can download commons-math3-3.2-bin.zip from here:
    http://commons.apache.org/proper/commons-math/download_math.cgi
    Extract commons-math3-3.2.jar from the zip and put it on your class path.
    This interpolator differs a little from the Interpolator.SPLINE interpolator that comes with JavaFX.
    Instead of control points which bend the curve but do not lie on the curve, the interpolator takes a set of points and plots a curve of best fit directly through the points.
    import javafx.animation.Interpolator;
    import org.apache.commons.math3.analysis.interpolation.SplineInterpolator;
    import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction;
    public class BestFitSplineInterpolator extends Interpolator {
      final PolynomialSplineFunction f;
      BestFitSplineInterpolator(double[] x, double[] y) {
        f = new SplineInterpolator().interpolate(x, y);
      @Override protected double curve(double t) {
        return f.value(t);
    }Here is an example usage:
    import javafx.animation.*;
    import javafx.application.Application;
    import javafx.scene.* ;
    import javafx.scene.paint.*;
    import javafx.scene.shape.*;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    public class BestFitSplineDemo extends Application {
      private static final Duration CYCLE_TIME = Duration.seconds(7);
      private static final int PLOT_SIZE = 500;
      private static final int N_SEGS    = PLOT_SIZE / 10;
      public void start(Stage stage) {
        Path path = new Path();
        path.setStroke(Color.DARKGREEN);
        final Interpolator pathInterpolator = new BestFitSplineInterpolator(
          new double[] { 0.0, 0.25, 0.5, 0.75, 1.0 },
          new double[] { 0.0, 0.5,  0.3, 0.8,  0.0 }
        // interpolated spline function plot.
        plotSpline(path, pathInterpolator, true);
        // animated dot moving along the plot according to a distance over time function.
        final Interpolator timeVsDistanceInterpolator = new BestFitSplineInterpolator(
            new double[] { 0.0, 0.25, 0.5, 0.75, 1.0 },
            new double[] { 0.0, 0.1,  0.4, 0.85, 1.0 }
        Circle dot = new Circle(5, Color.GREENYELLOW);
        PathTransition transition = new PathTransition(CYCLE_TIME, path, dot);
        transition.setInterpolator(timeVsDistanceInterpolator);
        transition.setAutoReverse(true);
        transition.setCycleCount(PathTransition.INDEFINITE);
        transition.play();
        // show a light grey path representing the distance over time.
        Path timeVsDistancePath = new Path();
        timeVsDistancePath.setStroke(Color.DIMGRAY.darker());
        timeVsDistancePath.getStrokeDashArray().setAll(15d, 10d, 5d, 10d);
        plotSpline(timeVsDistancePath, timeVsDistanceInterpolator, true);
        stage.setScene(
          new Scene(
            new Group(
              timeVsDistancePath,
              path,
              dot
            Color.rgb(35,39,50)
        stage.show();
      // plots an interpolated curve in segments along a path
      // if invert is true then y=0 will be in the bottom left, otherwise it is in the top right
      private void plotSpline(Path path, Interpolator pathInterpolator, boolean invert) {
        final double y0 = pathInterpolator.interpolate(0, PLOT_SIZE, 0);
        path.getElements().addAll(
          new MoveTo(0, invert ? PLOT_SIZE - y0 : y0)
        for (int i = 0; i < N_SEGS; i++) {
          final double frac = (i + 1.0) / N_SEGS;
          final double x = frac * PLOT_SIZE;
          final double y = pathInterpolator.interpolate(0, PLOT_SIZE, frac);
          path.getElements().add(new LineTo(x, invert ? PLOT_SIZE - y : y));
      public static void main(String[] args) { launch(args); }
    }Edited by: jsmith on May 11, 2013 5:58 AM

  • How can I use more than one Data Provider in my web Apps

    I am trying to use two different data provider in my web apps to run two different queries from the same table ,the data provider A is working correctly but when I attempt to run data provider B ,It display an error page ,here is the error message : Exception Details :javax.servlet.ServletEx ception
    java.lang.RuntimeException: java.sql.SQLException : Cannot connect .Both dataSourceName and url properties are null.

    Hi,
    You can use more than one data provider in your application. However if you have defined a dataprovider for a particular table already, and wish to bind a component, select the component and use its context menu to Bind to Data...

Maybe you are looking for

  • Read posts but still can't resolve my mac/pc networking issues :(

    Hi everyone, I'll get right to it. I have a G4 10.4.7 imac which I've had hooked up to Westell Wirespeed dsl modem (allows up to 253 users when networked, Verizon provided modem and dsl service) via ethernet. Yesterday, I bought new a Toshiba Satelli

  • RGB conversion to CMYK InDesign CS4 js

    Hi, When we export InDesign into pdf through a script we assign to it a specific color profile. And at first it was converting all RGB files to CMYK as well. Then after one of the crashes my InDesign stopped to convert them. Is there a way to fix tha

  • Problem in translation to other language

    I have worked on a web application using JHeadStart Version 10.1.2.0 and JDeveloper 10.1.2.1.0, I have to translate all interfaces to other language (Arabic), So I generated the (ApplicationResources_ar.proberties) by setting the property (Generator

  • XI 3.0 No receiver could be determined

    Hello, I receive, “No receiver could be determined” in SXMB_MONI (XI SAP GUI) when trying to send a business partner to SUS.  The data flow is EBP-XI-SUS.  The business partner makes it to XI successfully, but it cannot determine the receiver (SUS). 

  • Need experts opinion... Should I use smcFanControl?

    I've recently purchased a MacBook Pro 13" with an i7 processor and 8GB of RAM and have been watching flash player videos on the internet and playing pretty basic games that use programs such as Java and have experienced temps topping at 101 degrees C