ibm-midrange

how to learn RPG/400

萝らか妹 提交于 2019-12-05 00:35:29
问题 I heard about RPG programming from my lecturer. I would like to give it a try. The problem with it is that, how I do the programming? I don't know the OS and the IDE to suit the needs. Any help? 回答1: Thank you for your interest in RPG. RPG runs on an IBM i (aka AS/400, iSeries, Systemi) system. This is not a server you can easily buy on your own. The starting price is around $15,000 on up to millions. However, you can pay for access to a system or can try out the system using a free host.

How to call a stored procedure in IBM System i Access for Windows GUI Tool

杀马特。学长 韩版系。学妹 提交于 2019-12-04 23:58:03
I would like to test a DB2 stored procedure running on an AS400 system. I have the IBM System i Access for Windows installed and can run SQL commands against the DB2 database. My question is: What is the syntax to execute a stored procedure that takes in a parameter and returns a result as an output parameter and print the value to the screen? Just to clarify: I am not asking how to call the proc in code. I want to execute the proc and see the results in the gui tool (which is similar to SQL Enterprise Manager). use the keyword call and pass in the parameters. call myStoredProc(parm1, parm2, ?

NHibernate - Why does Delete() call fail to delete but delete through HQL works?

只愿长相守 提交于 2019-12-04 21:43:33
Considering the following code blocks, why does call to HQL work but call to delete() not work? As a background, I'm using NHibernate over IBM.Data.DB2.Iseries driver. Come to find out, journaling on the AS400 is turned off so I can't use transactions. I'm not the AS400 admin or know anything about it so I don't know if having journaling turned off (not opening transactions) is causing this problem or not. Do I absolutely need the ability to open transactions if I'm calling Delete() or other NHibernate functions? //This Does not work - no error and no deletes public static void Delete(Object

Programming IBM iSeries API QUSLSPL in C#

别说谁变了你拦得住时间么 提交于 2019-12-04 20:14:19
Can somebody help me with the complete c# code to call QUSLSPL with SPLF0200 format. I am able to call the program but don't know how to capture/read through the output. I am new to this area. Appreciate your help. Here is my code. cwbx.ProgramParameters parameters = new cwbx.ProgramParameters(); //user space name parameters.Append("usrspcnam", cwbrcParameterTypeEnum.cwbrcInout, 20); StringConverter stringConverterUsrSpaceNm = new cwbx.StringConverter(); stringConverterUsrSpaceNm.Length = 20; parameters["usrspcnam"].Value = stringConverterUsrSpaceNm.ToBytes("HRAHMAN QGPL "); //Format

Memory leaking without objects growing in number or size

假装没事ソ 提交于 2019-12-04 16:33:16
问题 On an IBM iSeries system, I have a Java program running - an application server with a web server component, all in-house developed. When running on the 32 bit or 64 bit J9 JVM (IBM Technology for Java) I have symptoms of a memory leak. Note that no problems are seen running this software on the iSeries classic JVM, on multiple Sun/Oracle JVMs and on Linux JVMs. Heck, I routinely leave the identical software running for weeks at a time on my wife's entry-level laptop while I am working on my

DB2 400 drop column

情到浓时终转凉″ 提交于 2019-12-04 10:31:25
问题 I want to drop a column called id which is an auto incrementing PK. The SQL: alter table "CO88GT"."XGLCTL" drop column id cascade; And I get: Error: [SQL0952] Processing of the SQL statement ended. Reason code 10. SQLState: 57014 ErrorCode: -952 I could be wrong but I think it has something to do with preventing the table from losing data. To get around this issue I need to create a new table without the column and copy the data from the old table into the new table and then replace the old

Why can't my As400 select from a newly created member alias?

和自甴很熟 提交于 2019-12-04 10:00:02
I have set up the code as described in this question . Creating an alias works, as well as dropping it. For members that I have created myself, this is working correctly, but for existing members I get the following error when selecting from the alias: SQL State: 42704 Vendor Code: -204 Message: [SQL0204] MyMemberName in MyLib type *FILE not found. Cause . . . . . : MyMemberName in TPLWHS type *FILE was not found. If the member name is *ALL, the table is not partitioned. If this is an ALTER TABLE statement and the type is *N, a constraint or partition was not found. If this is not an ALTER

Spring component-scan broken in osgi container

*爱你&永不变心* 提交于 2019-12-04 08:37:15
I'm trying to integrate spring DI into an existing jaxws project. I've got this working locally on tomcat but when I deploy to the remote container it doesn't appear to do the classpath scanning. I can see in the logs that on tomcat it registers my @Components as beans but on the remote server they're not mentioned at all. What I do see is the stacktrace below. It looks like it's down to the quirky web container I have to use. It's the "integrated application server for IBM i". http://www-03.ibm.com/systems/i/software/ias/ I believe this is built on the eclipse architecture and when you

How to do SQL select top N … in AS400

半腔热情 提交于 2019-12-04 08:09:41
问题 How do you perform a Select top N * from as400table type query against an as400/db2 database 回答1: Select col1,col2 from as400table where col1='filter' order by col1 fetch first N row only Remember to set an ORDER BY clause, because DB2 does not guarantee that the rows returned by FETCH FIRST N ROW ONLY are always the same N. 回答2: Strictly, there is no equivalent of TOP N in DB2. SELECT 1 FROM sysibm.sysdummy1 WHERE EXISTS (SELECT 2 FROM sysibm.sysdummy1) FETCH FIRST ROW ONLY compiles and runs

Odbc connection string format, not finding files

孤者浪人 提交于 2019-12-04 03:36:16
问题 This is kind of a 'double' question that might have a single answer. I'm working with an Odbc Connection with an AS/400, with my connection string as follows: driver={iSeries Access ODBC Driver}; system={0}; uid={1}; pwd={2}; DefaultLibraries=*USRLIBL; I'm able to connect to the system fine. *USRLIBL contains all the necessary libraries from the user (which is of the type 'API only' which has access to all user libraries). However, when I try to access certain ERP libraries, it says they can