RPG/400 Questions


RPG/Asset
Can a rpg program in asset be converted to rpg400 or ile?If so how

Answer Question   |  November 26, 2008  6:27 AM
RPG, RPG ILE, RPG/400, RPG/Asset
asked by:
0 pts.

rpg400
How to validate a alphanumeric field that is of length 20 but should not allow values less than 12?

Answer Question   |  November 25, 2008  1:17 PM
RPG/400, RPG/400 field validation
asked by:
0 pts.

Flat files
I have a data in data strucure then after i need to create flat files in txt format. please suggest me how can i proceed.

Answer Question   |  November 26, 2008  12:51 PM
Flat files, RPG data conversion, RPG/400
asked by:
265 pts.

DSPF prog
Thanks for ur response.I have a small clarification.If all fields on the screen is from 1 file chain and then exfmt will work.What if the screen has fields form more than 1 file.

Answer Question   |  November 25, 2008  12:51 PM
AS/400 Display File, Display File, DSPF, RPG, RPG/400
asked by:
0 pts.

DSPF programming
Hi Please explain… When i open a screen in update mode how does the value get displayed in the screen and when updated it gets updated in the file.what is the general coding logic used in this case.

Answer Question   |  November 26, 2008  9:26 AM
AS/400 Display File, Display File, DSPF, RPG/400
asked by:
0 pts.

RPG procedure
Hello Martin, Below is the codeline which i used for reading a DB file via RPG: FMYFILE IF E K DISK C READ PFRPG1 C DOW NOT%EOF C NAME DSPLY C ID DSPLY C ADDRESS DSPLY C ENDDO C SETON LR could you verify the code b’coz i am not getting the output.

Answer Question   |  November 25, 2008  5:32 AM
Database programming, fMyFile, RPG, RPG/400
asked by:
20 pts.

Display files in AS/400
I am getting stated with RPG400.I hev this requirement to add a new field in an existing screen and move this value to a new PF.This is when the screen is opened in crete mode. the other screen where the new field is to be added is the update screen.In this screen value is to [...]

Answer Question   |  November 24, 2008  9:37 AM
AS/400 Display File, Display File, PF/LF, Physical File, Report Program Generator, RPG, RPG/400
asked by:
0 pts.

Reading a database file via RPG program
could anyone provide me with the codeline for reading a database file via RPG program

Answer Question   |  November 24, 2008  5:49 AM
AS/400 database, RPG, RPG/400
asked by:
20 pts.

How to monitor job activity on AS/400
How is it possible to tell on AS/400 that the program (RPG) is just “idling” on the screen and the user is not really using it ? I need the way to monitor it to end the job if the program is not being used.

Answer Question   |  November 21, 2008  1:41 PM
AS/400, ENDJOB, RPG, RPG/400
asked by:
10 pts.

RPG error RPG9001
I am received error code QRG9001 error while compliling RPG/400 PROGRAM os version is V3R7M0 on my AS/400 server can anybody help me to resoved this

Answer Question   |  November 24, 2008  9:54 AM
AS/400 error messages, Error QRG9001, RPG, RPG compilation error, RPG/400, V3R7
asked by:
Bu
60 pts.

Receiving an XML file to RPG
HI, I need to receive xml files ( of fixed format ) to my rpgle progrm ( not free format RPG ) and do some calculations. Can i do this without purchasing any tools ( free tools can be used). Please let me know if anyone has done something similar Regards, Kiron

Answer Question   |  December 8, 2008  7:35 AM
AS/400 development, AS/400 import/export, RPG, RPG/400, RPGLE, XML
asked by:
5 pts.

Modules in RPGLE
Hi, Can anyone tell me what is module in RPGLE and how is it created? alos tell me how this can be called from rpgle?

Answer Question   |  November 3, 2008  11:49 AM
RPG, RPG Modules, RPG/400, RPGLE
asked by:
5 pts.

Barcoding in RPG/400 DDS
How can I code an EAN13 barcode in RPG 400 DDS

Answer Question   |  November 4, 2008  9:36 AM
Barcode, Data Description Specifications, DDS, EAN-13, RPG, RPG/400
asked by:
25 pts.

RPG/400
Hello ,how can we Migrate fromcurrently running on UNISYS platform to AS/400 platform. Major portion of the source application is in COBOL and uses the DMS-II database. This has been migrated to COBOL and RPG on AS/400 using the DB2/400 database

Answer Question   |  November 3, 2008  2:02 PM
AS/400 database, AS/400 import/export, AS/400 migration, COBOL/400, DB2/400, RPG/400, Unisys DMSII
asked by:
126
170 pts.

Grouping the records in RPG
How to I group the records in the database based on one particular field?? When i try using a group by clause in the embedded SQL, it give me a ‘SQL precompile failed’ error. How do I handle this?? And i have to display the employee records grouped by their locations… how can this be [...]

Answer Question   |  October 22, 2008  4:39 AM
AS/400 database, AS/400 development, AS/400 error messages, Embedded SQL, Report Program Generator, RPG, RPG/400, SQL precompile failed, SQL/400
asked by:
20 pts.

diff. between two date
Hello guys, I wanna do a one pgm which is find out date diff. between two date in rpg /400. Actually i did this in rpgiv…but now i want to do it in rpg/400. can somebody provide me a exact logic behind this.. Thanx in advance…..

Answer Question   |  October 15, 2008  11:50 AM
AS/400, RPG/400, RPGIV, RPGLE
asked by:
35 pts.

iSeries IBM
What would be the output of the variable result? D RESULT S 5S O INZ(00011) C EVAL RESULT = %TRIM(RESULT) Please give me the correct answer for this A.0001 b.compile time error c.11 d.Runtime error

Answer Question   |  October 13, 2008  5:36 AM
AS/400, RPG, RPG/400
asked by:
50 pts.

Password Expiry
Hi,if i want to change my password after 15 days ..then plz gv me a coding for that in rpgiv….

Answer Question   |  July 31, 2010  4:54 AM
AS/400 user permissions, RPG IV, RPG/400
asked by:
35 pts.

About Program Described input files
hi all, Can anyone explain me what is meant by Program described input files and what is the use of this files compared to Externally Described files and please give one complete example program of using Program described files with I SPECS and explain me about Record identification codes

Answer Question   |  July 31, 2010  6:16 AM
I-Spec, Record Identification Code, RPG, RPG ILE, RPG/400
asked by:
695 pts.

Link for download subfile programming in RPG ILE
HI , i am working on ile rpg , & i just started to work on subfile programming . i want to lean subfile programming because i didn’t work on it yet. i dont have any source like any document . i have downloded a pdf file for subfile programming its good but it is [...]

Answer Question   |  July 31, 2010  5:30 AM
RPG, RPG ILE, RPG/400, Subfile
asked by:
310 pts.