Problem in loading EBCDIC file

I have a flat file in ebcdic format and trying to load that using external table. The .sql is as below
DROP TABLE EVP0050;
CREATE TABLE EVP0050
ORG_KEY2 NUMBER(3),
ACCT_KEY2 VARCHAR2(19),
SCHEME_KEY2 VARCHAR2(5),
REV_BATCH_DATE_KEY2 NUMBER(7)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER DEFAULT DIRECTORY EC3D_DATA_DIR
ACCESS PARAMETERS
RECORDS VARIABLE 5 CHARACTERSET WE8EBCDIC37
NOBADFILE
LOGFILE 'evp0050'
NODISCARDFILE
READSIZE 10485760
LOAD WHEN ((1:2)='DD')
FIELDS
MISSING FIELD VALUES ARE NULL
ORG_KEY2 POSITION(3) CHAR(3),
ACCT_KEY2 POSITION(6) CHAR(19),
SCHEME_KEY2 POSITION(25) CHAR(5),
REV_BATCH_DATE_KEY2 POSITION(30) DECIMAL(7)
LOCATION
'file1.dat'
REJECT LIMIT unlimited;
SELECT REV_BATCH_DATE_KEY2 from evp0050 where rownum<5;
The field REV_BATCH_DATE_KEY2 is REV-BATCH-DATE-KEY2 S9(7) and it length is 4. How ever I am not able to oad it into the table.
Oracle version : 10.2.0.2.0
Can any lone help me out.

Yes you are right, its a cobol syntax. The copy book is pasted below. Can you tell me what data type should I use.
16 OCT 2008 FILE-AID 9.1.0 PRINT FACILITY 15:20:39 PAGE 1
RECORD LAYOUT REPORT
RECORD LAYOUT DATASET : DAIW.IMG.WR5820.COPY.LMS
MEMBER : TEST012
------- FIELD LEVEL/NAME ---------- PICTURE FLD START END LENGTH
:$$$$$$:-RECORD 1 500 500
2 :$$$$$$:-RECORD GROUP 1 1 500 500
3 :$$$$$$:-KEY-AREA GROUP 2 1 45 45
5 :$$$$$$:-KEY GROUP 3 1 26 26
7 :$$$$$$:-ORG-ACCT GROUP 4 1 22 22
9 :$$$$$$:-ORG-X GROUP 5 1 3 3
11 :$$$$$$:-ORG 999 6 1 3 3
9 :$$$$$$:-ACCT X(19) 7 4 22 19
7 :$$$$$$:-REC-NBR 9(8) 8 23 26 4
5 :$$$$$$:-FILLER X(19) 9 27 45 19
3 :$$$$$$:-KEY-DEF2 REDEFINES :$$$$$$:-KEY-AREA
3 :$$$$$$:-KEY-DEF2 GROUP 10 1 45 45
5 :$$$$$$:-KEY2 GROUP 11 1 35 35
7 :$$$$$$:-ORG-ACCT-KEY2
GROUP 12 1 22 22
9 :$$$$$$:-ORG-KEY2 999 13 1 3 3
9 :$$$$$$:-ACCT-KEY2 X(19) 14 4 22 19
7 :$$$$$$:-SCHEME-KEY2 X(5) 15 23 27 5
7 :$$$$$$:-REV-BATCH-DATE-KEY2
S9(7) 16 28 31 4
7 :$$$$$$:-REC-NBR-KEY2 9(8) 17 32 35 4
5 :$$$$$$:-FILLER X(10) 18 36 45 10

