ibm-midrange

Need help to get data out of an as400 system

ε祈祈猫儿з 提交于 2019-12-23 02:46:22
问题 I have a plenty of tables and databases. most of the tables have empty spaces and no table col has a descriptive name.. can somebody help me to get the data out of there? thanks 回答1: Take a look at this link For documentation purposes here is the key information. If you need to search one field or one file, follow this code on SQL: Select * from Syscolumns or Select * from Systables I believe the specific library for this is QSYS2 . Update to add directions with F.R.O.G. : Connect to your

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

风流意气都作罢 提交于 2019-12-22 11:28:09
问题 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 回答1: 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;

Spring component-scan broken in osgi container

无人久伴 提交于 2019-12-21 17:04:40
问题 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

Non-busy blocking Queue Implementation in C

南楼画角 提交于 2019-12-21 05:58:07
问题 I am trying to implement a queue in C that causes a process to non-busy wait until there is an element in the queue to consume. I have tried two different things to try to achieve this. The first problem I have is if the enqueue/dequeue operations have if conditionals to check the bounds( if (q->count == QUEUESIZE) ), the call to sem_wait will return immediately because no other process has obtained a lock. If I change the conditional to while (q->count == QUEUESIZE), I believe the consumer

FtpWebRequest Connecting to an AS/400

淺唱寂寞╮ 提交于 2019-12-20 04:46:14
问题 I need to download some files via ftp from an old AS/400 server. My code looks more or less like: FtpWebRequest _request = (FtpWebRequest)WebRequest.Create("ftp://ftpaddress/FOO.CSV"); _request.Credentials = new NetworkCredential(_ftpUsername, _ftpPassword); _request.Method = WebRequestMethods.Ftp.DownloadFile; FtpWebResponse response = (FtpWebResponse)_request.GetResponse(); However, an exception is being thrown with the message: 501 Character (/) not allowed in object name. I'm guessing the

Apache Camel endpoint to write a file AS400 FTP :

别说谁变了你拦得住时间么 提交于 2019-12-20 03:37:10
问题 I am trying to write a file to AS400 FTP via camel endpoint as below ftp://user@host:21/QSYS.LIB/XINFT.LIB?password=password&passiveMode=true ftp://user@host:21/QSYS.LIB/XINFT.LIB?password=password But the write operation fails with the following exception Cannot change directory to: QSYS.LIB. Code: 550. Processed by failure processor: FatalFallbackErrorHandler[Pipeline[[Channel[Wrap[com.privasia.edi.core.routing.exception.CustErrorHandler@2003b7bd] -> com.privasia.edi.core.routing.exception

odbc_prepare gives Fatal error: Allowed memory size exhausted

人走茶凉 提交于 2019-12-20 03:36:08
问题 I have a Debian server (64 bits) and I want to connect it to a AS400's database through PHP. I have installed the IBM i Access for Linux and unixodbc. I have followed this tutorial: https://www.albertopicado.es/conexion-odbc-con-base-de-datos-db2-en-un-servidor-ibm-iseries/ although it's in spanish you can see the proccess I have followed. The thing is that I can make a simple connection like: $server= 'DRIVER={DRIVER_NAME};DATABASE=DATABASENAME;SYSTEM=IP;HOSTNAME=IP;PORT=NUMBER_OF_THE_PORT

Database: SUBSTRING upto first occurence of character

点点圈 提交于 2019-12-19 10:58:29
问题 i have string type abc_01, abcd_01 or 02 now i want the substring upto _ ie abc_,abcd_ etc. I am using db2 as400 .Please suggest the processing through RIGHT or LEFT function 回答1: Use the POSITION built-in function. The format is either: POSITION--(--search-string--IN--source-string--) or POSSTR--(--source-string--,--search-string--) I also suggest using a CASE structure to check for when there is no _ or if it's at the beginning or end. Here is an example. We'll assume, for the sake of the

Capturing onkeydown in Javascript

狂风中的少年 提交于 2019-12-19 04:44:13
问题 I have a web front-end to an AS/400 CGI application which allows the use of some of the F1 - F24 keys (depending on the page) as well as page-up, page-down etc - these are passed to the underlying application which handles them appropriately. For instance, on a given page, a user could either press the F3 button or press the F3 key - both of them will set the (hidden) CmdKey variable to have a name of '_K03' and a value of 'F03'. The button handling is simple and has no problems. To handle

What is the best IDE to use for programming in RPGILE for the AS/400 ? Can you connect to a 400 using Visual Studios IDE?

爱⌒轻易说出口 提交于 2019-12-19 03:20:54
问题 What is the best IDE to use for programming in RPGILE for the AS/400 ? Can you connect to a 400 using Visual Studios IDE? I'm a C# programmer who fell in love with Visual Studios and also am a lot younger than allot of the folks who have been working with rpg programming for years using the pdm editor. My question, is there a way to code in RPGILE / connect to AS/400's in Visual Studios? My follow up question - is there another IDE I should be using? Dear god, all I need is intellisense!