ibm-midrange

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

雨燕双飞 提交于 2019-12-06 18:34:58
问题 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

Programming IBM iSeries API QUSLSPL in C#

半腔热情 提交于 2019-12-06 13:27:44
问题 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;

Check for System DSN and create System DSN if NOT Existing (iSeries Access ODBC Driver)

可紊 提交于 2019-12-06 12:54:41
can someone please help me with this? i need to check through the System DSN for my ODBC connection to the AS400 servier and create a System DSN if a particular one does not exist. i've tried googling and have not been able to find anything good for me. btw, i am quite new to programming. any help will be much appreciated. thank you After going through the few less complicated examples available online, this is what i managed to come up with (and it works fine for me). using System; using System.Runtime.InteropServices; public class ODBC_Manager { [DllImport("ODBCCP32.dll")] public static

Subversion for iSeries

落花浮王杯 提交于 2019-12-06 10:05:42
We need info about Subversion for iSeries (OpenSource version). Has anyone used it for production systems? Thanks, Sam Sam, How are you planning to use it? If you want to connect WDSC or RDi to it for project management then that could work. Unfortunately if you want to use it on the green screen it may not do it for you since iSeries source code is stored in database files typically rather than text files in the IFS. All that SoftLanding has done is port it, not add any additional utilities for managing iSeries source code. Therefore by itself the main use is maybe managing files in the IFS

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

雨燕双飞 提交于 2019-12-06 05:00:38
问题 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

CL based method for adding HTTP Servers on IBMi system

笑着哭i 提交于 2019-12-06 03:45:01
I have a need to develop a CL script to quickly deploy a web application across a set of IBMi systems. Right now, I have everything set up where I can create the directories, deploy the configurations (with the correct modifications) and place the files all from the CL script, but I cannot get it to automatically create and start the HTTP Server. All of the documentation I can find requires that the servers be set up through the "IBM Web Administration for iSeries interface." Which is pretty much useless if I am trying to automate the entire system. The only CL commands I can find which are of

DB2 - How to run an ad hoc select query with a parameter in IBM System i Access for Windows GUI Tool

我怕爱的太早我们不能终老 提交于 2019-12-05 22:45:56
I would like to run some ad hoc select statements in the IBM System I Navigator tool for DB2 using a variable that I declare. For example, in the SQL Server world I would easily do this in the SQL Server Management Studio query window like so: DECLARE @VariableName varchar(50); SET @VariableName = 'blah blah'; select * from TableName where Column = @VariableName; How can I do something similar in the IBM System I Navigator tool? Brian I ran across this post while searching for the same question. My coworker provided the answer. It is indeed possible to declare variables in an ad hoc SQL

SQL differences for DB2 versions

余生长醉 提交于 2019-12-05 18:45:01
We are developing software that generates and executes SQL queries for Oracle and SQL Server using ODBC drivers . We are researching the possibility to expand to DB2 , but I read that there are several versions available. DB2 for LUW , for iSeries and for z/OS. Are there any differences in SQL of SQL/PLSQL functionality in these versions? As a ISV, is it possible to get a development environment for DB2 for iSeries or z/OS As many other answers already say, there are differences between the members of the DB2 family. All DB2 are SQL-99 complaint, and each member has specific features of the

DB2/iSeries SQL clean up CR/LF, tabs etc

百般思念 提交于 2019-12-05 12:38:50
I need to find and clean up line breaks, carriage returns, tabs and "SUB"-characters in a set of 400k+ string records, but this DB2 environment is taking a toll on me. Thought I could do some search and replacing with the REPLACE() and CHR() functions, but it seems CHR() is not available on this system (Error: CHR in *LIBL type *N not found). Working with \t, \r, \n etc doesn't seem to be working either. The chars can be in the middle of strings or at the end of them. DBMS = DB2 System = iSeries Language = SQL Encoding = Not sure, possibly EBCDIC Any hints on what I can do with this? If you

Does git gets installed in IBM/AS400

北城余情 提交于 2019-12-05 10:53:31
I have PHP on running on an AS400. Can Git be also be installed on an AS400? I'd like to use it to maintain version control. The YiPs site has instructions on how to get it running in PASE. You can find it here: http://youngiprofessionals.com/wiki/index.php/PASE/OpenSourceBinaries Scroll to the middle of the page or search the page for "Git". UPDATE I've since written this article describing how to install Git on IBM i. A friend of mine wrote an unpublished article on installing Git on IBM i. I need to encourage him to publish it. I'm running git on my IBM i since over a year now. As Alan