Все вопросы: [ibm-midrange]
108 вопросов
Обработка XML из таблицы (по одной строке в каждой записи)
IBM обеспечивает подключение к базе данных только с iSeries, поэтому мне нужно обойти эту проблему, используя таблицу для передачи данных из iSeries в .NET.Программа RPGLE создает XML-документ в таблице для обработки на стороне .NET.Дело в том, что на одну запись в таблице приходится одна строка...
Проблема передачи файлового канала NIO в iSeries
У меня проблема с некоторым кодом Java NIO, запущенным в системе iSeries (JDK 1.5).В основном код разбивает файл на части, часть файла и другие файлы меньшего размера.Этот же код некоторое время без проблем работал на других компьютерах iSeries.Вот фрагмент кода: //copy original data file con...
Доступ к AS400 / DB2 с SQL 2008 Express
Я пытаюсь добавить AS400 в качестве связанного сервера в SQL 2008 Express, чтобы получить доступ к некоторым таблицам в базе данных iSeries.Я перепробовал всех поставщиков OLE с множеством разных строк, и мне не удалось установить соединение.Возможно ли это даже с этой версией SQL? Спасибо
NHibernate - Почему при вызове Delete () не удается удалить, но удаление через HQL работает?
Учитывая следующие блоки кода, почему вызов HQL работает, а вызов delete () не работает?В качестве фона я использую NHibernate поверх драйвера IBM.Data.DB2.Iseries.Чтобы узнать, ведение журнала на AS400 отключено, поэтому я не могу использовать транзакции.Я не являюсь администратором AS400 и нич...
Есть ли в ILE RPG числовой тип, который будет переполняться без сбоя моей программы?
Я ищу числовой тип в ILE RPG, который будет "оборачиваться" при переполнении, аналогично тому, как это сделал бы C int.Есть такое?
Распаковка AS400 в десятичном формате (BCD) - возможно, проблема с преобразованием EBCDIC?
Я получаю файлы, переданные из AS / 400 в нашу Windows (SBS 2003) через FTP. Файлы представляют собой данные фиксированной ширины. Текст выглядит нормально, но некоторые поля содержат десятичные дроби, которые при распаковке дают неверные значения. Я предполагаю, что происходит неявное преобразо...
Ошибка связи между ASP.NET и AS / 400
При попытке доступа к серверу AS / 400 из веб-службы ASP.NET в журнале появляется следующее сообщение: 0x00000D98 0x00000001 14.10.2009 16: 16: 08.734375: iDB2ConnectionFailedException (9119245) .Пусто .ctor (System.String): iDB2ConnectionFailedException выброшено 0x00000D98 0x00...
How can I get the EBCDIC value of a character in RPGLE?
I need to have some way of converting single characters in RPGLE into integers - does anyone know a good way? It has to work for all possible inputs and ideally provide a different integer for each input - at the very least it must provide a different value for all common inputs. I don't care par...
Add a column to a DB2/400 table with a specific ordinal position
Is there an SQL command on the AS400/iSeries/System-i/whatever to add a column to a table in a specific ordinal position, or moving an existing column to a different position?
refactoring in iSeries (RPG), is it realistic
Implementing agile in projects requires the ability to do refactoring. It is not really a must, but code refactoring has proven to be a good engineering practice. In an agile (Scrum) project on the iSeries platform, which requires development (new code and modifications to legacy code) in RPG, R...
External stored procedure on IBM i
I am trying to create an external stored procedure on an IBM i (V5R4), but I'm getting an error when I try to run it. All I want to do is call an RPG program, without passing any parameters or worrying about returning any data. Sorry, I'm not an RPG programmer or an expert on IBM i, so I could b...
How can I perform an SqlBulkCopy (equivalent) using an ODBC connection in C#?
I am working on a project where I need to extract data from a MSSQL database table, and then insert the data into a table of the same structure on an AS400. The SqlBulkCopy would be the ideal candidate for this operation, but fails (understandably) because the AS400 uses an ODBC connection. Any...
How long can memory leaks persist in RPGLE programs?
I'm putting into production some RPGLE code which uses %alloc and dealloc to allocate memory. Programmers should be able to ensure there are no resulting memory leaks but I'm worried about what happens if they don't. My question is: if programmers mess up and there are memory leaks then when w...
Conversion error on host variable or parameter *N
I am getting this Error on Insert statement to AS400 database, using Java with JDBC.
Simplest way to access a DB2 database on iSeries from a Linux (ubuntu) machine?
I would like to run an SQL query on an iSeries (...or "System i" or "AS/400"...) machine as part of a Nagios check, but haven't found a suitable way of interfacing the database yet. IBM suggests using the ODBC driver of System i Access for Linux with unixODBC, but since both systems are new to ...
Class generation from database schema
I've dug around through previously asked questions and have had no luck finding a duplicate. I would love to generate basic entity classes in .Net from a DB2 schema (using the iSeries OLEDB provider). Is there any simple way to do this? I've looked into MyGeneration and CodeSmith and it just s...
Conditional Compilation in RPG(LE)
Can I include a section of code based on whether a variable is defined in my program, or is the preprocessor completely unable to access this information, only compilation conditions? I.e. I'm after something like: /IF DEFINED(myVariable) D myOtherVariable S like(myVariabl...
Calling a remote Java program on iSeries from RPG
I'm looking to invoke a Java program from RPG running on Iseries V5r4. The remote program is a web service client (performing a postcode lookup), running in Websphere. Ideally I'd like to call it direct from RPG? is that possible? or do I have to create a java program to run on the iSeries and...
How do I register IBM.Data.DB2.iSeries as a linked server provider in SQLServer?
I have connected to a DB2 database on our AS400 through SQL Server 2005 (linked server) using the IBMDA400 (OLEDB) provider. However, I recently discovered that I can connect my .Net apps using the IBM.Data.DB2.iSeries.dll provider so I would like to connect to the AS400 using my IBM.Data.DB2.iSe...
Create a Spooled File from Java with a specified Job name on iSeries
Is there a way to specifiy the JOB name when creating a spooled file? So that my created s.f. doesn't have the default "QPRTJOB". My method that creates a spooled file with the default QPRTJOB job: public static SpooledFile createSpoolFile( com.ibm.as400.access.AS400 as, PrinterFile pPrint...
Add a field description to a DB2/400 file
I have a set of files in a library on an AS/400/iSeries/System-I/whatever-IBM-wants-me-to-call-it-these-days which I do not have DDS for (created in SQL I gather) but to which I would like to add field descriptions. I cannot find a way to do this on the 400. Does anyone know how I can add fie...
DB2 AS400 Java function always returns same value
I am writing a user defined function to DB2 on AS/400 in Java and the strangest thing happen.. I am always getting the same result from the function even when i am changing it, even if i am dropping it and create it again and even when i specify NOT DETERMINISTIC.. Does any one have ever encounte...
AS400 Java Java program completed with exit code 1
Every attempt to run a java program on our AS400 (I5 OS VR4, JVM 1.4.2) result in the same error message: Java program completed with exit code 1 Any suggestions?
Commitment control error on iSeries procedure call
I have an intermittent problem when calling an iSeries stored procedure (consisting of various CL & RPG programs). The error is:- Commitment definition *N not valid for open of QAOSSI12 Error occurred while opening file QAOSSI12. As mentioned the problem does not always occur but occ...
Unable to connect to AS400
When I am trying to connect to AS400 using C#.NET, it's giving me error: IBMDA400 is not registered on local Machine Can anyone please explain me about this?
C#: Convert AS/400 date into DateTime
Dates in DB2 AS/400 are an integer, containing the number of days since sometime around the turn of the 20th century. Question 1: Does anyone know the IBM DB2/AS400 "zero" date? e.g.: 12/30/1899 12/31/1899 1/1/1900 Question 2: Given an "AS/400" date (e.g. 40010) how can you convert that to a...
What's the equivalent of Oracle's to_char in AS400 DB2 SQL syntax?
I'm trying to display a DATE field fetched from a DB2 instance. In Oracle I'd use something like: to_char(v_date, 'YYYY-MM-DD') What's the equivalent in AS400 DB2?
SQL-инъекция - нет опасности при вызове хранимой процедуры (в iSeries)?
Я немного поискал, но у меня есть конкретный вопрос по SQL-инъекции, и я надеюсь, что смогу получить какие-то данные, так как считаю, что могу ошибиться концом ручки, чтобы сделать очистку данных поля и т. p> У меня есть Java-программа, вызывающая хранимую процедуру в iSeries. За кулисами х...
iSeries DB2 - Есть ли способ выбрать значение идентификатора из оператора вставки?
Я знаю, что мы, бедняги, редко используем iSeries для DB2 / AS400, но я надеюсь, что кто-нибудь сможет ответить на этот простой вопрос. Есть ли способ вернуть значение идентификатора из оператора вставки без использования двух строк SQL? Мне приходится использовать встроенный SQL в C # для выпол...
Копировать хранимые процедуры SQL между источниками данных / схемами?
Я создал хранимые процедуры SQL в нашей схеме разработки, и они отлично работают. Теперь перед нами стоит задача перенести наши коды разработки на производственные. Как скопировать эти хранимые процедуры из одной схемы в другую? Нужно ли мне перекомпилировать целые процедуры по целевой схеме? Ил...