ibm-midrange

Invoking AS400 RPG From Java

心不动则不痛 提交于 2019-11-29 09:01:06
I have a very limitied (0) knowledge on AS400 and RPG. But we have a urgent requirement where we need to invoke a RPG program from a java class. So I found that we can achieve it through JTOpen. But I am stuck at declaring the ProgramParameter list. I have the following information about RPG Program Program name: ZM30000R Parameters: Branch 7,0 (Numeric) Account type 2 (01-cheque,02 savings) Account Number 20 (character) Error code 7 (character) DR/CR indicater 1 (character D,C) But no clue about what is the intput and output .How to declare the ProgramParameter. I have done as below. I cannot

SQL7008 Error - Workaround?

為{幸葍}努か 提交于 2019-11-29 07:10:38
I'm using the JTOpen JDBC driver for a DB2 Universal database. I have very little experience with SQL beyond simple statements. From this question , I see that the error I'm getting (SQL7008) is thrown when trying to "insert/update rows in a non-journaled table during a transaction" (paraphrased). According to the project lead, our DB is not journaled and won't be any time soon (don't ask me why, I'm not the DBA). However, I'm working on a project where being able to commit everything in one go (rather than AutoCommit-ing each time an execute is called) is nearly necessary (not totally

Connecting to an IBM AS/400 DB2 Database

試著忘記壹切 提交于 2019-11-29 05:12:05
I'm trying to connect to a client's IBM AS/400 DB2 Database from an Ubuntu Server using PHP's ODBC Driver . I have the unixODBC installed as well. My odbcinst.ini looks like this: [IBM DB2 ODBC DRIVER] Description = ODBC 5.1 Driver for Database Driver = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so FileUsage = 1 And my odbc.ini looks like this: [IBM DB2 ODBC DRIVER] Driver = IBM DB2 ODBC DRIVER Description = ODBC 5.1 Driver DSN Now, my code to connect is: $server = '12.345.678.90' //IP $port = '446' //PORT $username = 'my_username'; $password = 'my_password'; $connect = odbc_connect("DRIVER =

Accessing RPG on iSeries from Java

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 04:55:57
Has anyone had good experiences of talking direct to RPG programs running on a V5R4 iSeries machine from Java? If so, what are the recommendations of the community, and what pitfalls should I try to avoid? From the various pieces of literature and spike solutions I have attempted it looks as though we can use ProgramCallBeans (either through PCML or xPCML), talking to the DataQueues (for asynchronous comms), or even JNI. I'm looking for something that's robust, performant, quick to develop, easy to maintain, and easy to test (aren't we all!?!). I suggest using IBM's Java Toolbox for Java. Put

SSIS: Just started getting a “Key not valid for use in specified state.” error on my scheduled SSIS package

我怕爱的太早我们不能终老 提交于 2019-11-29 04:12:59
I have 2 scheduled jobs on my SQL Server 2005 machine that are scheduled to run each morning (around 2:00 AM). These jobs have worked fine (mostly) for years and although I've had a few hiccups that I've had to work through this problem is completely stumping me. Two mornings ago, one of my packages started reporting the following error: Executed as user: [Service Acount]. ...n 9.00.4035.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 1:15:01 AM Error: 2012-10-17 01:15:03.98 Code: 0xC0016016 Source: Description: Failed to decrypt protected XML node "DTS

Why do I get the error “Cannot store non-PrivateKeys” when creating an SSL Socket in Java?

五迷三道 提交于 2019-11-29 02:27:28
I am working on an older IBM iSeries (IBM-i, i5OS, AS/400, etc), with a Java 5 JVM (Classic, not ITJ J9) on O/S version V5R3M0. Here is the scenario in a nutshell: I created a key-store of type JKS using Portecle 1.7 (Note: I did try converting my key-store to JCEKS but that was rejected as an unsupported format, so it appears that JKS is the only option with the iSeries machine (at least the version I am on). I then created a key-pair and CSR and sent the CSR to Thawte to be signed. I imported the signed certificate from Thawte successfully using the PKCS#7 format to import the entire

Is it possible to use Entity Framework with a DB2 iSeries AS/400

本秂侑毒 提交于 2019-11-28 21:37:13
Im new to Microsoft entity framework and wonders if it's possible to use this framework with a DB2 iSeries AS/400? Are there any problems at all when working with this kind of "legacy systems"? and the EF framework? You can use Entity Framework to connect to an ISeries DB2 database one of three ways: 1. If you purchase the license to IBM's DB2 Connect product. The license is around $12,000 which is outrageous. Also, there is not enough good documentation for how the DB2 Connect product actually works, how it installs, or its possible benefits. I've contacted one of their resellers to get a

DB2 Using LIMIT and OFFSET

二次信任 提交于 2019-11-28 12:21:22
I am developing a Java Web service allow paging when fetching big data set from a DB2 Database on a IBM Mid Range Machine (AS400). For example; if there are 10000 records in a data set, I want to fetch them in 1000 blocks at a time. I found this article that explains that I can use LIMIT, and OFFSET. But I need to set the DB2_COMPATIBILITY_VECTOR variable to MYS . Now I have been googling and saw you can use the db2set to set this variable. But I have not been able to find out where to type this command in? I am developing on a windows machine, and I have the iSeries installed, and I have

Parameterize FETCH FIRST n ROWS ONLY in DB2

做~自己de王妃 提交于 2019-11-28 09:24:50
问题 I'm trying to do the following: select * from table fetch first @param rows only @param is an int. DB2 would not have it. I've heard of concatenating it with || , but I can't seem to get that to work. Anyone have experience with this? (PS I saw a similar question) but didn't understand his approach using ':1'. 回答1: You could try the following: select t.* from (select r.*, row_number() over() as row_num from table r) as t where row_num <= @param 回答2: Try this, where V_NBR is your passed in

Invoking AS400 RPG From Java

半世苍凉 提交于 2019-11-28 02:21:41
问题 I have a very limitied (0) knowledge on AS400 and RPG. But we have a urgent requirement where we need to invoke a RPG program from a java class. So I found that we can achieve it through JTOpen. But I am stuck at declaring the ProgramParameter list. I have the following information about RPG Program Program name: ZM30000R Parameters: Branch 7,0 (Numeric) Account type 2 (01-cheque,02 savings) Account Number 20 (character) Error code 7 (character) DR/CR indicater 1 (character D,C) But no clue