Questions tagged [ibm-midrange]

The IBM i is a proprietary platform from IBM, which runs on their Power Systems and Pure Systems, and contains a DB2 database integrated into the IBM i OS.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
19 views

I need a way to conect and control the screen of IBM i Client Access from Python [closed]

I need a way to conect and control the screen of IBM i Client Access from Python. The problem is that IBM i Client Access is not being used lika a DB for querys, is an interface for internal work. I ...
NicoR's user avatar
  • 1
0 votes
2 answers
66 views

Does DS OVERLAY support VARCHAR sub-fields?

Here's the source code Dcl-S dataString VarChar(1048576:4) Inz; Dcl-DS Ds_ErrMsg Qualified; ErrMsg VarChar(249); //22+1+21+1+200 = 245 //extra ...
ojay's user avatar
  • 107
0 votes
1 answer
32 views

I need to display the hex value of a file field value in display file in a rpgle program

I need to read a file using RPGLE and then display the Hexadecimal value of some of the fields of the file in a display file. Can someone tell me how to get the hex value of a field in a rpgle program ...
Kunal Roy 's user avatar
1 vote
0 answers
31 views

iSeries Navigator to access DB2 data on our IBM i

We use iSeries Navigator to access DB2 data on our IBM i. We have a problem with response times and the number of records extracted. We have 35 million records on a file, and SQL via the iSeries ...
Olympio's user avatar
  • 11
1 vote
1 answer
79 views

How to endjob RGZPFM in AS400

I tried to run the Reorganize Physical File (RGZPFM) on one of the files. I executed it through a submitted job running in QBATCH. Due to it taking too long, I eventually decided to end the job ...
levi's user avatar
  • 11
-2 votes
0 answers
50 views

jpype dbapi2 : can't understand this ClassNotFoundException error [duplicate]

[edit] my question has been closed for duplicate, but none of the answers I see relates to python or jpype, so I think that my question is legitimate I can't use java -classpath because I don't run ...
FredericP's user avatar
  • 1,115
-2 votes
1 answer
65 views

Calling RPG program from SQL with parameter

