RPG ILE Questions and Answers

Recent IT Questions

101 - 113 of 113
<<PREVIOUS 1|2|3|4|5|6 NEXT>>

%diff and data structures

I have dates that come into my program as cn yy mm dd. I put these pieces in a ISO data structure to do some calcs. I want to find how many months transpired between to dates using the %diff. Can I do this with the dates being in a data structure? My program is telling me my parameters are invalid....

View Answer   |  Feb 27 2006  11:59 AM GMT
RPG ILE
asked by JLGARSEEYA

  0 pts.

synchronize jobs

Hi! How can I synchronize two or more RPGLE/CL programs that are executed via SBMJOB command, in order to avoid conflicts in using files and dataareas? If you could send me an example, it'll be greatly appreciated. Thanx in advance, Meli :)

View Answer   |  Feb 7 2006  6:02 PM GMT
CLP, RPGLE, RPG ILE
asked by MelissaG

  20 pts.

ftp error codes

Hi! I'm writing a program that needs to execute the FTP command n times (where n is determined by the value of some field in a DDS table), only if there is an error during one of those executions. The question is: how can I determine if the execution failed? Thanks a lot! :) Meli

View Answer   |  Jan 31 2006  2:25 PM GMT
CLP, RPGLE, RPG ILE
asked by MelissaG

  20 pts.

String Scramble

I need to take a 10 character alphanumeric string input by the user and redisplay that string with the letters scrambled and at a loss how to go about it. It has been awhile since I have programmed in RPG. Is there a RANDOM function in RPGIV like in windows programming?

View Answer   |  Jan 18 2006  11:01 AM GMT
RPG ILE
asked by Marsha

  0 pts.

verify data file

Hi everyone! I've a CL program that copies a spool file into a PF file. Is there any way to compare both files, in order to assure they have the same information? Thanx in advance :) Meli

View Answer   |  Dec 19 2005  7:24 PM GMT
CLP, RPGLE, RPG ILE
asked by MelissaG

  20 pts.

RPG/ILE re-entering workforce

I am 45 & want to re-enter workforce after 3 years out of IT. I used RPG for 15 years(not even ILE) and have BPCS experience. I have just picked up a couple of books (SQL and Free-format RPG) to study at home. I think it will be very difficult to get back in .... any ideas/hints/tips would be...

View Answer   |  Nov 30 2005  7:39 PM GMT
SQL, RPG, RPGLE
asked by Bazza71

  0 pts.

Utility to Print RPG Output Specs

Does anyone recall or use a utility that was used in "the old days" to print a listing of the O-specs in RPG II. The utility would review an RPG source member. It would then print a listing of what the output heading and detail lines would look like. It used "X"s and "9"s to show lengths of fields...

View Answer   |  Nov 28 2005  12:23 AM GMT
RPG, RPG ILE
asked by MikeBaker

  5 pts.

write in a PF file

Hi everyone! I have an RPGLE program that creates four physical files (using the QCMDEXC program). These physical files have no DDS. In the same program, I read another physical file (that's a copy of a spool file). If the line (s) read met some specified criteria, it needs to be written to one of...

View Answer   |  Nov 25 2005  10:03 AM GMT
RPG, CLP, RPGLE
asked by MelissaG

  20 pts.

email messages in rpg

Hi! I need to send an email message to a Lotus Notes Server. The information contained in this email will be sent by an RPG program. The big question is, how do I do that? Can anyone help me, please? Thanx in advance Melissa

View Answer   |  Nov 16 2005  5:03 PM GMT
RPG, Lotus Domino, RPG ILE
asked by MelissaG

  20 pts.

Writing to a file with a data array

Have a PF with 50 fields named COUNT1, COUNT2, ... COUNT50. Wondering how I can read an array and loop each time x increments 1, put the value in the corresponding field? example AR1(x) goes to COUNT1 when x = 1, AR1(x) goes to COUNT2 when x = 2.

View Answer   |  Nov 1 2005  2:33 PM GMT
RPG ILE
asked by hllwyrs

  0 pts.

DCLF in CL

Hi! Can I open two database files in a CL program using DCLF? I've been trying to do it, but I receive an error related to OPNID. If you could send me an example, it would be greatly appreciated. Thanxs. Melissa

View Answer   |  Oct 28 2005  10:49 AM GMT
AS/400, RPG, RPG ILE
asked by MelissaG

  20 pts.

iseries prepared stored procedure call from ile rpg

how i call a dynamic(prepared) stored procedure from ILE RPG IV ?

View Answer   |  Oct 6 2005  12:19 AM GMT
SQL, DB2 Universal Database, RPG ILE
asked by ANDROT

  0 pts.

Use of %Lookup BIF in Free form RPG - V5R3?

Hi, I am having a problem when I try to use the %Lookup BIf in free form RPG. It doesn't seem to be functioning as it is supposed to. Is there something that I am missing (like PTFs) or is there a workaround to this problem if it is a previously known issue? Thanks for your help!!

View Answer   |  Sep 12 2005  12:21 AM GMT
AS/400, RPG, Database
asked by adityavarma

  0 pts.

101 - 113 of 113
<<PREVIOUS 1|2|3|4|5|6 NEXT>>