ibm-midrange

Why am I getting a “[SQL0802] Data conversion of data mapping error” exception?

南楼画角 提交于 2019-11-28 01:54:49
I am not very familiar with iseries/DB2. However, I work on a website that uses it as its primary database. A new column was recently added to an existing table. When I view it via AS400, I see the following data type: Type: S Length: 9 Dec: 2 This tells me it's a numeric field with 6 digits before the decimal point, and 2 digits after the decimal point. When I query the data with a simple SELECT ( SELECT MYCOL FROM MYTABLE ), I get back all the records without a problem. However, when I try using a DISTINCT , GROUP BY , or ORDER BY on that same column I get the following exception: [SQL0802]

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

↘锁芯ラ 提交于 2019-11-27 18:09:06
问题 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

Connect PHP to IBM i (AS/400)

我的梦境 提交于 2019-11-27 17:08:44
问题 I've got an upcoming project wherein I will need to connect our website ( PHP5/Apache 1.3/OpenBSD 4.1 ) to our back-end system running on an iSeries with OS400 V5R3 so that I can access some tables stored there. I've done some checking around but am running into some roadblocks. From what I've seen the DB2 extensions and DB2 software from IBM only run under Linux. I've tried compiling the extensions with all the software from IBM and even tried their precompiled ibm_db2 extension with no luck

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

北战南征 提交于 2019-11-27 16:51:43
问题 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

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

拟墨画扇 提交于 2019-11-27 14:00:24
问题 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? 回答1: 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

Connect to AS400 using .NET

前提是你 提交于 2019-11-27 09:45:26
问题 I am trying to build a .NET web application using SQL to query AS400 database. This is my first time encountering the AS400. What do I have to install on my machine (or the AS400 server) in order to connect? (IBM iSeries Access for Windows ??) What are the components of the connection string? Where can I find sample codes on building the Data Access Layer using SQL commands? Thanks. 回答1: You need the AS400 .Net data provider. Check here: https://www-01.ibm.com/support/docview.wss?uid

Linux odbc Fatal error: Allowed memory size

断了今生、忘了曾经 提交于 2019-11-27 07:14:02
问题 I currently have some problems to set up an intranet with an odbc link beetween an AS400 (iseries V6R1) and a Debian I use the iseriesAccess7.1 odbc driver 64bits, unixODBC2.3.1 and php5.4 with unixODBC support. My link seems to be good because I can connect to my DataBase using the isql command (which is part of unixODBC) and execute some SQL queries but it's impossible to read records in the database using a php script. When I try to launch a little script on my intranet I get the following

Equivalent of LIMIT for DB2

▼魔方 西西 提交于 2019-11-27 06:46:47
How do you do LIMIT in DB2 for iSeries? I have a table with more than 50,000 records and I want to return records 0 to 10,000, and records 10,000 to 20,000. I know in SQL you write LIMIT 0,10000 at the end of the query for 0 to 10,000 and LIMIT 10000,10000 at the end of the query for 10000 to 20,000 So, how is this done in DB2? Whats the code and syntax? (full query example is appreciated) Joe Using FETCH FIRST [n] ROWS ONLY : http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.perf/db2z_fetchfirstnrows.htm SELECT LASTNAME, FIRSTNAME, EMPNO, SALARY FROM EMP

Connecting to IBM AS400 server for database operations hangs

只谈情不闲聊 提交于 2019-11-27 05:58:36
问题 I'm trying to talk to an AS400 in Python. The goal is to use SQLAlchemy, but when I couldn't get that to work I stepped back to a more basic script using just ibm_db instead of ibm_db_sa. import ibm_db dbConnection = ibm_db.pconnect("DATABASE=myLibrary;HOSTNAME=1.2.3.4;PORT=8471;PROTOCOL=TCPIP;UID=username;PWD=password", "", "") #this line is where it hangs print ibm_db.conn_errormsg() The problem seems to be the port. If I use the 50000 I see in all the examples, I get an error. If I use 446

Convert String from ASCII to EBCDIC in Java?

爱⌒轻易说出口 提交于 2019-11-27 01:36:27
I need to write a 'simple' util to convert from ASCII to EBCDIC? The Ascii is coming from Java, Web and going to an AS400. I've had a google around, can't seem to find a easy solution (maybe coz there isn't one :( ). I was hoping for an opensource util or paid for util that has already been written. Like this maybe? Converter.convertToAscii(String textFromAS400) Converter.convertToEBCDIC(String textFromJava) Thanks, Scott JTOpen , IBM's open source version of their Java toolbox has a collection of classes to access AS/400 objects, including a FileReader and FileWriter to access native AS400