Table in MainFrame DB/2

Hi
I need to query a table of DB/2 in MainFrame
any way doing it with XI ?

Shai,
Take a look at this thread and see if it helps,
Re: were to find db2 drivers and how to check if it is working
Regards,
Bhavesh

Similar Messages

  • Need help with scenario design

    I need to design a scenario,
    Data is coming from two tables in mainframe.....that data i need to combine and process it and insert to ECC.
    How to design?.
    What will be the steps using BPM?.
    Can u please give me broad view on designing this scenario.

    Thanks Prabhu..for the input.
    Thanks Bhavesh. You got the point...that is what i am going to do.
    I have a select with join....then i update the records selected from database.
    But now, i want to resign the scenario..
    What i want to do is...write a sync send. Then use the join sql to get data, send to BPM.
    Then inside BPM, use select with for update only and update sql.
    For getting records on fly and send to BPM, how can i do?. Can u please elaborate this?.
    What all i need to do to run the join sql against table and get data to BPM?.
    (Advanced mode in JDBC Adapter setting to serializable queries is not working). So i need to do this step to overcome.

  • How to design inside OWB

    My question is about design inside OWB. We are implemeting OWB for the first time along with Cognos. We have around 20 tables (datasource) which are used in cognos to report. This 20 target tables are built in OWB from sources in mainframe.
    We bring all required tables from mainframe and to some tranformations and load into this target tables.
    Now my question is how this tables should be placed in OWB.
    should we put all tables in the same module under project
    or each have diffrent module.
    what is the general practise. Do we have only one location or different locations for each files.
    We have seperate server where we created mappings in owb. How do we take all this mappings to production server. Do we have to export. How do we change the locations .
    Is there any documentation for best practices. Any help will be greatly apreciated
    thanks

    Hi,
    Tables
    The general practice would be to have one module for design area. For example, in general DWH terminalogy, one can end up to have 1 module for Staging, 1 for Data Marts. As you are talking about 20 tables I think you can go with one module for all the tables, rather than creating 1 for each table.
    Files
    If all of your files are located under the same directory structure ( either in Unix or Windows) you need only one Location. If the files are in different directories then you should have multiple locations. The usual practice is to break-up the files according to business area. In that way you will not end up with too many locations and also you can segregate the files.
    Dev to Prod
    For deploying owb mappings onto Test or Prod, you need to create an MDL file by using OWB Exort Utility and then Import into the relevant area. The locations need to be re-registered using the new server credentials. The way we have achieved is to create collections for non Mapping objects( ie source modules / file definitions / locations ), export the collections and imported, re-registered the locations. For mappings we created an MDL file , expoted and imported into relevant areas.
    HTH
    Mahesh

  • Question on updating JTable contents

    I doing a java mail project, I constructed a tablemodel to store/show the mail contents:
    class MailTableModel extends DefaultTableModel{
    with one botton event I successfully added the mail information into a vector.
    However, I couldn't get the JTable to update its view.
    JTable is defined in the mainFrame class:
    class MailFrame extends JFrame{
    private JTable table;
    public MainFrame(TableModel tm){
    table = new JTable(tm) // reference to the tablemodel which has the data;
    public someButton_actionPerformed(ActionEvent e){
    // what to do to let the JTable to update and show the data?
    // anybody can help?
    somebody said the DefaultTableModel will update the view automatically
    with the addRow method, well, not in my case, any suggestions?
    Thanks!

    somebody said the DefaultTableModel will update the view automatically with the addRow method, well, not in my case, It works for me. Reply 3 of this thread shows a simple example:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=290478

  • Mainframe data loaded into Oracle tables - Test for low values using PL/SQL

    Mainframe legacy data has been copied straight from the legacy tables into mirrored tables in Oracle. Some columns from the mainframe data had 'low values' in them. These columns were defined on the Oracle tables as varchar2 types. In looking at the data, some of these columns appear to have data that looks like little square boxes, not sure but maybe that is the way Oracle interprets the 'low values' in the original data into varchar. When I run a select to find all rows where this column is not null, it selects these columns. In the results of the select statement, the columns appear to be blank, however, in looking at the data in the column using SQL Developer, I can see the odd 'square boxes'. My guess is that the select statement is detecting that something exists in this column. Long story short, some how I am going to have to test this legacy data on the Oracle table using Pl/Sql to test for 'low values'. Does anyone have any suggestions on how I could do this????? Help! The mainframe data we are loading into these tables is loaded with columns with low values.
    I am using Oracle 11i.
    Thanks
    Edited by: ncsthbell on Nov 2, 2009 8:38 AM

    ncsthbell wrote:
    Mainframe legacy data has been copied straight from the legacy tables into mirrored tables in Oracle. Not a wise thing to do. Mainframe operating systems typically use EBCDIC and Unix and Windows servers use ASCII. The endian is also different (big endian vs little endian).
    Does anyone have any suggestions on how I could do this????? As suggested, use the SQL function called DUMP() to see the actual contents (in hex) of these columns.

  • Forms 1Og and  Mainframe Db2 tables

    We are in the process of Migrating from Forms 6i to 10g
    We are facing the an issue while compiling forms which have statments like Insert/Update/select from DB2 tables.
    In the Oracle 10g DB we have configured these as public synonyms and when we are compiling them from windows xp .the builder is crashing. The same is happening in the batch compiler also.
    The same form compile correctly in Forms 6i.
    Please let me know if you have faced any issues/solutions for the same.

    The SQL query will have to find all 10000 records, I believe, and then the JDBC driver will select 500 of them. But you could do some timing tests to confirm this: for example, does using setMaxRows() speed up the query process or not? Or do different maximum rows value affect the time? (Personally I would not trust setMaxRows() because the API documentation does not specify how it decides which records to drop.)
    There has got to be a way to speed up your searches? I suppose that's true, but some of the solutions may be unpalatable (e.g. "Get a faster mainframe"). Have you already done common optimizations like ensuring that your search criteria are supported by indexes?

  • Connecting to Mainframe datacom tables using Java code

    Hi,
    I want to connect to the mainframe datacom tables using javacode. Can anyone help me out.
    Thanks,
    Mahesh.

    I don't have any sample code, but if you have bluetooth software on your computer, you can setup the serial port profile between your computer and cellphone, and treat your cellphone as a normal modem.
    You can then look at the javacomms api, which should help you.
    http://java.sun.com/products/javacomm/

  • What happens to table when file is transfering ?

    There is code in Z-program which puts a 'Z' in the blocked field of ZCCOD whenever a file is transmitted.
    I mean file is transfering from SAP to mainframes
    Can anybody tell what happens if the table is in <b>edit mode</b> (e.g., via SM30) at the time of transmit?  Do the changes get lost or do they get queued up or what?
    Could you please you please explan in detail. You correct(no guessings please ) explanation is highly appreciated.

    The Z-Program will update the database irrespective of the table being edited in SM30. The user won’t see the updated data until he comes out of the existing transaction and goes back again.
    <b>Nothing is queued up.</b>
    Also if the program updates the data and if the user editing the table in SM30 saves his changes, the changes made by the Z-program will be overwritten.
    The best way to avoid this problem is to add a check in your Z-program. Use the function ENQUEUE_READ to check if the table key the program is trying to update is locked and perform further processing.
    -Kiran

  • Anyone know how InDesign (or other CS4 software can interact with a Mainframe computer?

    We print a lot of form letters, tax forms etc off of our main frame. Sometimes in large quantities.
    Currently we are using a prgram called Elixir Design Pro tools to get the jobs done via the maineframe.
    Is there any way that we can somehow incorporate InDesign to get forms printed without having to hassle around with this program? (Think giant mial merge off data stings on a main frame.
    In the book, the background information on the program states:
    The print process begins with the submission of a JCL (Job Control Language) statement. This JCL statement includes the instructions to start the job, along with the primary resources the job needs. These resources might typically include the data source, the PageDef and the Form Def.
    These pieces are used by the PSF (Print Service FAcility,) a printer driver that resides in the host. PSF finds and retrieves all necesary resources, then has a two-way conversation with the printer using IPDS (Omtellegent Print Data Stream). IPDS is the language used for PSF and the printer to communicate with each other.
    In addition to the Elixer fomrats, Visual PPFA allows the use of various overlay, fonts and images formats for your document desing.
    Extensions on these include:
    DOCUMENTS:obj; .src; .pfa; .dbf; efd; epd;
    OVERLAYS: ove; ovt; 01; ogl; efr; elx;
    FONTS: Several AFP and Adobe Type Manager Fonts, True type fonts
    IMAGES; AFP; bitmap; Elixer Legacy(.LP3; JPEG; JPG; PC Paintbrush . pcx; Portab;e netwrok .png; and tif
    Anyone know more about this that I am ever goign to?  We print large volume and are tyring (I beleive ) to get this to somehow print on something similar to a Docutech (maybe???) Thank you. I will realy any info (i'm sure there will be questions asked of me) to our head IT guru.

    Where does the need for your mainframe come in to play then? If your goal is the use InDesign and not use the Elixir solution that you've already got and you want variable data printing you're going to look into something such as an XMPie or similar sort of VDP package. As is with your solution (of if you are using the lighter version of Elixir) you can put InDesign in and assign whatever dynamic goodness you want and spit out what you need.
    If you've already got an expensive and supported solution that works on your mainframe and in your system I just don't see the sense in finding another expensive solution. You could maybe get it done with InDesign server or via a VDP solution, but why? What do you gain with it? Elegance maybe?
    It sounds like something that is $10,000–50,000 deep as is with the combination of hardware and software that you have. Why would you want to dump another $20,000 minimum to get another solution that doesn't bring anything to the table?
    InDesign server is for lightweight servers, not the big iron and will only run on Windows or Mac OS X, not on AIX or any of the big blade solutions as far as I know.

  • Shell scripts to read data from a text file and to load it into a table

    Hi All,
    I have a text file consisting of rows and columns as follows,
    GEF001 000093625 MKL002510 000001 000000 000000 000000 000000 000000 000001
    GEF001 000093625 MKL003604 000001 000000 000000 000000 000000 000000 000001
    GEF001 000093625 MKL005675 000001 000000 000000 000000 000000 000000 000001 My requirement is that, i should read the first 3 columns of this file using a shell script and then i have to insert the data into a table consisting of 3 rows in oracle .
    the whole application is deployed in unix and that text file comes from mainframe. am working in the unix side of the application and i cant access the data directly from the mainframe. so am required to write a script which reads the data from text file which is placed in certain location and i have to load it to oracle database.
    so I can't use SQL * loader.
    Please help me something with this...
    Thanks in advance.

    1. Create a dictionary object in Oracle and assign it to the folder where your file resides
    2. Write a little procedure which opens the file in the newly created directory object using ULT_FILE and inside the FOR LOOP and do INSERTs to table you want
    3. Create a shell script and call that procedure
    You can use the post in my Blog for such issues
    [Using Oracle UTL_FILE, UTL_SMTP packages and Linux Shell Scripting and Cron utility together|http://kamranagayev.wordpress.com/2009/02/23/using-oracle-utl_file-utl_smtp-packages-and-linux-shell-scripting-and-cron-utility-together-2/]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • Regarding custom currency data element issue in custom Table.....

    Hello,
    I am currently working on creation of a Z custom table in SAP. There is data coming from
    mainframe for amount field in the form -9999.9999.
    To store data like this I am creating a custom Z data element with Z domain definition as follows:
    Data type; Curr
    No of characters: 5
    Decimal places: 4
    Sign box is checked.
    Now when I use this Z data elemnt for a firle in custom table, while activating, it asks for table refernce and table field. What do I give it here ?
    Please help.
    Regards,
    Jainam..

    Hi Jainam,
    very basic ABAP knowledge: A field of type CURR isn used to store a currency amount. Every currency field must be connected to a currency key of type CUKY.
    The same concept applies for quantities and units.
    You can spare a lot of trouble if you look at standard tables and programs, copy or use data elements and/or structures from standard.
    If you want to re-invent the world, you may need more than seven days.
    Regards,
    Clemens

  • FM????? Text file to Internal table in Background

    Hi,
    I need to execute my prog in background and as per my req i need to dwnload a file from prsentation server to internal table for processing. I'm not sure whch FM to use to dwnload from text file to internal table. I cannot use GUI_UPLOAD FM for background runs.....pls help
    Thanks in advance

    Chesat,
    You can not work for this requirement.You will have an idea on it.
    Introduction
    The use of FTP from ABAP seems to have been a hot topic on the ABAP Forums of late. I thought I might sit down and document whatever I could find on this subject and share it as a weblog.
    Over the years I have seen lots of different solutions for moving files on and off of a SAP system. I have seen external FTP scripts written in OS shell languages. I have seen full blown custom applications that are made to interface to the SAP system. However I think you will find that most of the technology you need to perform a simple FTP from ABAP is already contained in the standard system. All of my examples and screen shots will be coming from a 46C system.
    SAP's Solution
    If you have ever taken a look at the kernel directory of your SAP system, you might have noticed an interesting little executable: sapftp.exe (the name of the file on Windows SAP Kernels). It is this part of the Kernel that exposes FTP functionality to the ABAP Programming language.
    So you have a suspicion that there is FTP functionality in ABAP, but you’re not quite sure how to use it. Where do you start? I always turn to the Service Marketplace first. A quick search on SAPFTP reveals there is an entire component (BC-SRV-COM-FTP) on the subject. The most general note and our starting place is OSS Note 93042. This note starts off with a nice description of what SAPFTP is: A client RFC application that is accessed via RFC from ABAP. But we also find out that in addition to SAPFTP being part of the kernel, it is also part of the SAPGui. That means that we can perform FTP commands originating from our R/3 Server or from a Client Workstation.
    Well if this solution is accessed via RFC, then we must have to setup some RFC destinations. In fact we have two that we need; SAPFTP for Front-end FTP and SAPFTPA for access on the application server. Luckily we don't even have to mess with setting these RFC destinations up in SM59. SAP has supplied a program, RSFTP005, to generate the destinations for us.
    Now before we go off and start written code on our own to hit these FTP functions, why don't we make sure everything is setup and working. Once again SAP has helped us out by providing us with a test program, RSFTP002. (In case you are wondering the FTP functionality and many other test programs are all contained in SAP Development Class SFTP). When we run this test, we get a set input parameters for the server, username password, etc. We want to start out simple and just make sure we are getting a connection. Therefore we will just execute the pwd command (Print Working Directory).
    Your answer back should look something like this:
    If you are wanting to see a list of FTP commands, try using the command HELP in place of PWD:
    If something did go wrong during the test, I suggest that you active the trace option in SM59 for the FTP Destination. You can then use program RSFTP001 to display the current trace file.
    Programming the FTP
    Not only does the RSFTP002 program give us a test environment, but it also provides us with a programming example. We can see that the FTP functionality is really provided by a set of function modules all within the SFTP Function Group. We have the basic commands such as FTP_CONNECT, FTP_COMMAND, and FTP_DISCONNECT that can be strung together to create a complete file operation action. The FTP_COMMAND Function allows you to issue arbitrary FTP commands as long as the SAPFTP function, the Host, and the Destination server all support the command. Then you have the specialized functions such as FTP_R3_TO_SERVER, FTP_R3_TO_CLIENT, and FTP_CLIENT_TO_R3. This lets you take some data in memory and transfer it someplace else. This has the advantage of not having to write the data to the file system first and not to have to issue any FTP commands. However these functions are also limited to the scope described.
    If you are already familiar with FTP in general, working with these function modules should not seem to difficult. The Connect, Command, Disconnect actions would seem somewhat self explanatory. So instead of looking at the entire program in detail let's focus on two things that may be unfamiliar. First the program starts off with an ABAP Kernel System call to AB_RFC_X_SCRAMBLE_STRING. Well we don't want to pass a potentially sensitive password openly. Therefore the FTP_CONNECT function module requires that the password be encrypted before it receives it. It is this System call that performs that one-way encryption. Now I checked a 620 SP42 system and in this example, SAP has replace the AB_RFC_X_SCRAMBLE_STRING with a function call to HTTP_SCRAMBLE. Unfortunately HTTP_SCRAMBLE doesn't even exist in my 46C system. The only other thing that I wanted to point out about these function calls is the exporting parameter on the FTP_CONNECT. It passes back a parameter called handle. This handle then becomes an importing parameter to all subsequent calls: FTP_COMMAND and FTP_CLOSE. This handle is the pointer to the instance of FTP that we started with the FTP_CONNECT. This assures that we get reconnected to the same FTP session with each command we issue.
    FTP Development
    I thought I would share a few of the things that can be built using this FTP functionality. First off I didn't want a bunch of ABAP programs directly working with the SAP FTP Function modules. As you can see there is already a difference in the examples for encrypting the password between 46C and 620. Therefore I thought it would be best to encapsulate all the FTP function in one custom ABAP OO Class. Not only did I get the opportunity to hid the inner SAP functionality and make it easy to switch out during upgrades, but I also get consistent error handling as well. I accept the User Name, Password, Host, and RFC Destination in during the Constructor of the class. I then store these values away in Protected Attributes. Each function module is then implemented as a Instance Method. The Password encryption functionality is then all tucked away nicely in the class. Also the calling program doesn't have to worry about keeping track of the FTP handle either since it is an instance attribute as well.
    Next I got really carried away. I wanted a way to record entire FTP scripts that could be filled with values at runtime and ran as a step in a background job. My company used to have many interfaces that ran frequently sending files all over the place. We needed a mechanism to monitor and support these file moves. This was really the root of this tool, but it also gives you an idea of how powerful these functions can be.
    Closing
    I hope that anyone interested in FTP from ABAP will find this resource useful. If anyone has any other resources that should be included here, feel free to post them.
    Thomas Jung is an Application Developer for Kimball Electronics Group (www.kegroup.com) and a huge fan of ABAP.
    Comment on this weblog
    Showing messages 1 through 7 of 7.
    Titles Only
    Main Topics
    Oldest First
         New to SAP/ABAP-4
    2005-02-24 13:03:06 Thomas Godfrey Business Card [Reply]
    I've been in IT for over 30 years as a mainframe contract programmer/analyst. Recently a company hired me for my legacy knowledge of there business to become a developer on SAP for these same systems.
    My first task is to develop a generalized ftp application to send data to the mainframe and then on to financial institutions. I have created an ABAP/4 test program with literals for the dest/host etc. And it works fine. I need more detail/guidance in creating the Class/Method/Function you have described to make this parameter driven and callable by other programs. I know this is a lot to ask, any help in pointing me in the right direction would be greatly appreciated. When I mention class creation to the existing staff they all say "Oh, we don't use or know anything about that object oriented stuff, we just right programs."
    Thanks,
    Tom
         New to SAP/ABAP-4
    2005-02-24 13:13:33 Thomas Jung Business Card [Reply]
    "we don't use or know anything about that object oriented stuff" That's something I might have expected to hear 4 years ago. That's kind of like saying that you only want to use half of the programming lanuage (the old half at that).
    However it is true that you have to learn to walk before you run. There are some fundamentals to ABAP that are usefull to have down before you start in with ABAP OO. But I wouldn't let that hold you back for long.
    I'm afraid that I wouldn't be able to teach you everything you would need to know to create a function module or a class in this posting. There was a nice weblog that was just posted the other day that had the steps to create your first simple class. I suggest you start there.
    As far as my FTP class goes, I don't mind sending you the code for the class. My email address is already all over SDN (and spammers' lists) so just send me the address that you want the details sent to. My email is [email protected].
         New to SAP/ABAP-4
    2005-02-24 13:05:42 Thomas Godfrey Business Card [Reply]
    I just read what I typed, I meant "write programs" not "right programs" ... duh
         Good suggestions - now...
    2004-11-24 09:15:27 Jacques Claassen Business Card [Reply]
    ...any chance you've used FTP via an HTTP proxy?
    Any help using the HTTP* functions in the ZFTP function group will be greatly appreciated. Any one?
    Thx
         Good suggestions - now...
    2004-11-24 09:59:11 Thomas Jung Business Card [Reply]
    I'm afraid I haven't done either. However I have used the HTTP client functionality in the WebAS 620 (if_http_client) along with an HTTP proxy. I have an example of this in another weblog.
         Pretty insightful
    2004-11-15 19:27:26 Subramanian Venkateswaran Business Card [Reply]
    Thanks for this weblog, and I can be pretty sure there are some(many) more weblogs in the waiting.
    Regards,
    Subramanian V.
         I have been using a local include ...
    2004-11-15 16:29:39 Swapan Sarkar Business Card [Reply]
    On the other hand I have been using a local include of ZCL_FTP_BASE in my programs for some time. Here's the signature:
    <quote>
    *& Include ZHR9_FTP_CLASSES
    *& Utility class ZCL_FTP_BASE having all the
    functions to upload and download files from an
    FTP server.
    CLASS zcl_ftp_base DEFINITION.
    PUBLIC SECTION.
    Output file type
    TYPES: BEGIN OF t_scratch,
    data(1024) TYPE c,
    END OF t_scratch,
    t_str_tab TYPE STANDARD TABLE OF t_scratch.
    CONSTANTS: co_crlf(2) TYPE x VALUE '0D0A'.
    DATA: status TYPE c VALUE space.
    METHODS: constructor IMPORTING im_user TYPE string im_pwd TYPE string
    im_server TYPE string,
    send_table_data IMPORTING im_file TYPE string
    im_table TYPE t_str_tab,
    get_table_data IMPORTING im_file TYPE string
    EXPORTING ex_table TYPE t_str_tab,
    send_string_data IMPORTING im_file TYPE string
    im_string TYPE string,
    get_string_data IMPORTING im_file TYPE string
    EXPORTING ex_string TYPE string,
    disconnect.
    PRIVATE SECTION.
    DATA: v_user(64) TYPE c,
    v_pwd_clear(30) TYPE c,
    v_pwd(64) TYPE c,
    v_server(30) TYPE c,
    v_filename TYPE rlgrap-filename,
    v_handle TYPE i.
    METHODS: pwd_scramble IMPORTING im_pwd TYPE c.
    ENDCLASS. "ZCL_FTP_BASE DEFINITION
    </quote>
    Showing messages 1 through 7 of 7.
    Pls. mark if this doc. is useful

  • RFC  from Sap R/3 to IBM Mainframe...

    I should create an RFC from R/3 based on Unix sistem/Oracle to a Mainframe system.....
    Any advise on that ?
    I never created rfc like that....
    thanks and regards

    Hi Mauro,
    Below is the steps to connect to an external MS-SQL server from ABAP... similarly, you can explore connecting to a mainframe...
    Regards,
    Raj
    Connecting to an External database from SAP
    <b>Step 1</b>: Create an entry for the External database in DBCON table using Trxn: DBCA.
    Table: DBCON (Description of Database Connections)
    Field Name     Description           Value (For: E.g.:)
    CON_NAME     Logical name for a      RAJ
    database connection     
    DBMS     Database system     MSS
    USER_NAME     Database user     <username>
    PASSWORD     Password for setting up the connection to the database     <pwd>/<pwd>
    CON_ENV     Database-specific information for a database connection     MSSQL_SERVER=depotserver MSSQL_DBNAME=HOF_INDORE
    DB_RECO     Availability type for an open database connect     
    <b>Step 2</b>: Now you can write code to connect to the external database…
    <b>Your Sample code can be something like this……</b>
    FUNCTION-POOL z_houston.                    "MESSAGE-ID ..
    DATA: BEGIN OF wa,
    c_locid(3),
    c_locname(50),
    c_locstate(5),
    END OF wa.
    FUNCTION z_houston_connect.
    ""Local interface:
      EXEC SQL.
        CONNECT TO 'RAJ' AS 'V'
      ENDEXEC.
      EXEC SQL.
        SET CONNECTION 'V'
      ENDEXEC.
    *- Get the data from MS-SQL Server
      EXEC SQL.
        open C1 for
          select
              loc_id,
              loc_name,
              loc_state
          from ho_loc_mast
      ENDEXEC.
      DO.
        EXEC SQL.
          FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_locstate
        ENDEXEC.
        IF sy-subrc = 0.
          PERFORM loop_output.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      EXEC SQL.
        CLOSE C1
      ENDEXEC.
    ENDFUNCTION.
    *&      Form  LOOP_OUTPUT
          Output
    FORM loop_output .
      WRITE: /5 wa-c_locid, 10 wa-c_locname, 65 wa-c_locstate.
      CLEAR wa.
    ENDFORM.                    " LOOP_OUTPUT

  • Tables DBMSHP_FUNCTION_INFO, DBMSHP_PARENT_CHILD_INFO, DBMSHP_RUNS missing

    Background:
    In sqldeveloper 3.1.07 I have a number of views that concatenate the data from several fields to reduce multiple rows to a single row of comma delimited numbers. For example 10 records for Item #1 might contain a list of 10 different assessment files. I reduce them down to A12345, A22637, A32597, A25896, etc. I do the same with other fields, such as mineralization or whatever..
    This system is up on our mainframe and has run perfectly for several years and there has not been a problem generating this report till now. The powers that be have decided to lock down the system and now our report tables cannot be deleted or created as necessary. (The views gather the data, the final result is a table) To modify anything has become a tiresome political issue. However, since I have access to the data and MY code (I was the author and maintainer till now), I exported all the data and code and installed it on my local machine - where it was originally developed and where sqldeveloper was used to generate all the views, etc.
    The Problem:
    To cut to the chase: my concatenation views work perfectly on the mainframe but when I try to run them on my local machine the views are blank. They create properly - no errors, the concatenation function and types compile perfectly - no errors thrown - no messages - no visible warnings - and NO DATA IN THE VIEWS.
    When I finally cllicked on Profiles I found the following WARNING
    *"Required tables DBMSHP_FUNCTION_INFO,DBMSHP_PARENT_CHILD_INFO,DBMSHP_RUNS missing"*
    So my question is -
    1) how do I get these tables installed on my local stand alone computer and
    2) why does this new version of SQLDEVELOPER need them - or to put it in a different way - why is this the first time in 4 years that I need these tables?
    3) why wasnt there an appropriate error message or visible warning.
    Any help would be appreciated. Thank you
    More Background:
    The code for the function and type were borrowed from "somewhere" 4 years ago - the rest is pretty simple. No changes are necessary for any of this as it works perfectly - it is only presented for further information. Database is 11gR2
    The code for the view:
    CREATE OR REPLACE FORCE VIEW "MDD"."Q_AFILES" ("MDD_NO", "AFILE")
    AS
    ( SELECT mdd_no ,
    CONCAT_ALL(CONCAT_EXPR(afile_no, ', ')) AFILE
    FROM mdd_afmddcr
    GROUP BY mdd_no
    The concat function:
    create or replace
    FUNCTION "CONCAT_ALL"(
    ctx IN concat_expr)
    RETURN VARCHAR2 DETERMINISTIC PARALLEL_ENABLE AGGREGATE USING concat_all_ot
    The type:
    create or replace
    TYPE "CONCAT_ALL_OT" AS OBJECT (
    str VARCHAR2 (4000),
    del VARCHAR2 (4000),
    STATIC FUNCTION odciaggregateinitialize (
    sctx IN OUT concat_all_ot)
    RETURN NUMBER,
    MEMBER FUNCTION odciaggregateiterate (
    SELF IN OUT concat_all_ot,
    ctx IN concat_expr)
    RETURN NUMBER,
    MEMBER FUNCTION odciaggregateterminate (
    SELF IN concat_all_ot,
    returnvalue OUT VARCHAR2,
    flags IN NUMBER)
    RETURN NUMBER,
    MEMBER FUNCTION odciaggregatemerge (
    SELF IN OUT concat_all_ot,
    ctx2 concat_all_ot)
    RETURN NUMBER);
    the Type expression:
    create or replace
    TYPE "CONCAT_EXPR" AS OBJECT (
    str VARCHAR2 (4000),
    del VARCHAR2 (4000),
    MAP MEMBER FUNCTION f_map RETURN VARCHAR2);

    >
    The real answer to my question should have simply been - the concat function is not allowed in 11gR2 - LISTAGG s the appropriate replacement. Seems our server is only 10g and that's why it still works there. My local testbed is 11gR2
    >
    Those comments are so far off base I can't even imagine how you arrived at those conclusions.
    1. You never mentioned a 10g system - you talked about a mainframe
    >
    This system is up on our mainframe and has run perfectly for several years
    >
    2. The Oracle concat function is still alive and well in 11g - nothing you posted shows you are using that function
    http://docs.oracle.com/cd/E11882_01/server.112/e10592/functions033.htm#i77004
    >
    Purpose
    CONCAT returns char1 concatenated with char2. Both char1 and char2 can be any of the data types CHAR, VARCHAR2, NCHAR, NVARCHAR2, CLOB, or NCLOB. The string returned is in the same character set as char1. Its data type depends on the data types of the arguments.
    >
    3. The CONCAT_ALL function that you posted is YOUR function, not Oracle's. It is a custom aggregate function written using the Data Cartridge extensions. That function will still work in 11g.
    The concat function:
    create or replace
    FUNCTION "CONCAT_ALL"(
    ctx IN concat_expr)
    RETURN VARCHAR2 DETERMINISTIC PARALLEL_ENABLE AGGREGATE USING concat_all_ot
    ;Your questions were these
    >
    So my question is -
    1) how do I get these tables installed on my local stand alone computer and
    2) why does this new version of SQLDEVELOPER need them - or to put it in a different way - why is this the first time in 4 years that I need these tables?
    3) why wasnt there an appropriate error message or visible warning.
    >
    Providing an answer of 'the concat function is not allowed in 11gR2' to those questions would have been absurd! The concat function has NOTHING to do with your missing tables.
    I told you the reason your tables are missing. They are only created when you run the script I referred you to. Someone ran them on your current system and created hierarchical profiles that used those tables. You DID NOT run that script on 11g so the tables were not created but you tried to reference the profiles that used them and got the error message about the tables being missing.
    All of your questions were answered and the answers have NOTHING to do with concatenation of any type.

  • I m trying to write to a Mainframe file from informatica mapping. I have created the data map for tarrget file and have imported it in informatica designer.After completing the mapping when i try to run it gives me below error. Please help me out in resol

    This is not a PC/PWX problem, but a mainframe security problem. TIDSS01.POS.IBD.DR0100.DAT is not a GDG file name.It might be the base for a GDG. A GDG file name would look something like eitherTIDSS01.POS.IBD.DR0100.DAT(+1)orTIDSS01.POS.IBD.DR0100.DAT.G001V00 So I suspect that you have the wrong file name.Please talk with your mainframe team.

    HI Dan, I am very new to using power exchnage please help me through this issue, Below is the details : My data map name :postest.test1_POS
    Copy book name which is used to create the power exchange Datamap : TIDSS01.ACTRLP.TEST(POSCPY)
    Main frame GDG name : TIDSS01.POS.IBD.DR0100.DAT Below are the Session properties i have set in informatica workflow:Schema Name Override : postest
    Map Name Override : test1_POS
    PWX Partition Strategy : Overrides driven
    Space : CYLINDER
    File Name Override :TIDSS01.POS.IBD.DR0100.DAT(+1)
    I am getting below error: PWXPC_12190
    Message: [ERROR] Transformation [test1_POS]: A permanent error has been encountered in PowerExchange: [
    [Informatica][SCLI PWX Driver] PWX-00267 DBAPI Error. DB_INSERT failed for file postest.test1_POS.
    [Informatica][SCLI PWX Driver] PWX-01279 DBNTC INSERT failed for file postest.test1_POS. Rcs 1274/2019/268.
    [Informatica][SCLI PWX Driver] PWX-01274 DBNTC INSERT Failed for file postest.test1_POS, rcs 260/2019/268.
    [Informatica][SCLI PWX Driver] PWX-02019 SQL insert failure. SQLCODE = 268.
    [Informatica][SCLI PWX Driver] PWX-00268 DBAPI Error. DB_OPEN failed for file TIDSS01.POS.IBD.DR0100.DAT.
    [Informatica][SCLI PWX Driver] PWX-00220 DYNALLOC failed for file TIDSS01.POS.IBD.DR0100.DAT RCs = 9700/0.
    [Informatica][SCLI PWX Driver] PWX-00221 DATA SET: TIDSS01.POS.IBD.DR0100.DAT WITH RETURN CODE 08 REASON CODE 00   
    [Informatica][SCLI PWX Driver] PWX-00221 RACF FUNCTION: RACDEF FOR   
    [Informatica][SCLI PWX Driver] PWX-00221 IGD308I DATA SET ALLOCATION REQUEST FAILED -   
    [Informatica][SCLI PWX Driver] PWX-00221 IKJ56893I DATA SET TIDSS01.POS.IBD.DR0100.DAT NOT ALLOCATED+   
    [Informatica][SCLI PWX Driver] PWX-07404 Permanent error set by Open call on file "TIDSS01.POS.IBD.DR0100.DAT" because dynamic allocation failed. rc=4
    [Informatica][SCLI PWX Driver] PWX-07515 Insert call for table postest.test1_POS met a permanent error. Return codes 267 2019 268.
    ]

Maybe you are looking for