In DB2 SQL is present since 7.1 the function SQL QCMDEXC() to call external program. I want to use it like this: SELECT MYFIELD, CASE WHEN QSYS2.QCMDEXC('CALL MYPROGRAM(**MYFIELD**)...
Nifriz's user avatar
  • 1,040
0 votes
1 answer
41 views

as400 I series JDBC Connect

I have been trying to connect as400 (IBM DB2 i series) server using JDBC however the code I have written is neither giving any exception nor printing anything. Can any one please help with if I am ...
DKM's user avatar
  • 1,761
0 votes
2 answers
72 views

Chain vs Select RPG

I have a CHAIN operation as defined below: chain(e) (GetIacIsrKey.BaseKeyNumber: wNameKeyNumber: GetIacIsrKey.SocietyCode) ...
MordernRPGSoldier's user avatar
0 votes
1 answer
43 views

Maximum number of members in IBMi PF and maximum number of records in a member

I have a task that requires potentially adding a very large number of members to a multimember physical file. I do a DSPFD on the file and I see below under database file attributes: Maximum members . ...
MordernRPGSoldier's user avatar
1 vote
0 answers
33 views

Github and RDi integration architecture

I have a basic question to those who have worked in GitHub and IBMi integration using RDi. I am a beginner to GitHub and was trying to implement GitHub as a version control solution. I have developed ...
Dheeraj Dhawan's user avatar
1 vote
1 answer
31 views

ACS/RSS - How current SQL environment can be overridden to instead use current *LIBL of the job nnnnnn/QUSER/QZDASOINIT?

IBM i CLI (QCMDEXC): I've a file in library DATALIB, I do CHGLIBL, RUNQRY on the file and I get file data smoothly. Because *LIB DATALIB is in the *LIBL, it works fine. I try to follow same on ACS's ...
ojay's user avatar
  • 107
0 votes
0 answers
14 views

Received fatal alert: protocol_version - Client Hello sending the Tls version as 1.0

We are using IKVM to convert the JT400 (JTOpen) jar to connect AS400 using our C# application to connect securely using the secureAS400 class. from our application, if we capture the packet we come to ...
AmjathKhan's user avatar
0 votes
3 answers
96 views

Confirm behavior of %NULLIND

I have this RPG code that I have been trying to convert to Java, but I still don't understand how it is going to look like in Java. RPG Code: C EVAL %NULLIND(XXXXXXXX) = *OFF ...
KJ01's user avatar
  • 65
1 vote
0 answers
51 views

Troubleshooting java.sql.SQLNonTransientConnectionException: The connection does not exist

The Java application (on a Windows server) is designed to receive requests embedded in XML and translate the requests which will result in executing SQL on iSeriese IBM Machines. This is a multi-...
tarekahf's user avatar
  • 808
1 vote
1 answer
29 views

JDBC as400 library list parameter not working?

I have a JDBC connection string to an as400: String jdbcUrl = "jdbc:as400://hostname/;libraries=LIB1,LIB2,LIB3"; My understanding from these docs: https://www.ibm.com/docs/en/i/7.1?topic=...
Lawrence Tierney's user avatar
0 votes
0 answers
23 views

Java Swing App - Trouble Navigating to Previous "screen/view"

I am creating a simple app that interfaces with an AS400 database using JT400 library and swing components for the GUI. The goal is to list active jobs of AS400 user so user can click one to get a ...
Logan Price's user avatar
-1 votes
1 answer
35 views

Joblist in IBM i /AS400

I am tryin to filter a job form job list in IBM i/as400 based on the following parameters JOBNAME,USERNAME, STATUS and Entered date. The reason behind is to find the job id of the latest instance of a ...
Karthik Mohan's user avatar
-1 votes
1 answer
2k views

AS400 DB2 Does not support JOIN with = 'xxxxxxxxx'?

Im trying to do a inner join and add a where clause on it. The where clause is a number given by API call and retrive the lettres written by a person. When i add a MATCHING where clause its not ...
Thomas Vessiere's user avatar
1 vote
1 answer
45 views

Using noxDB, ParseString fails, but ParseFile is successful with the same JSON

Using noxDB on the IBM i in an RPG program, ParseString fails, but ParseFile is successful with the same JSON. Please see the example below. Is ParseString unable to handle arrays? If so, is there a ...
Ray's user avatar
  • 11
1 vote
0 answers
124 views

Is there a way to automatically refresh an Excel file using ODBC connection (via python or CMD)?

There's this one .xlsm file that i need to refresh, automatically, on a regular basis, with data taken from an AS400 device. The AS400 device launches a script every N. hours; said script updates a ...
fil.'s user avatar
  • 11
0 votes
3 answers
79 views

How to get the number after the decimal position in RPGLE program

I have a PF in a rpgle program with a field having values 1001.123, 1001.234, 1001.561 and so on. I need to capture the number after the decimal position for doing some calculations. So I need to ...
Kunal Roy 's user avatar
0 votes
0 answers
67 views

strpccmd all of the sudden doesn't work anymore

We have a program with the next lines: // Editor voor blob opstarten @cmdString = 'STRPCO'; callp(e) excCmd(@CmdString :%len(@CmdString)); @cmdString = 'STRPCCMD PCCMD(' + '''' + 'CMD /C ...
jand66's user avatar
  • 1
0 votes
3 answers
56 views

How to filter the decimal place in SQL for IBM DB2 database running in IBM-I (as400)

I have a file (or table) suppose Table1 which consists of a numeric field Num1, the values of the field is like 1001.001, 1001.000, 1001.002 and so on . I want to write a SQL query which filters value ...
Kunal Roy 's user avatar
0 votes
1 answer
55 views

What is the intended purpose of the Hex Branch instruction on the IBM System/32

Does anyone know the intended use of the Hex Branch instruction on the IBM System/32? In case there is a clever reader who doesn't know the System/32, Hex Branch substitutes the high nybble of the low ...
tim.smith's user avatar
  • 151
1 vote
3 answers
104 views

How to get the list of binding directory attached to a rpgle program

Suppose I have a program RPG1, I have attached binding directory DIR1, DIR2 and DIR3 to it during compilation. These are not specified in the HSpec of the program. The program is now compiled. Now how ...
Kunal Roy 's user avatar
0 votes
1 answer
69 views

Received fatal alert: protocol_version - when using SecureAS400 class

In one of our customer places, we are getting this "Received fatal alert: protocol_version" when using SecureAS400 class. These are the SSL ports we have opened in the application server 448,...
AmjathKhan's user avatar
1 vote
2 answers
113 views

How to fetch File Member & Library for which the trigger has been fired in SQL Trigger program in IBM ISeries DB2 SQL Trigger

I have a Multi member table and a SQL Trigger program is attached to it. Is there a way to fetch the File Member & Library for which the trigger has been fired in SQL trigger program? Basically I ...
OutLander's user avatar
0 votes
1 answer
27 views

RLU - What do these codes mean in PRTF DDS after I created a report using RLU?

Here is the PRTF DDS snapshots (with non-code lines excluded) The Codes are TS FI RI SS CL CP+ CP Also, I found that similar codes exist in DSPF sources as well, like 'EC'
ojay's user avatar
  • 107
0 votes
1 answer
47 views

SEU - Is there a way to automate changing of these SEU defaults?

I need to often switch IBM i machines and need to set-it up for my use and this SEU change is one of them. Is there any system command or API or SQL service that can be used to automate this process? ...
ojay's user avatar
  • 107
-1 votes
1 answer
59 views

CRTBNDRPG - Few clarifications regarding RPG Compiler Listing (SPLF)

Q1: On line 1, i know 5770WDS is Rational Development Studio for i and V7R3M0 is the OS version, what does 160422 and RN represents? Q2: Why DBGVIEW(*STMT) says '(Source not available.)' and isn't ...
ojay's user avatar
  • 107
0 votes
2 answers
80 views

Binary math in IBM i RPGLE

I am trying to decipher an old piece of code from RPGLE so that I can convert it to C#. Here is the code in question: D DS D S2DATE 1 6 0 ...
user3763812's user avatar
1 vote
1 answer
150 views

SQL7008 - Why and how DB2 require users to journal a file even before it is created?

CREATE OR REPLACE TABLE QTEMP/TESTF0( ID NUM(3) PRIMARY KEY, STRID CHAR(3), NUMSI SMALLINT, NUMI INT, ...
ojay's user avatar
  • 107
0 votes
2 answers
36 views

How to make Field Plus right align data in IBM DFU?

IBM i V7 R2 I have created a DFU program using STRDFU Option 2. Create a DFU program to edit a file with the DDS below. 0001.00 A* FILE -ICRADEL 0002....
Chris's user avatar
  • 13
0 votes
0 answers
38 views

Maintain AS400ConnectionPool for multiple use

Java, Spring, jt400 [AS400] I have working WAR at server. At this moment, my endpoint opens connection to AS400, retrieve data and gives it as response. Yet, I would like to do some time optimization. ...
Nevras's user avatar
  • 11
0 votes
0 answers
26 views

Recompiling old CLP38 program

Hey I have an Old CLP38 program that I have been updating to work in IBM I 7.4. (CLLE) But it seems that the SAVOBJ command has been updated, with some deprecated parameters (LOC in my case). But I ...
Anders Metnik's user avatar
0 votes
0 answers
18 views

Default Level Check setting for command outfile

On IBM i, is it true to say that for any IBM i command that has the OUTPUT(*OUTFILE) parameter, the LVLCHK of the resulted file will always be *NO? I tried it on a few commands, like DSPOBJD, DSPFD, ...
HockChai Lim's user avatar
  • 1,675
0 votes
1 answer
63 views

ACTGRP query on AS400

I have a query in regard to activation group. If I declare a program with DFTACTGRP(*NEW), the system creates an activation group for it and the activation group is destroyed after the program ends. ...
Kunal Roy 's user avatar
2 votes
2 answers
120 views

How to run a java program in a specific subsystem in AS400

How to do it? I saw this question: How to add job in Subsystem in as400 The person who asked had this process: Creating Subsystem (SBS): CRTSBSD SBSD(MYSBS) POOLS((2 *BASE)) MAXJOBS(2) TEXT('DEMO SBS'...
Sfp's user avatar
  • 549
-2 votes
1 answer
159 views

Using a variable for a database file in embeded SQL in free RPG

I would like to write an sql statment, that works no matter what data file is wanted. example: exec sql select * from :variable; I am getting a SQL0104 Error at the ":" "Token not vaild....
baphomet's user avatar
0 votes
1 answer
71 views

IBM i C++ Open a printer file using std::ofstream

EDIT: This question is for the IBM i operating system. IBM i is a unique operating system that runs on IBM POWER servers and was formerly called OS/400. Current release is 7.5. In IBM i, printer ...
Chris Charlton's user avatar
0 votes
2 answers
331 views

How to determine in a rpgle program if a file is locked or not?

Suppose , my program processes a file , but before processing the file, how can I check if the file is locked (I want to check this because I dont want the program to crash in case of a file lock). ...
Kunal Roy 's user avatar
1 vote
1 answer
70 views

Prototype not used in called RPGLE program , but the program still works

I have a program SS150R where the PI is declared as Dcl-pi SS150R; pCompcd Char(4); ptrncd Packed(3:0); pErrMsg Char(30) options(*nopass); ...
Kunal Roy 's user avatar
0 votes
2 answers
94 views

Node.JS on IBMi / OS400: filename with accents non accessible

I have a NodeJs (14 & 18) service which list and read files from the local filesystem, on IBMi or AS/400... I use: await fsPromises.readdir(mydir) for to list all files of my directory await ...
Didier68's user avatar
  • 1,117
2 votes
1 answer
83 views

Impact analysis of changed service program RPGLE

I have a Nomain *MODULE object to which I added a new procedure. The *MODULE object is used to create a service program using a binder language source file which already exports a couple of other ...
Theju112's user avatar
  • 167
0 votes
0 answers
45 views

Is it possible to enable Axis logging in a QSYS2.HTTP_GET_VERBOSE request?

I have a service that I am consuming and I would like to be able to add a trace if there's a problem. I've previously added trace to Axis implementations when using the C-APIs on IBMi, but I am ...
xrunner's user avatar
  • 11
0 votes
2 answers
91 views

SQL Query for IBM DB2 Database - Recursive Query?

Hello All and thank you for taking the time to review my question! I'm a novice first and foremost - figuring this out and self-teaching as I go (so if I mix term please let me know or ask ...
HomeGrownExplorer's user avatar
0 votes
0 answers
26 views

PDO query to IBM AS400 (sql) returns strange chars on fetchAll() [duplicate]

I'm querying ibm as400 system (sql). When a value has special chars it returns like "IDSUNM" => b"Çamsan". Can't understand whats the b" before the actual value. When the ...
helderneves91's user avatar
0 votes
1 answer
157 views

DB2 SQL query on member file returns hex values

I am using Squirrel SQL client with the ODBC driver to connect to the DB2 database, which has no issues in extracting data from the db tables. I want to extract data from a member file, and have ...
DuaneRRR's user avatar
0 votes
1 answer
129 views

Compiler directive not recognized

I get this error when start coding the C sheet of this RPGLE program : Compiler directive not recognized; directive ignored This is my code, in the last six lines I get the error. HDatedit(*ymd) ...
reymagnus's user avatar
  • 327

1
2 3 4 5
56