RPG IV Questions and Answers

Recent IT Questions

1 - 20 of 38
<<PREVIOUS 1|2 NEXT>>

Purpose of binding directory in CGIDEV2?

I'm a little stuck.  I'm trying to follow some guides regarding using CGIDEV2 on my iSeries V6R1 to do AJAX.  I've looked at easy400.net as well as some other references, but I keep having the same issue.  I keep getting error CPF980F 'Binding directory [dir] in library *libl not found.' Do I...

View Answer   |  Oct 19 2009  5:52 PM GMT
RPG IV, CGIDEV2, Ajax
asked by Koohiisan

  985 pts.

6.1 OS

Will RPG IV programs generated using the increase field sizes in 6.1 be able to run on previous versions (i.e. V5R4)?

View Answer   |  Oct 1 2009  6:18 PM GMT
RPG IV, V5R4, RPG
asked by Dcarney

  30 pts.

Best way to retrieve values, SQL or Queries and how?

Hello everybody, my problem is, in a iseries i have ia file and in this file exist one field with 10000 lenght (character) and i want retrieve a value like (  60F: ) but i don´t know in what position, after i find this value i need the follow values. ex: this is a part of one record  {4: ...

View Answer   |  Oct 1 2009  10:33 AM GMT
SQL, Query/400, CLP
asked by BUG68

  80 pts.

Recommendations on learning CGI for RPG-backend website?

Anyone have any good recommendations on (free) sites where I could learn CGI from examples, etc?  I'm going to be creating some interactive webpages for our company, and am told I'm gonna be doing it in CGI+RPG...so...better learn it! I am familiar with using APIs, and ILE RPG, and HTML+CSS and a...

View Answer   |  Sep 24 2009  6:51 PM GMT
AS/400, CGI, RPG IV
asked by Koohiisan

  985 pts.

S/36 RPG program using a Data Area

We enter in vouchers from a variety to locations. All of the voucher entry programs are written in RPG IV and use a Data Area to get the next voucher, update the data area using lock in/out. This all works very well. We have an older S/36 program that populates Employee Expenses into the voucher...

View Answer   |  Sep 15 2009  4:17 PM GMT
AS/400, S36E, RPG
asked by Superbusy

  15 pts.

How do you know if a record exists without doing a READ and CHAIN?

How do you know if a record exists without  doing a READ and CHAIN? is it possible with BIF's or ? Software/Hardware used: AS/400

View Answer   |  Sep 7 2009  11:57 AM GMT
RPG IV, AS/400 Records
asked by 7211

  15 pts.

Empty Date Type Variable

  What does a *ISO Date type variable contain if it is not populated? It is not *Zero or *Null???  

View Answer   |  Aug 12 2009  10:10 AM GMT
RPG IV, RPG, RPG Programming
asked by Ricca

  70 pts.

Date Formatting in RPG

I have a date in a DATE type field in *ISO format (ccyy-mm-dd) However, I want to extract the YY portion. Using %SUBDT(field: *Y) returns CCYY. Is there a nice way of doing this without using a data structure?

View Answer   |  Aug 11 2009  10:22 AM GMT
RPG IV, RPG, RPG Programming
asked by Ricca

  70 pts.

RPG IV Date Formatting

What is the best and cleanest way to convert a character date dd / mm / yy to *ISO format?

View Answer   |  Aug 5 2009  12:49 AM GMT
RPG IV, RPG Date Formatting, RPG
asked by Ricca

  70 pts.

Qualified Data Structures

What is a Qualified Data Structure? Where can I find information on them? IBM RedBooks dont seem to have the answer????

View Answer   |  Aug 3 2009  11:18 AM GMT
RPG IV, Programming, Qualified Data Structures
asked by Ricca

  70 pts.

Xing out of an AS400 session

We have several users who instead of properly signing off the AS400, they simply X out of it. This is causing several problems such as files are being locked. Is there any way I can prevent users from Xing out of an AS400 application?

View Answer   |  Jun 26 2009  8:42 PM GMT
RPG, RPG IV, RPG ILE
asked by GHENDER

  50 pts.

How to find out which embedded SQL taking more time in RPGIV program

Hi All, I have 4 Embedded SQLs in my RPGILE program. Can any one tell me how to find out which SQL taking more time to execute ? are there any commands/methods to find out ?

View Answer   |  Mar 31 2009  12:42 AM GMT
RPGILE, Embedded SQL, RPG IV
asked by Mohan K

  465 pts.

Convert character field in decimal field.

hi, everybody i need a help for this: waval = 15A wnval = 15 2 i put in my source this eval wnval = %dec(waval:15:2) but when i run the program stop with error in this line. what i need to do, because i want this example: waval = 123456789012345 wnval = 123456789012345.00 but if i put...

View Answer   |  Mar 17 2009  6:58 PM GMT
RPG ILE, RPGLE, RPG IV
asked by BUG68

  80 pts.

Create XML with RPG IV

Create XML with RPG IV

View Answer   |  Mar 10 2009  8:59 PM GMT
Create XML with RPG IV, RPG IV, XML
asked by Cyndie

  5 pts.

random number

Can anyone pos thet code in RPG 4 or logic to generate random number....?

View Answer   |  Mar 6 2009  4:42 PM GMT
RPG IV, iSeries RPG programming
asked by Harshaljg

  10 pts.

How to determine the RPG version

Hi, Can you tell me how to know the RPG version (III or IV) in our AS400? Also, if it's ILE? Thank you.

View Answer   |  Feb 20 2009  10:41 AM GMT
RPG, RPG III, RPG IV
asked by Sanchezedwin2

  15 pts.

Pop-Up Calendar with RPG

I found a link that would show me how to code a pop-up calendar on the AS400. However, when I went to that link, it was invalid. Does anyone know how to create RPG code for a pop-up calendar on the AS400?

View Answer   |  Feb 8 2009  11:31 PM GMT
RPG, RPG ILE, RPG IV
asked by GHENDER

  50 pts.

how do you code a table in rpg

I need to code a table in rpg iv. I'm new to rpg and need assistance on coding techniques as it pertains to creating a table in a rpg iv program

View Answer   |  Jan 12 2009  9:14 PM GMT
RPG, RPG IV, RPG ILE
asked by Simobam

  10 pts.

Tools for example unit test source RPG

I need tool for test code. any proposals ???

View Answer   |  Nov 24 2008  7:59 PM GMT
RPG, RPG IV, RPG Testing
asked by RPG1982

  5 pts.

RPG Array

Hello ! Can I check for all the elements of an Array in single statement ? e.g. If Array(*All) = *Blanks ? I want to check that all elements of an array is blank or not.

View Answer   |  Nov 24 2008  9:47 AM GMT
RPG, RPG IV, Report Program Generator
asked by Uppikal

  5 pts.

1 - 20 of 38
<<PREVIOUS 1|2 NEXT>>