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.
2,620
questions
0
votes
2
answers
35
views
How to query a file created in qtemp by a submitted job
There is a job that gets submitted. That job calls a program which creates a temporary file in its qtemp. Can someone tell me how to query that file in the qtemp of the job?
1
vote
1
answer
34
views
df.to_sql with AS400
i want to put a Panda Dataframe to a IBM i Series / AS400. I already researched a much, but now I am stuck.
I already made a lot of queries, where I use pyodbc. For df.to_sql() I should use, as readed ...
1
vote
2
answers
39
views
Write SQL output from IBM i Db2 to IFS in XML format using QSYS2.IFS_WRITE
I am attempting to write XML output from a Db2 file to the IFS.
Running this SQL statement from System i Navigator SQL gives me the proper output on the navigator window:
select xmlelement (name "...
-2
votes
0
answers
28
views
Modernizing RPG/AS400 Application [closed]
We have an AS400-RPG application that is working since last few decades. Considering the changes in technology, we want to modernize it with new BE and FE. We are open for technology considerations ...
1
vote
1
answer
52
views
Loading packed decimals into DB2 for IBM i
I am having trouble loading packed data exported from IBM i DB2 into a second IBM i DB2 database. The file comes from a vendor and other kinds of methods like direct connections are not available.
...
0
votes
0
answers
22
views
Why am I getting an error in Java AS400 error while extracting files?
At my job we use this batch file to extract text files from our AS400 and save them on our hard drive. here is a sample of the bat file:
echo on
REM ****************
SET mydate=%date:~...
0
votes
1
answer
39
views
batch processing - RPGLE
I am trying to understand simple batch processing using RPGLE and PRTF members below is the code for both but the results look like this (The columns print instead of the data) What am I doing wrong:
...
0
votes
1
answer
40
views
Position 1 Keyword SEARCH not expected. Valid tokens: ) FETCH LIMIT ORDER UNION EXCEPT OFFSET
Below is my attempt at recursively querying all of the dependency catalogs for a given object:
Create or Replace Procedure DEPCAT( Out OBJECT_SCHEMA char(20),
Out ...
0
votes
2
answers
37
views
.vbs file replace Input Box with Today's date information. Also, how to navigate to correct window if user is not on the main menu?
I have the following:
[PCOMM SCRIPT HEADER]
LANGUAGE=VBSCRIPT
DESCRIPTION=
[PCOMM SCRIPT SOURCE]
OPTION EXPLICIT
autECLSession.SetConnectionByName(ThisSessionName)
REM This line calls the macro ...
0
votes
4
answers
55
views
iSeries SQL - Use Previous Record Value in JOIN criteria
In my example, I am trying to retrieve records from a transaction file based on the previous calendar work date. The work dates are in a file called CALNDR, the transactions in a file called TRNHST. ...
0
votes
2
answers
46
views
How to automatically get basic monitoring info such as CPU and Memory Usage from the IBM i?
I'm trying to get some basic performance data (such as CPU and Memory Usage) from the IBM i every minute or so.
Then I'm creating a Web App, which will display all of this in a centralized dashboard ...
0
votes
1
answer
48
views
IBMi/IBMMQ QMQM subsystem stops
I'm still new to MQ and have tried upgraded and downgraded for testing purposes. After I downgraded from 9.2 to MQ 9.1 everything works but I noticed that the qmqm subsystem will be working for hours ...
0
votes
0
answers
25
views
Excel VBA to iSeries Error 25202 - Unable to open the key file
I'm trying to use Excel VBA to get data off of iSeries Databases using IBM Access Client Solutions. I'm getting a CWBC01034 - SSL Error 25202 (Unable to open the key file. Either the path was ...
-1
votes
0
answers
15
views
Parse XML File in DB2400 in relation DB format
I am Having XML in below format and I want to parse this XML into relation file in DB2/400.
Input File data:
'<ArrayList>
<item>
<fnr>0000000000</fnr>
...
0
votes
1
answer
23
views
Terminal emulator s3270 - Roll Up action as400
I am automating with python a p3270 terminal and I am using a s3270 emulator for this. I can automate all the screens but in one I have to use the Page Down key.
I am using this library https://github....
0
votes
1
answer
33
views
SQL cross referencing
If I was to make a change to an object(possibly a table) , I want to find out via system catalog tables where this object is referenced/used. So what CatLog system table to check stored procedures? ...
1
vote
2
answers
69
views
Adding a Trailing Record in SQL Query
I have a SQL query that reports invoice data daily, the customer has asked that we add a trailing record to the output each time with data like the number of records in the query, number of locations ...
4
votes
3
answers
79
views
Fully free RPG data structure
I came across the below code in a fully free RPG program.
dcl-ds *N;
*N char(2) inz('PR');
//STR0037123 - start
*N char(2) inz('ER');
*N char(2) inz('MP');
*N char(2) inz('PC');
...
1
vote
1
answer
18
views
iseries member browswer not showing as an option
i installed Visual Studio Code along with all ibmi extensions. I am able to browse objects and IFS, but there is no option to browse source members.
Any idea why that option would not be available?
0
votes
1
answer
73
views
DB2 [SQL0029] INTO clause missing from embedded statement
UPDATE to my question. I found the answer and will edit the sample code. Thanks to those who tried to help me.
The following test script checks out okay in the tool "Run SQL Scripts" and ...
1
vote
3
answers
49
views
What can be done if we want to update a record locked by other program or application in RPGLE
Suppose I want to update a record , but that record is being locked by some other application or program , what can be done to make sure that I can update that record in the next iteration?
1
vote
1
answer
43
views
How to get a count of record number in the same SQL sentence when we are inserting a data into a file in SQLRPGLE
Recently in an interview I was asked , How to get the data count when inserting data into the file using an INSERT statement , I told we can use a Count statement later on to get the count , but he ...
0
votes
1
answer
36
views
Validate date in a CL program (AS400)
Hi can someone tell me how to validate date in a CL program. If a DATE is provided as an input to the CL program , the CL program should validate the provided DATE.
0
votes
1
answer
33
views
Controlling Commit and Rollback in sqlrpgle
Hi can some one tell me how to control the commit and rollback in a SQLRPGLE.
-1
votes
1
answer
27
views
How to update a file using a CURSOR in SQLRPGLE
Can someone tell me how to update a data using the CURSOR in sqlrpgle.Is there a way updating data just by using CURSOR rather than using the Update statement in SQLRPGLE?
-1
votes
2
answers
35
views
How to fetch multiple records from a fetch statement in SQLRPGLE?
Recently in an interview I was asked how to fetch multiple record using a single fetch statement in SQLRPGLE. I would like to know is it possible to get multiple record using a single fetch statement, ...
1
vote
2
answers
51
views
What is the real advantage of using activation group in rpg
Can someone kindly tell me what is the real advantage of using an activation group. I mean other than the fact that we can deactivate a bunch of programs together what real advantage does activation ...
2
votes
1
answer
42
views
How to delete a record without actually reading the record in RPGLE
Recently I came across a question that was asked to me in a RPGLE interview. I was asked how to delete a record without actually reading it in RPGLE. My answer was we can use embedded SQL , but he ...
0
votes
0
answers
48
views
AS400 DB2 IBM Connection Xamarin C#
I'm new to this topic so I wish someone could help me, I need to create a connection in C# to IBM's AS400 DB2, I really don't have much experience in this programming language and I need to create the ...
0
votes
1
answer
30
views
Capture port information on iSeries programmically
Currently we receive on port 9020 from a client. That client uses port switching on their end and sometimes we wind up with multiple "Established" connections on the one port - all with ...
1
vote
2
answers
39
views
SBMJOB programs within Do they have access to qtemp
When submitting an excextfun program, do program calls within this have access to the same qtemp library.
My problem:
When I call the function interactively , I get data in report, when I submit the ...
0
votes
1
answer
37
views
VBA connection string to IBM AS400 in Office365 64-bit
The following VBA connection string works fine in MS Office 2016 32-bit:
Dim rs As ADODB.Recordset
str_400Connect = "Provider=IBMDA400.DataSource.1;Data Source=" & Trim(aDSN) & &...
0
votes
1
answer
55
views
UPDSRVPGM and CRTSRVPGM difference in ile concept
Can someone explain the conceptual difference between UPDSRVPGM and CRTSRVPGM in the ile concepts. I mean to say why can't we always use CRTSRVPGM, why is there a need or advantage to use UPDSRVPGM.
2
votes
1
answer
59
views
Difference between WRITE and EXCEPT in rpg/rpgle
Hi in many of old rpg programs that I have come across I can see that EXCEPT is being used in place of WRITE opcode. Can someone tell me what is the exact difference between the EXCEPT and WRITE ...
0
votes
1
answer
86
views
How to use result of SELECT in a limit
I have a table here that keeps repeating results over environments.
Cf :
Select * from SYSCOLUMNS where table_name = '*EXAMPLE*'
RESULT 1 | RESULT B 1 | ENV 1
RESULT 2 | RESULT B 2 | ENV 1
RESULT 3 |...
1
vote
1
answer
47
views
Is it possible to put three separate SELECTs together in a single SQL query where two of the SELECTS grab data for the first SELECT?
If I worded the initial question poorly hopefully this description clears it up. I have a SQL query that is a SELECT like so
select tester as TESTNAME, testing as TESTNAMETWO, test as TESTNAMETHREE
...
0
votes
1
answer
125
views
Delete records older than 3 months in AS/400
I have a table called transactions which contains Customer Name (custname), Transaction Date (trxdate). I need to delete values older than 3 months.
trxdate is CHAR (6) in format YYMMDD like 220611.
I ...
0
votes
0
answers
31
views
webservice Apache-server issue
We created some RPGLE (Rest-Json) Webservices on an IBM-I's Apache-server, using the config wizzard.
Now If we get a Json with extra tags/labels the following error appears:
Error 500: javax.servlet....
0
votes
3
answers
38
views
Transfer of spool file (printer file) from one AS400 system to another
I have a requirement where I have to send spool files produced in test AS400 system to production AS400 system. I have been provided with the outq of the production system.
Can any one tell me the ...
2
votes
1
answer
82
views
Difference between compiler directive /Include and /copy in rpgle(sqlrpgle)
In rpgle /sqlrpgle code I have come across compiler directives like /INCLUDE and /COPY, can somebody tell me what is the core defference between the two because it seems they pretty much do the same ...
-2
votes
1
answer
63
views
For As400 not able to exit using F3 key.Is any alternative key can be used for exit functinality? [closed]
strong textNot able to exit from As400 using f3 in dell inspiron 15 3000 laptop
1
vote
1
answer
45
views
CPI Communication in IBM I (AS400)
Recently I came across a thing called CPI Communication (common programming interphase) in one of a rpgle program I was working on. Instead of calling other programs directly they are using something ...
0
votes
2
answers
42
views
Slim Framework and connection to AS400
I tried to connect to AS400 using Php Slim Framework.
It returned to me an error about odbc connection php function.
I edited this framework files this way.
SETTINGS.PHP
<?php
declare(strict_types=...
0
votes
1
answer
30
views
DSPJRN only shows entries for table after it was recreated
After deleting and then recreated a table, why does the DSPJRN command only show entries for the table starting from the time the new table was created?
DSPJRN JRN(WLKLIB/JRN) FILE((DSHPF16))
...
1
vote
1
answer
83
views
Connect PowerBi to As400
I tried to connect to ODBC with PowerBi using this string connection
Driver={Client Access ODBC Driver
(32-bit)};System=xxxxx.xxx.xxxxx;libraries=XXXXXX;naming=system;transaction
isolation=read ...
-1
votes
1
answer
88
views
Running a batch File in AS400
Is there a way to run a batch file on my local as400 server from as400 command line as this batch file exists at a shared folder exists on my local as400 server.
batch file:
cd C:\D1
for /R %%...
0
votes
1
answer
59
views
how to create SQL procedure which contains compile time errors?
I am writing a one time SQL procedure which will add an identity column to a table, then set the primary key of the table to that new identity column. But I cannot compile the SQL procedure because ...
-5
votes
1
answer
260
views
How to use IFS_READ & IFS_WRITE services?
I've recently heard about the "new" IFS_READ and IFS_WRITE services for IBM i (formerly known as AS/400 or iSeries). I couldn't find documentation for them, and most of what I did find ...
0
votes
0
answers
41
views
AS400 JDBC Driver - help needed [duplicate]
On Window 10 OS, I am attempting to complete a sample java code that I got online, below is the code. I am not using fancy IDE, just plain old notepad.
import java.sql.*; ...