Similar Messages

  • Path problem for "Load VRML File.vi" in EXE

    Hello,
    The new integrated 3d Picture Control functionality in LabVIEW 8.20 is amazing.  It is a really easy to use implementation of OpenGL.  I've discovered one bug/issue when building VI's to an exe that includes the 3d Picture Control:
    If "Load VRML File.vi" is used, in the executable, you will encounter a LabVIEW Error 7 due to a path problem in the following vi:
    NI_3D Picture Control.lvlib:Load VRML File.vi->NI_3D Picture Control.lvlib:NI_Old 3D Toolkit.lvlib:Read WRL file.vi->NI_3D Picture Control.lvlib:NI_Old 3D Toolkit.lvlib:Initialize.vi
    The File Not Found problem will prevent the vrml file from loading.  Navigating down into the subVI's of the "Load VRML File.vi" shown above easily reveals the problem.  I've included a screenshot of the diagram of that VI.  The relative
    path resulting from the double "Strip Path" operation is not valid
    in the executable.  I'm not sure where that "definitions" file resides
    in the runtime deployment or if it's even included, so fixing the path to account for the differences in the exe vs. development environment path is not an option.   I'm also usually very hesitant to make any mods to anything in vi.lib.
    For the development environment, the "definitions" file can be found at: [LabVIEW 8.2 dir]\vi.lib\picture\3D Picture Control
    The easy fix is to include the "definitions" file in the same directory as your exe when you build.  Fortuitously, this does the trick because the first strip path gives the path to the exe and then the second strip path results in the path to the directory where the exe resides.
    Hopefully NI will fix this path reference properly in future revisions.
    Enjoy!
    Attachments:
    WRL Debug.jpg ‏77 KB

    Hi Chris,
    Thanks a lot for the feedback!  This was reported to R&D (# 47F9DJIQ) for further investigation.
    Regards,
    Justin D

  • Problem in loading SWF file

    Hi All,
    I am facing a problem in file loading. I have a file
    https://shopping.easycite.com/admin/tree/main.swf and in that file
    loading another file named “editNodeFome.swf”. To load
    "editNodeFome.swf" i am using related path. But the file is not
    loading.
    mcLoader.loadClip("editNodeFome.swf", _root.tempForm_mc);
    Can any one help me to find out the solution?

    show your mcl code or use trace(mcLoader) to confirm it
    exists along with _root.tempForm_mc. and make sure editNodeFome.swf
    is in the same directory as the html file that embeds
    main.swf.

  • Other problems with loading Captivate files into Flash AS3 project

    I have a Captivate file done with Captivate 3, published to
    Flash player 9 that is being loaded into Flash AS3. The captivate
    is a simple recording of some mouse clicks in a browser. I am
    displaying the playbar along the bottom, and its buttons all work
    fine except for the progress bar, where you can drag the knob and
    scrub back & forth in your presentation.
    This progress bar is not working as it should. I see the
    mouse cursor change to a hand, but when I click I cannot drag the
    knob to control the progress bar. The other buttons in the playbar
    do work (replay, pause, play, back, forward).
    This is a unique problem in that it is only happening when
    viewed in IE (7) when loaded into my Flash AS3 project. When viewed
    in Firefox in my project, or as a standalone SWF, or as a SWF
    simply embedded onto a plain HTML page, it works just fine.
    Does anybody have any insight?
    Another thing I notice with loading Captivate files with AS3
    is the the amount of output messages it displays. Rather annoying
    (unless this is a "feature" I've yet to be aware of - heh)

    Hi,
    I know exactly how you feel, there is simple answer; replace
    Captivate for Camtasia Studio 5 at techsmith.com. The weight on
    those shoulders will be gone! You'll smile more, be more
    socialable. One Happy Person.
    I am very happy person ;)
    Kind Regards,
    Boxing Boom

  • Problem when loading pdf files from Shared Content

    When I load pdf files from Shared Content, I got the following problem: "The selected document could not be retrieved, please try uploading the document again."
    Anyone knows this?
    Thank you very much in advanced.

    I don't migrated the program, but installed it from the original installer,
    i. e. I first installed Indesign from backup, and then uninstalled it and
    reinstall  clean from Adobe.
    What a plug-in or utility converts page from InDesign to PDF?
    2014-08-10 22:51 GMT+04:00 Peter Spier <[email protected]>:
        problem with exporting PDF files from InDesign CS5  created by Peter
    Spier <https://forums.adobe.com/people/P+Spier> in InDesign - View the
    full discussion <https://forums.adobe.com/message/6627440#6627440>

  • Problem when loading xml file using sql loader

    I am trying to load data into table test_xml (xmldata XMLType)
    i have an xml file and i want whole file to be loaded into a single column
    when i use the following control file and executed from command prompt as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct=true;:
    LOAD DATA
    INFILE *
    TRUNCATE INTO TABLE test_xml
    xmltype(xmldata)
    FIELDS
    ext_fname filler char(100),
    xmldata LOBFILE (ext_fname) TERMINATED BY EOF
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    the file is being loaded into table perfectly.
    unfortunatley i cant hardcode file name as file name will be changed dynamically.
    so i removed the block
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    from control file and tried to execute by giving file path from command line as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml direct=true;
    but strangely it's trying to load each line of xml file into table instead of whole file
    Please find the log of the program with error
    Loading of XML through SQL*Loader Starts
    SQL*Loader-502: unable to open data file '<?xml version="1.0"?>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Root>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>Forms</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>PLL</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    please help me how can i load full xml into single column using command line without hardcoding in control file
    Edited by: 907010 on Jan 10, 2012 2:24 AM

    but strangely it's trying to load each line of xml file into table instead of whole fileNothing strange, the data parameter specifies the file containing the data to load.
    If you use the XML filename here, the control file will try to interpret each line of the XML as being separate file paths.
    The traditional approach to this is to have the filename stored in another file, say filelist.txt and use, for example :
    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;

  • Problem on loading DAT file when using 3G network modem

    Hello,
    I'm having some strange problem when I'm trying to load my game on the part where DAT file with Map Object is read, using 3G Network Modem. This issue started when I migrated my applet from one host to another. Everything loads well, until the user authentication. On user authenticatiom I'm recieving map name which I should load and show the user on it. I'm recieving the message where map name is mentioned, but after, when the process of loading map begins(when I need to read DAT file which is only 15KB) application blocks(browser and JVM also block).
    I thought it could be because of slow network communication, but it's not the reason, since I have tested(using Bandwidth limiter software) with 5 KBs/Second and it loads well and application is running well.
    Any clue why this can happen? If code is needed I'll post some pieces related to the process of map creation.
    URL or application: [ http://mimosa.dei.uc.pt/serhiy/demo/hoonline.html|http://mimosa.dei.uc.pt/serhiy/demo/hoonline.html]
    Accounts: test01/test01 ... test0n/test0n ... test05/test05 (n is number from 1 to 5)
    Thanks in advance!

    You have to upload it with FileReference.upload() to a PHP
    (or other server-side) script which saves it to a folder on the
    server. When the DataEvent.UPLOAD_COMPLETE_DATA event has been
    dispatched you can then use the FileReference.name to load from the
    file on the server just like any other image.

  • Problem with loading XML file from directory.

    Hello everyone.
    *1)* I have directory defined by DBA. I have read, write privileges. I can read file from this directory using UTL_FILE, I can create file in this directory using UTL_FILE. I tried many times and it does not seem to be any problems.
    *2)* I have very simple XML table (with just one column of xmltype). I can insert into this column using:
    insert into temp_xml values (
    Xmltype ('<something></something>')
    *3)* When executing
    insert into temp_xml values (
    Xmltype (
    bfilename('XML_LOCATION', 'sample.xml'),
    nls_charset_id('AL16UTF8')
    I'm receiving an error:
    Error report:
    SQL Error: ORA-22288: file or LOB operation FILEOPEN failed
    ORA-06512: at "SYS.DBMS_LOB", line 523
    ORA-06512: at "SYS.XMLTYPE", line 287
    ORA-06512: at line 1
    22288. 00000 - "file or LOB operation %s failed\n%s"
    *Cause:    The operation attempted on the file or LOB failed.
    *Action:   See the next error message in the error stack for more detailed
    information. Also, verify that the file or LOB exists and that
    the necessary privileges are set for the specified operation. If
    the error still persists, report the error to the DBA.
    *4)* Previously I was receiving more descriptive errors like permission denied, file not exists etc. This time there is no clear description apart from "file or LOB operation %s failed\n%s". I'm sure I can access this file in this directory (I used UTL_FILE to dbms_output the content).
    Any help would be greatly appreciated.
    Regards
    Marcin Jankowski

    Hi Marcin,
    Welcome to the forums.
    One very important thing with Oracle XML : please always give your database version, all four digits (e.g. 10.2.0.4).
    Does the directory resides on the same machine as the database? Which OS?
    Does any of the following work ?
    DECLARE
       v_lob   CLOB;
       v_file  BFILE;
    BEGIN
       v_file := BFILENAME('XML_LOCATION','sample.xml');
       DBMS_LOB.createtemporary(v_lob, true);
       DBMS_LOB.fileopen(v_file);
       DBMS_LOB.loadfromfile(v_lob, v_file, DBMS_LOB.getlength(v_file));
       INSERT INTO temp_xml VALUES( xmltype(v_lob) );
       DBMS_LOB.fileclose(v_file);
       DBMS_LOB.freetemporary(v_lob);
    END;
    DECLARE
       v_lob   CLOB;
    BEGIN
       v_lob := DBMS_XSLPROCESSOR.read2clob('XML_LOCATION', 'sample.xml', nls_charset_id('AL16UTF8'));
       INSERT INTO temp_xml VALUES( xmltype(v_lob) );
    END;
    /

  • Urgent: Problem to load Flat file using DTP.

    Hi Experts,
    I try to load a flat file  PSA->DSO->INFOCUBE using DTP.
    I my flatfile in the application server in csv format.
    in the My data source I opted Adapter  as Load Text -Type file from Application Server.
    Data Format : I test with both the potions : Fixed length &  Separated with Separator( For example CSV) .
    If I check the preview:  I cant find any data and get the message: Inbound processing of data package 000001 finished
    when  I try to Load the data thorough PC the load was successfull but only 0 records are transfered and added to PSA:; DSO and Info Cube.
    The test file contains around 20 records.
    Any suggestions please.
    Thanks & Regards

    Hi Sailekha..
    in the My data source I opted Adapter as Load Text -Type file from Application Server.
    Data Format : I test with both the potions : Fixed length & Separated with Separator( For example CSV) .
    Note: As per ur info:
    In the Flat file Data source :
    1. You have to maintain the Adapter as:
    Load Text -Type file from Application Server
    Data Format : Separated with Separator
    Then Use the "Proposal" Tab to generate the field proposals.
    (Only in BI 7.0 this option is available).
    After that check the Preview in "Preview" Tab.
    Hope it works...
    Cheers,...
    Varma

  • Problem in loading designer file

    Hello
    I am facing problem in visual studio 2012, on creating new project for windows app it showing error: System.NullReferenceException and on running application it is asking for silverlight 4 sdk is not installed but in actual it
    is installed on my machine.
    how can it be corrected.
    thanks

    Hi,
    Please try to Download the Silverlight 4 SDK from the link below:
    http://www.microsoft.com/en-in/download/details.aspx?id=7335
    And reinstall the SDK manually to see whether the error can occur.
    And some person came across the same problem with you:
    http://stackoverflow.com/questions/15967067/the-silverlight-4-sdk-is-not-installed-error-after-updating-visual-studio-201
    Solved the problem by reinstalling the Windows Phone 8 SDK.
    If the error also occurs after you do the above methods, try refer to the following folder %temp% and filter files by time, you will find Silverlight SDK installation log. Please upload it to
    www.onedrive.com and post the link in the forum.
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Problem in Loading XML File

    I created one menu Item using XML file .My doubt is where we will put that XML file in our project

    Dear,
    I think loading form from srf file in the UI is done using SDK UI. First we load the srf in a string veriable. I have worked it out using c#. and then we use SBO_Application.LoadBatchActions method to load and show the form
    string strXml = "";
    String path = @"C:\Program Files\SAP\SAP Business One\frmTest.srf";
    using (System.IO.StreamReader sr = System.IO.File.OpenText(path))
                            strXml += sr.ReadLine();
    SBO_Application.LoadBatchActions( ref strXml);

  • Problem in Loading a File on the MovieClip..

    I want to load an image on the MovieClip at run time..
    This should be done using file reference Class instance..
    By this user can brwose the file load whatever he wants..
    I had tried this but when user select the file in code we
    just have name of the file not whole path..
    So to load an image on movieClip we require the whole path..
    Any one knows how I can achive this...??
    Thanks...

    You have to upload it with FileReference.upload() to a PHP
    (or other server-side) script which saves it to a folder on the
    server. When the DataEvent.UPLOAD_COMPLETE_DATA event has been
    dispatched you can then use the FileReference.name to load from the
    file on the server just like any other image.

  • Problem with loading flash files in applet

    hi
    using JEditpane i can load html pages but it's not supporting gif and flash files.is there any way to open a html page which contains flash and gif files.
    please help me...

    jeditpane does not support flash files etc, i am not sure if it even support applets if yes probably with some limited way, anyway flash files are not supported, but you can lanch system web browser to show content with flash like internet explorer, latest mustang will suport this

  • D800 file compatibility:  Has anyone experienced problems with loading D800 files onto the iPad using the camer connector kit?  I have tried both RAW and JPEG using SDHC and CF cards and the iPad(3) doesnt recognise any of the files.

    Has anyone experienced problems with downloading Nikon D800 files to the iPad3 using the camer connector kit?  I have tried .RAW and JPEG (of various sizes) on both SD and CF cards, but the iPad doesn't recognise the files. 
    I have seen various forums discussing Lightroom and PSE updates that are required to process .NEF files but I can't find anything on the iPad/camera connector issue.
    I dont have any problem if I put the SD card straight into the SD slot in my iMac and Aperture will process the files fine, but I would really like to be able to download and view files on the move on the iPad.
    Any advice appreciated?
    PS - saw something that suggested the iPad had a maximum file size of 16mb for photos, not sure if this is correct, but I have tried smaller JPEG files and they still aren't recognised.

    If your camera supports both PTP and Mass Storage Device modes, it may be necessary to use both modes to import all media content.
    If some files do not import as expected using one mode, try switching to the other mode and importing again.
    Note: Some cameras may refer to PTP as Pictbridge or PTP/Pictbridge.

  • Applescript: Problem Using Load Script File. Please Help :-!

    My setup: file 1 is a script object and file 2 is the script that uses the script object in file 1. This seems straightforward, but I'm getting runtime errors when tryig to use the script object, whether looking at its properties or calling its handlers. The whole thing just doesn't work. What am I doing wrong?
    Question 1: Is the 'load script' statement correct in file 2? It took forever and looking at many examples to not get an error in that statement. I don't understand why the path string is 'as alias'.
    Question 2:  When loading a script and specifying its path, is there a way to start with the current path (of the executing script file). All the scripts are stored together, but so far, I've only seen commands for absolute paths or user or desktop, etc. how can I get the path of the currently running script?
    Question 3: Is the cURL syntax ok? I can't even get the script to run to that line, so I don't know if it will even execute.
    Thanks a million, in advance.
    Cheers,
    Mark
    File 1: this is the script library file
    script AR_Redeye
      -- IR Command URLs
              property outside_lights_ON : "http://..."
              property outside_lights_OFF : "http://..."
              on do_command(command_url)
              -- execute the url using cURL
                        set command_status to (do shell script "/usr/bin/curl -s -S  " & command_url) as string
              -- the url (when opened in a web browser) displays 'success' or 'fail'
                        return command_status
              end do_command
    end script
    File 2: The script that calls the handlers in the library file
    set arRedeye to load script (("Macintosh HD:Users:...:AR Redeye Class.scptd") as alias)
    tell arRedeye to do_command("http://...")

    If I may indulge you again, I've cleaned up the scripts according to your advice and made progress, but I am still receiving the following errors:
    Applescript Error:
    «script» doesn’t understand the do_command message.  (see below for where it occurs)
    I also get an error for referencing a property of the script object.
    Might you provide some insight as to why this is occurring?
    Still a little confused.
    Thanks,
    Mark
    =================================
    -- File AR_Redeye.scptd
    -- IR Command URLs
    property outside_lights_ON : "http://redeye..."
    property outside_lights_OFF : "http://redeye..."
    property all_AV_OFF : "http://redeye..."
    property airplay_all_rooms : "http://redeye..."
    on do_command(command_url)
      -- execute the url using cURL
              set command_status to (do shell script "/usr/bin/curl -s -S  " & (command_url as string)) as string
              return command_status
    end do_command
    -- End file
    ==================================
    -- Main Script File
    tell application "Finder" to set appPath to container of (path to me)
    set scriptPath to POSIX path of (appPath as text) & "AR Redeye Class.scptd"
    set arRedeye to (load script scriptPath)
    tell arRedeye to do_command(outside_lights_ON of arRedeye)
    -- the above line returns an error: «script» doesn’t understand the do_command message.
    -- also returns an error related to using the property outside_lights_ON of the arRedeye script object.
    -- Main Script File End

Maybe you are looking for

  • TREX not working for e-recruiting with HTTP content server

    We have a separate e-recruiting instance where we have only e-recruiting functionality installed. In this system we are using Storate type as "http content server instead of standard setting "SAP system database" for HR_KW content repository via tran

  • Notes broken in Mountain Lion?

    After upgrading to Mountain Lion, my notes synced via my IMAP mail account are not showing up in the new Notes app. On the left side of the Notes app, I see my IMAP account where my notes should reside, but it's empty, with none of my notes. I assume

  • Iphone out of the box

    https://picasaweb.google.com/uahollem/VerizonIPhone?feat=directlink

  • Excel Add-In Toolbar

    How does one get & install the Excel Add-In Tool bar. It gives you 6-7 icons embedded in a tool bar to give you quick access to Essbase Excel Add-In functions. Thanks.

  • Presets for Pana TM700K 1080P 60FPS

    Does anyone know for PP CS5 what are the best presets or how to customize to the best preset?  The input is AVCHD @ 1080P 60FPS.  None of the existing presets seem right.   But I'm new so maybe I missed it.