RPG Questions and Answers

Recent IT Questions

701 - 720 of 727

*PSSR is not executed

The exception error handler routine (*pssr) is not executed, instead the program abends when it encounters say for example record locked by other user.

View Answer   |  Jan 4 2005  2:46 AM GMT
RPG
asked by ferddie

  0 pts.

Cross reference tool

Hello, I'm currently working in an AS400 native RPG-environment, not ILE, and I want to create a cross reference for a part of the system(about 10 libraries). I'd like to create this by myself with the common commands on our system, I can do this thru DSPPGMREF and DSPBDR, DSPFD, DSPFFD, etc......

View Answer   |  Jan 2 2005  8:25 AM GMT
SQL, RPG
asked by zappaz

  5 pts.

Multiple result sets returned from embedded SQL in RPG

I am trying to follow various examples (examples from Iseries Network and IBM manuals) for declaring a cursor and fetching records. I have no problem with simple statements. I am having trouble converting a statement containing a subquery. The more I look at different examples, the more trouble...

View Answer   |  Dec 30 2004  5:41 PM GMT
SQL, RPG
asked by qpgmrs

  0 pts.

F4 to open Selection List Window

When the user presses F4 in a field for a list of values to select from, I open a Selection List Window. When I return from the window with the selected value for my prompted field all of the data entered into the other fields is gone. Because the display format is not read before the prompt is...

View Answer   |  Dec 22 2004  10:26 AM GMT
RPG
asked by hex29a

  0 pts.

PRINTING OVERLAYS FOR MUTIPLE PAGE LETTER

Is it possible in a printer file to have the duplex feature on using a front overlay and a back overlay, but use the FORCE keyword to have it print on two pages - not front and back? I know that the back overlay only works when duplexing is on. Anyone up for a challenge. Thanks.

View Answer   |  Dec 21 2004  5:06 PM GMT
Programming Languages, Visual Basic, COBOL
asked by cmarsellus

  5 pts.

CPYFRMIMPF Command Submitting multiple jobs.

Submitting multiple jobs to do a copy to an AS400 standardized file. This is a great command. I have two systems that I use it on. It works well on one system, however, on the other one it likes to submit multiple jobs to copy blocks of 60,700 records,(reminds me of the old FTP process on the...

View Answer   |  Dec 21 2004  11:02 AM GMT
RPG, Systems management software, Development
asked by sluggo23

  0 pts.

SAVOBJ with different OS release on target

I am trying to FTP a file between two as400 boxes, for which I have to use SAVOBJ on the source and RSTOBJ on the target. Now the source has a higher OS release than the target, so I can use the release version of target system in the "target release" option of the SAVOBJ. But SAVOBJ does not...

View Answer   |  Dec 14 2004  3:14 PM GMT
RPG, Development
asked by Rituraj

  0 pts.

Upload and format CSV file to AS400.

I have a program that simply reads an uploaded CSV Excel file (CUPOBL), formats the fields and writes to a physical file on the AS400. The program currently writes the desired 20 records (disregards record 1), but does not populate with data. I can email a copy of the csv and a text file of the...

View Answer   |  Dec 12 2004  6:35 PM GMT
AS/400, RPG
asked by Mitch81262

  0 pts.

Printing UCC EAN 128 from RPG on AS/400

Hello I am trying to Print Bar Code 128 with FNC1 (Which identifies symbology as "UCC/EAN - 128"). I am able to print simple bar code 128 but not able to add this symbology. I am using the BARCODE keyword. Is it possible to print a UCC/EAN 128 using this keyword? If yes, How will I use it? I am...

View Answer   |  Dec 10 2004  5:49 PM GMT
RPG, Development
asked by UCCEAN128barcode

  0 pts.

Finding a program statement number in the Program Status Data Structure.

According to the ILE RPG Reference manual, positions 21 - 28 of the SDS should contain the statement or listing number at the time of the dump. Whenever I deliberately invoke the dump (via *PSSR) this value is zero. I have checked it in debug mode before and after the actual DUMP and the value is...

View Answer   |  Dec 10 2004  9:24 AM GMT
OS/400, iSeries, i5
asked by mygoodname

  0 pts.

controlling display files built with dds when windowed selection list is overlaid file format

When I display a windowed selection list over the current display file format, data from FIRST INSTANCE of this file format is returned to the background(behind the selection list). When I exit the selection list, current format is redisplayed with current data. Window is diplayed from a called...

View Answer   |  Dec 3 2004  12:54 AM GMT
RPG
asked by rigger

  0 pts.

Using keyword IN in Dynamic SQL WHERE clause

In an RPGLE program I am using embedded SQL. I would like a Where clause that says: WHERE BankCode in (:BankList) and I want BankList to be a dynamic list of banks selected by the user. BankCode is defined as 4,0 decimal and BankList is defined as Character since it may have several banks...

View Answer   |  Nov 29 2004  10:39 AM GMT
SQL, RPG
asked by naturegal

  0 pts.

Calling an API from a RPGIII/IV program, the system is a IBM I5 Iseries.

How do you set-up a data structure for the error code fields used to call and API-QSYGETPH.

View Answer   |  Nov 24 2004  11:13 AM GMT
RPG
asked by lovelight

  0 pts.

AS/400 Trigger programming

Sir, I have a trigger program on a file (File1) with INSERT / UPDATE / DELETE. The requirement is to execute the business logic on the same file (File1). So I'm opening File1 in trigger program in update/add mode. I know that it is not recommended to use the same file in trigger program. The...

View Answer   |  Nov 22 2004  6:56 PM GMT
AS/400, Lifecycle development, RPG
asked by GauriKulkarni

  0 pts.

Certification in RPG

I am planning to get certified in RPG from IBM. Is it a good idea? Could you suggest some self study material please. Thanks

View Answer   |  Nov 22 2004  8:18 AM GMT
RPG, Certifications, Development
asked by ObjectAuthority

  0 pts.

RRN Chain to subfile in RPG-Free

How does one find whether a record is found or not while chaining with RRN to a subfile? Indicators are no good, %Found and %Eof are not valid for subfiles?

View Answer   |  Nov 5 2004  11:07 AM GMT
RPG
asked by ALichten

  0 pts.

Importing iSeries SpoolFiles in Windows

I'm importing succesfully iSeries Spoolfiles in Windows Systems with an ActiveX/VisualBasic application and the CA400's cwbobj.dll. In order to optimize my VB app I would like to have specific informations about cwbobj's function ReadSplf and about filtering the Spoolfiles list by Outq. (Sorry...

View Answer   |  Nov 5 2004  3:53 AM GMT
AS/400, Visual Basic, Microsoft Windows
asked by technet

  30 pts.

Run PC command from CL program

Is it possible to run a PC batch file from a CL program, and, if so, how? Thanks.

View Answer   |  Oct 28 2004  1:09 PM GMT
RPG
asked by Msadmin

  0 pts.

Convert an iso date to julian date

I'm writing an rpgle pgm and I need to convert an iso date to a julian date. They don't have taatool here. Was wondering if anyone has an example on how to do this? Thanks in advance for any help

View Answer   |  Oct 27 2004  4:36 PM GMT
RPG
asked by pjshere

  0 pts.

Restoring Source Files on the iSeries

We are moving to a new i5/iSeries machine. We will be doing a full backup, then a restore, then a SAVCHGOBJ. However, in the past, when we've done a restore of a source file, the existing members get renamed (SRCMBR00001) and the members from the restore get put in correctly. Does anybody know...

View Answer   |  Oct 27 2004  8:30 AM GMT
Installation, OS/400, iSeries
asked by SteveCWI

  0 pts.

701 - 720 of 727