RPG Questions and Answers

Recent IT Questions

41 - 60 of 727

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.

RPG ILE Day of Week

Are there alternate ways to determine the day of the week. I have the following formula - DayOfWeek = %Subst(('Sunday ' 'Monday ' 'Tuesday ' 'Wednesday' 'Thursday ' 'Friday ' 'Saturday ' ):(((%Rem(%Diff(%Date():%Date('1941-12-07'):*D):7)+1)*9))-8:9);

View Answer   |  Aug 11 2009  6:56 PM GMT
RPGILE, AS/400, RPG
asked by Satsho

  1235 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.

PGM described update file

Hi, I'm trying to update a program described file. I have tried setting the F specs up to allow processing by key by placing the following information in the noted locations: 07-14: file name 15: "U" 16: "F" 19: "F" 26-27: File length (32) 30: The length of the key (8) 31: "A" 32: "I" 38: The...

View Answer   |  Aug 10 2009  9:15 PM GMT
PGM described file, RPG, PGM
asked by Floyd02

  270 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.

HELP -- RPG 400 LOCAL DATA (LDA)

Can i usr tow lda (local data area) in one CL program that calls an RPG program? if so please help with code illustations thanx

View Answer   |  Jul 30 2009  8:54 PM GMT
RPG, RPG/400
asked by Sajjadahmad

  5 pts.

RPG/400 - Reduce Manual Intervention

Currently when we run EOD we have to wait for the other system's file. If the file did not arrive after some time, I will prompt message for operator to reply the message when the file is ready. How do I split my job so that we can use control M to submit the job and reduce operator intervention....

View Answer   |  Jul 29 2009  7:33 AM GMT
RPG, RPG/400, EOD process
asked by JoBi

  45 pts.

SQL in CLP

Hi, I have to create a command that permits a user to copy records from one file to another and then remove those records from the first file. We've been doing it all manually using CPYF and INCREL and then deleting the records using an SQL Delete statement. I got the idea to create a command and...

View Answer   |  Jul 28 2009  2:05 PM GMT
RPG, SQL
asked by Floyd02

  270 pts.

Remove hard coding AS/400 RPG

Hi, I have a program that will be used in different countries. Each country have different selection criteria. How do I design my program such that I do not hard code the selection criteria? Note: Selection criteria could be more than 1 fields or from more than 1 file.

View Answer   |  Jul 28 2009  6:48 AM GMT
Hard Coding Solution - AS400 RPG, RPG
asked by JoBi

  45 pts.

Settin on LR indicator not closing files

I have a service program that ends with *INLR but it does not close the files after its procedure is called. It is compiled with ACTGRP(*CALLER) the program that uses it is also compiled with ACTGRP(*CALLER). However, if I use the CLOSE op code, the file closes. Is this natural or should this be...

View Answer   |  Jul 15 2009  9:09 AM GMT
*INLR, LR indicator, *INLR problem
asked by Bogeybetsy

  325 pts.

Default value of a Indicator data type

Hi, can you please temme, what is the default value of a Indicator data type (N) which is declared with 'INZ'?

View Answer   |  Jul 15 2009  7:47 AM GMT
RPG, RPG/400, Data Types
asked by Srinis

  30 pts.

RPG ILE ending program properly on an error

Hello, Could someone please help me with this? 1. I have an ever running job that calls a particular ILE program (PGM A) to do some XML parsing and composing. 2. PGM A calles another program PGM B (which in turn has modules MOD B, MOD C and a NOMAIN module MOD D binded to it). 3. PGM A parses the...

View Answer   |  Jul 13 2009  5:34 PM GMT
RPG ILE, RPG, RPGILE
asked by Compengr2003

  55 pts.

How to programming with national language in RPG?

Hello experts, I would like to write a program in RPG to print out Vietnamese characters with accents, for example ắ, ấ, ỏ, ọ, ... But I don't know the way AS/400 can support. In SBCS, just some of characters are support. I really appreciate if you guys advice me a solution. Thanks. Tuan...

View Answer   |  Jul 9 2009  5:08 PM GMT
RPG, RPG Language Support, AS/400 Languages
asked by Nta2804

  35 pts.

email from rpg

I want to be able to email from a RPG/CL several .csv files from the IFS

View Answer   |  Jul 9 2009  1:49 AM GMT
Email IFS files, RPG, CL
asked by Joeyski

  15 pts.

Is SQL Commitment level extended to non SQL programs called

I have an SQLRPGLE program that calls an RPG program. I know that the SQLRPGLE program has an internal commitment control engine activated, but will it extend onto the RPG program I call from here?

View Answer   |  Jul 8 2009  10:16 AM GMT
SQL commitment control level, SQLRPGLE, RPG
asked by Ragenrags

  10 pts.

CPF5149 on Delete using SHARE(*YES)

I am receiving a CPF5149 error when trying to perform a delete of a record in a file that is defined as update/add in the F spec. Unfortuneately, the software package my company uses requires SHARE(*YES) on all database files. I am fairly sure that the problem is caused by the file being opened at...

View Answer   |  Jul 6 2009  2:59 PM GMT
RPG, iSeries RPG programming, RPG Programming
asked by Joy Stalnecker

  120 pts.

Help to get good course to learn RPGLE!

Hi all. I am a beginer in RPG and i really want to have a full course step by step to learn and understand RPG programming . Can any one lead me to any good free accessed Books or materials that can help me , are their any book's servers for IBM other than that IBM info center ?? Thanks in...

View Answer   |  Jul 2 2009  6:17 PM GMT
RPGLE, RPG, RPGLE Training
asked by NA

  35 pts.

Free websites to access AS/400

hi,Any one can tell the free sites to acess as/400 where we can do the actual RPG coding.

View Answer   |  Jul 1 2009  12:04 AM GMT
RPG, RPG Programming
asked by Sabarish

  60 pts.

Incorporating physical file change in dependent program

Hi, is it possible to incorporate physical file changes (using the new level check identifier) without recompiling the rpg? (Say we have the physical file to be changed, but we do not have the source for the rpg, only the object)

View Answer   |  Jul 1 2009  8:51 AM GMT
Level Check, recompile, RPG
asked by Siri

  35 pts.

How to define password field in display file.

Hi, In my project i need to create a display file with username and password. But while typing password the text should not visible to user. So any one can tell how to define the password field in AS/400.

View Answer   |  Jul 1 2009  8:21 AM GMT
RPG III, RPG/400, RPG
asked by Sabarish

  60 pts.

41 - 60 of 727