ibm-midrange

Retrieve iASP RDB name to specify it in jdbc url

怎甘沉沦 提交于 2020-08-10 01:13:32
问题 I have a java application which runs on IBM i. It creates connection to AS400 database using jdbc. It does not specify the database name in JDBC connection URL, means it creates connection to default system database associated with *SYSBAS. Now I want my application to run on iASP. When running on iASP it fails to connect to database. IBM i documentation says that we must specify RDB name in "database name" property of jdbc connection URL to connect. problem here is that, IBM i documentation

Exception referring # START NON-TRANSLATABLE while working with java itext and IBM i RPG ILE

为君一笑 提交于 2020-07-23 07:11:27
问题 working with java itext library, with a very simple test. Code passes but when closing document, it fails due to null pointer exception with java.lang.String.compareToIgnoreCase. It happens while embedding itext java code into IBM i RPGIV code. Not sure yet if it is a JNI/RPGIV conversion problem (utf8 should be converted to EBCDIC native charset) or a proper itext issue. It would help if any itext developer could confirm me if it could be a typical itext issue or not sounds like that,

Exception referring # START NON-TRANSLATABLE while working with java itext and IBM i RPG ILE

我怕爱的太早我们不能终老 提交于 2020-07-23 07:10:26
问题 working with java itext library, with a very simple test. Code passes but when closing document, it fails due to null pointer exception with java.lang.String.compareToIgnoreCase. It happens while embedding itext java code into IBM i RPGIV code. Not sure yet if it is a JNI/RPGIV conversion problem (utf8 should be converted to EBCDIC native charset) or a proper itext issue. It would help if any itext developer could confirm me if it could be a typical itext issue or not sounds like that,

IBM i Determine Available Programming Languages

帅比萌擦擦* 提交于 2020-07-19 05:26:46
问题 I've read time and time again that IBM i is a modern system supporting many programming languages. How do I determine which ones are available to me besides COBOL and RPG? A laundry list is given on Wikipedia, and I'd be interested especially in C, C++, BASIC, SmallTalk, and Pascal. https://en.wikipedia.org/wiki/IBM_System_i#Programming What commands can be run to determine which languages are installed? How do you edit source for these languages in the qshell environment? (Vi input appears

What is a good substitute for DSPF with physical files that contain nulls?

泄露秘密 提交于 2020-06-18 16:49:29
问题 I have found that the command DSPF (Display Physical file) does not correctly display records that contain a null. If I define a physical file in DDS with the ALWNULL keyword on a field, then fill the file with data, DSPF will correctly display the data for records without nulls, but all records that contain at least one null will display only blanks in both the null and the non-null fields. This can be misleading. For example in the screenshot below, the seemingly blank records have data in

What is a good substitute for DSPF with physical files that contain nulls?

戏子无情 提交于 2020-06-18 16:49:06
问题 I have found that the command DSPF (Display Physical file) does not correctly display records that contain a null. If I define a physical file in DDS with the ALWNULL keyword on a field, then fill the file with data, DSPF will correctly display the data for records without nulls, but all records that contain at least one null will display only blanks in both the null and the non-null fields. This can be misleading. For example in the screenshot below, the seemingly blank records have data in

Convert hexadecimal EBCDIC to character EBCDIC (iseries AS400)

谁说我不能喝 提交于 2020-04-10 06:09:52
问题 I've this command that converts a character EBCDIC to Hexadecimal on my Iseries (AS400) and it works perfect. sprintf((char*)(codeHex),"%02X", input[loop]); Now, I would like to do the opposite command, I mean.. from an hexadecimal code, convert it to a character EBCDIC, and move it to a string char. How can I do it? Now the info that I recieve has this format: char input[300] ="0x004C0x004F0x00430x004B0x00450x00440x0000..."; sprintf((char*)(VariableCharacterEBCDIC),"?..", input[loop]);

Is there an IBM Iseries/DB2 equivalent to SQL Profiler?

放肆的年华 提交于 2020-01-24 09:03:10
问题 Subject says it all. Looking to capture sql submitted to DB2. 回答1: Take a look at the Iseries SQL Exit Points which will allow you to log any submitted SQL. The only problem is you will have to write your own programs to do the logging: http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Frzaik%2Frzaikodbcexitprog.htm 回答2: If you have Java support enabled, you can use SQL PL Profiler. http://www.ibm.com/developerworks/data/library/techarticle/dm-0406rielau/index.html 回答3:

How to identify and use spooled files of other user using QTCP user(COMMAND PROMPT)?

让人想犯罪 __ 提交于 2020-01-15 11:09:26
问题 Here i am connecting to an AS400 machine from command prompt using (FTP Servername) command. Every action that i do using command prompt is being submitted with QTCP user in the background. Here is the main concern: I have a command that generates spool file with the name i used to login from command prompt. I want to use that spool file content and copy to one of my library , and all these can be done with CPYSPLF command but how to do the same thing using QTCP user. My main requirement here

How to identify and use spooled files of other user using QTCP user(COMMAND PROMPT)?

倾然丶 夕夏残阳落幕 提交于 2020-01-15 11:09:10
问题 Here i am connecting to an AS400 machine from command prompt using (FTP Servername) command. Every action that i do using command prompt is being submitted with QTCP user in the background. Here is the main concern: I have a command that generates spool file with the name i used to login from command prompt. I want to use that spool file content and copy to one of my library , and all these can be done with CPYSPLF command but how to do the same thing using QTCP user. My main requirement here