Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
54 views

I am encountering an issue when using JSON_TABLE in IBM i COBOL with CLOB data. Below is an example of the code I am using: EXEC SQL DECLARE C_EMP CURSOR FOR SELECT U.FIRSTNAME, U.PHONETYPE ...
JT Shan's user avatar
  • 11
1 vote
1 answer
95 views

I try to make a JSON_OBJECT in my SQLRPGLE Program. But even the simplest doesnt work: **FREE ctl-opt dftactgrp(*no) actgrp(*caller); dcl-s PAYLOAD varchar(1000); EXEC SQL SELECT CAST( ...
baphomet's user avatar
  • 129
0 votes
0 answers
45 views

From the following link https://codefori.github.io/docs/dev/api/ I am developing my own VS Code extension and want to interact with the active IBM i connection, so I can use the API provided by Code ...
jemrug's user avatar
  • 89
0 votes
3 answers
74 views

I'm developing a tool program on IBM i that automates recompilation of objects (RPGLE, DSPF, CLLE) whenever changes occur. Everything works fine for RPG and CLLE, but I'm struggling with detecting ...
Afnan's user avatar
  • 34
2 votes
2 answers
139 views

Quite new to this AS400. I've tried this code and it works to list all the files: SELECT TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE FROM QSYS2.SYSTABLES WHERE TABLE_SCHEMA = 'QGPL' ORDER BY TABLE_NAME ...
Uy -Ryan- Huynh's user avatar
0 votes
2 answers
70 views

I want to remove (not replace) unwanted characters in AS400 (IBMi) tables coming from external (un-manageable) text documents uploaded into AS400. Using RPGLE, RPGLE/SQL or CL if possible On AS400 PF ...
mortimer's user avatar
1 vote
2 answers
104 views

I'm working with an RPGLE program on IBM i (AS/400) that uses the QxmlSAXParser_parse_systemid() API to parse large XML files stored in the IFS. 🔧 Environment: IBM i v7.3 RPGLE (ILE), compiled with ...
ebin 's user avatar
  • 21
0 votes
1 answer
122 views

Question specifically for AS400, DB2 I have a file called RECIPES with no key. Example Recipe Number/Ingredient number/Ingredient Qty/Sequence No 1000 111211 Sugar 0 ...
mortimer's user avatar
1 vote
3 answers
270 views

I'm working on a business application modernization project where I need to call existing AS400 programs (RPG, CLP ...) from a .NET 8 app. These RPG programs have I/O parameters with complex Data ...
ShiftHappens's user avatar
2 votes
1 answer
149 views

I have an existing RPGLE program on IBM I which I call from ACS "Run SQL Scripts" like this: CALL F60PTF.COINPRQ(1, 1, 'CHAI11', '258', 1, 'LB', '', 'MAIN'); WRKOBJ OBJ(COINPRQ) returns the ...
greendookie69's user avatar
1 vote
2 answers
113 views

I'm a beginner learning RPGLE and display files on IBM i. I’ve created a program that displays a message using a message subfile (SFLMSG) when calling a CL program (MSGSFLCL) via a subroutine, and it ...
Afnan's user avatar
  • 34
0 votes
2 answers
68 views

re: RPG/DDS - display subfile and message queue subfile on same page When one screen has both display subfile and message queue subfile. Program does two reads (or exfmt). User has to press enter ...
mortimer's user avatar
0 votes
1 answer
101 views

On our Iseries machine we have a routine which returns some information regarding the status of a third party package, it tells us if it's up or down (it's Sage if you're really interested) I've ...
Russ's user avatar
  • 1
0 votes
1 answer
81 views

In a RPGLE I'm receiving information from a PC program, to prompt the program the user has to press Ctrl-Alt-A. Before that can be loaded they use F2 to clear the fields for the data to be entered ...
Curtis Fore's user avatar
-2 votes
1 answer
69 views

I am trying to see what code the RPG compiler adds to cycle-enabled programs to do the implicit reading/writing of primary/secondary files. I tried various DBGVIEW options during compilations but so ...
Kerim Güney's user avatar
  • 1,274
2 votes
4 answers
225 views

I made small change in program that sends program messages (SNDPGMMSG) to message subfile in RPG program. Change was converting subroutines to procedures. I changed one subroutine to dcl-proc from sub-...
mortimer's user avatar
0 votes
3 answers
372 views

I'm trying to run the command from .NET C# using non-query SQL commands on the AS400. CALL QSYS2.QCMDEXC('CPYSPLF FILE(AUMENTO1) TOFILE(*TOSTMF) JOB(557767/RAB/AUMENTO1) SPLNBR(1) TOSTMF(/REPORTES/...
raabsoft's user avatar
0 votes
3 answers
99 views

I am having trouble capturing value of function key pressed in RPG screen. Here is essential code... dcl-f SF_04D workstn infds(infds1) sfile(SFL1:RRN) ; dcl-c F1Key const(x'01'); ...
mortimer's user avatar
0 votes
1 answer
234 views

I created a SRCPF in an AS/400. It shows the record length as 92. I think this is the default length. I want to increase the length to 112. After I copied a CLLE program from record length 112 SRCPF ...
Dar's user avatar
  • 17
0 votes
1 answer
93 views

I have a table I create via SQL on an AS400 and the SQL and table creation runs without error. The input files will always have data but after the SELECT is applied the output file could be empty/null/...
TommyV's user avatar
  • 33
1 vote
1 answer
50 views

WITH RowNumbers AS ( SELECT ROW_NUMBER() OVER (ORDER BY G TLINE) AS row_num, gtline, gttran FROM GPOTRSP ) UPDATE b SET b.gtline = a.row_num FROM GPOTRSP b ...
Swasti Das's user avatar
1 vote
2 answers
274 views

The problem I am trying to use SQL to do a GET request on the IBMi. The URL I am trying to query is the one that is in the documentation : 'https://www.ibm.com/support/pages/sites/default/files/inline-...
Jean-Adrien Oikonomou's user avatar
1 vote
1 answer
202 views

I am struggeling to make a working signature of a certificate which will be used later in a JWT in an RPG-program. We use this version of openssl: "OpenSSL 3.0.10 1 Aug 2023 (Library: OpenSSL 3.0....
baphomet's user avatar
  • 129
0 votes
1 answer
86 views

I am trying to fetch cpu % using jt400, however I am getting cpu % as zero for all the jobs. How can I resolve this? Below is the code for reference. JobList list = new JobList(as400); list....
Poojan Shah's user avatar
0 votes
1 answer
64 views

This is a strange and alien world to me, so please excuse my ignorance! I have spent quite some time reading up on it, but I still don't really know how to even ask the right questions. The naive ...
Alias_Knagg's user avatar
  • 1,054
1 vote
0 answers
60 views

We have lots of old channels and queues that I suspect are not being used. In the case of remote queue definitions, how can I, from the MQ side, determine whether they are in use? It seems that all ...
zkarj's user avatar
  • 689
-1 votes
1 answer
141 views

I have a display file record which has an Identifier. Based on the identifier I am displaying a subfile with a few records. Now I want to accept another Identifier and show the additional records ...
Richard's user avatar
  • 21
0 votes
1 answer
172 views

I have a pointer not found error followed by a session crash during a call to a procedure but its not clear to me why. The error occurs at a rather simple assignment operation between two DS fields, ...
MordernRPGSoldier's user avatar
0 votes
1 answer
154 views

I am a beginner learning RPGLE and working with subfiles. I have attached an image where the red highlighted area is designed using SFLCTL, and the blue highlighted area displays data fetched from the ...
Afnan's user avatar
  • 34
1 vote
0 answers
272 views

I want to connect powerapps to a AS400. I have installed On-premises data gateway. As far as I have studied, there is only a DB2 connector in powerapps, but I can not connect to the server, because I ...
Lukas Fürst's user avatar
1 vote
1 answer
171 views

I am new to programming with RPGLE I was trying to write a simple code to read data from a file and displaying it in the screen. While doing it I get errors: RNF3438 30 000600 LIKE keyword is ...
mr_groovyle's user avatar
0 votes
1 answer
73 views

Here i have defined the procedure which is returning a OrderDs of dim(256). In debug its getting the right value but when called in the main program, only the first row is printed 256 times. Module in ...
Rituraj singh's user avatar
1 vote
1 answer
77 views

Scenario: Table 1 is in library lib1 Table 2 is in library lib2 Library List is set as lib1, lib2 When I use dynamic SQL like: sqlcmd = 'select ''1'' from table1 a join table2 b on a.id = b.id'; ...
Flow's user avatar
  • 21
0 votes
1 answer
61 views

All, Imagine you have a database (File: INPUTPF) that looks as such... Rec No Client_Name Class Fld1 Fld2 1 Abbey 123 Y 2 Abbey 999 Y 3 Abbey 234 Y 4 Bill 222 N 5 Bill 333 Y N 6 Bill 444 Y N 7 Mike ...
TommyV's user avatar
  • 33
0 votes
1 answer
138 views

Good morning, with the STRSEU command I should query several physical files in a library and check if among the different fields in the various files there is the field beginning with DT. For each ...
Francesco Papa's user avatar
1 vote
2 answers
92 views

I wanted to ask something related to the Java AS400 connection driver, that is, JTOpen, and it is about whether it has a URL parameter similar to that of PostgreSQL: jdbc:postgresql://localhost:5432/...
Radenixlol's user avatar
1 vote
1 answer
117 views

Would like to export ALL META-DATA from existing iBM-i DB2 Webquery to file eg. .xml type of file for a client as they want to have their webquery reports meta-data migrated to other solutions. They ...
P S's user avatar
  • 13
-1 votes
1 answer
214 views

i have a problem with pyodbc, commiting an update statement in python to a as400/db2 - this is my code: class CDP_ODBC(): def __init__(self): self.cnxn = pyodbc.connect( 'DRIVER=...
Lukas Fürst's user avatar
1 vote
1 answer
98 views

I am selecting data from an AS/400 database from different tables using a change indicator. I then export the data to a file and mark the data as exported by updating this change indicator. While this ...
Moh-Aw's user avatar
  • 3,038
0 votes
1 answer
421 views

If you have a library that begins with a $, such as $BASDTA it seems to throw off the GENERATE_SPREADSHEET scalar function when used in embedded SQL (i.e. exec sql...). At runtime it does not ...
Tony MST's user avatar
0 votes
1 answer
183 views

I run an SQL for a user and it work perfect! The code is pretty straight forward delete a table, create a table where we examine coulmn1 & group by coulmn1. Write out to the table any all data ...
TommyV's user avatar
  • 33
0 votes
2 answers
223 views

I am trying to run a shell script in QSH of IBM i. It seems there is a problem in the system translating the variables due to the curly braces used in the script. Has anybody encountered this and know ...
Abalode's user avatar
  • 11
1 vote
1 answer
152 views

Hello everyone (first thing sorry for my english, it's not my native language), I have a basic clle program, the purpose is to count the file total size in a library. At the end the programm should ...
Gaou Chrys's user avatar
0 votes
0 answers
51 views

When we enter any invalid option on the main screen the reverse image and pc is turning on for every subfile field, //*************************************************************************** //* ...
Rituraj singh's user avatar
0 votes
3 answers
183 views

On my System Power / AS400, i'm using embedded sql in an RPGLE Program to write a Subfile. On a large selection the initial fetch is to slow. When i scroll the speed is good. Even though i only select ...
Flow's user avatar
  • 21
0 votes
1 answer
172 views

I have this logical source file: A S VALIDFLAG CMP(EQ '1') A S ITEMPFX CMP(EQ 'PF') But it seems that it works as an OR when I use the logical ...
Asymptote's user avatar
0 votes
1 answer
117 views

I am new to IBM AS400. Recently there is a need in my company to implement a 90 days password change for all users. The problem is some users won't change their password even if we already notify them ...
Brody_Brody's user avatar
-2 votes
1 answer
112 views

I am getting the below exception whenever i run a method which run the following query. org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for ...
Shubham Kumar's user avatar
0 votes
1 answer
198 views

I'm using the command DSPJRN having the parameter OUTPUT(*OUTFILE). One of the output file column is JOESD which contains the specific data for the journal. But the field length is only 100. Is there ...
Asymptote's user avatar
0 votes
1 answer
437 views

A Microsoft SSIS (Sql Server Integration Service, as a dtsx file) was handed to me by a fellow co-worker, but when I open it in Visual Studio 2019 and try to edit one of its connections I get an error ...
programingfrik's user avatar

1
2 3 4 5
58