• RPG Programming Standards

    I'M LOOKING FOR RPG PROGRAMMING STANDARDS. We have always had standards example if you create a report the report should have the date, title, program name, page numbers.  Does anyone have a stanards document or is there anything on the web?   I appreciate your help!    

    Superbusy15 pointsBadges:
  • Defining a sort variable (ORDER by) in RPG SQL

    I have a file that I would like to sort on a specific column that a user would choose. I sort the file by an imbedded SQL statement: ORDER by PRDNO. Works fine. If I try and make it a variable (ORDER by :Sort_Seq), the statement is ignored. Is there a way to make the ORDER by a variable in RPG SQL?...

    MurrayInfoSys940 pointsBadges:
  • 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...

    Superbusy15 pointsBadges:
  • RPG/400 Error RNQ1255

    I have a RPGILE (XOP560) program. I am able to compile sucessfully this program. once i call this program i am getting below error. please advice me. Additional Message Information Message ID . . . . . . : RNQ1255 Severity . . . . . . . : 99 Message type . . . . . : Inquiry Date sent . . . . . . :...

    Askt265 pointsBadges:
  • AS400: copybook or module? …or…other?

    I'm on V6R1, using WDSCi 7 to program in RPG IV.  I've accumulated a number of functions that I use in quite a few of my programs, and I was thinking it might be a good idea to go ahead and place them as subroutines (may be wrong terminology) in a copybook.  But, having done some research, there...

    Koohiisan5,020 pointsBadges:
  • File open RPG

    Is there a way in an rpg program to open a file using a character field for the filename? for example: if my file name is TESTFILE I can use the line: (in rpg free)   OPEN TESTFILE; but is there a way to have character field in place of the filename:   D filename          ...

    Srikant5 pointsBadges:
  • DB2

    i have display file which inputs a varibale say Var1.... This is updated in a PF. My problem is program is not updating this varibale in this file. it updates all other varibales...i checked the library list and evrythng is in place... in PF, the field name is Var1. i use the same name for DSPF -...

    Nutangujar895 pointsBadges:
  • Stored procedure

    how to capture the messages sent by Stored procedure.. the one which i'm using is programmed to returned '0001110' if certaine condition do not match...how will i capture this or where i'll see these messages... Thanks, NG

    Nutangujar895 pointsBadges:
  • Number of lines of code in a program

    hi, I've 50 programs to find the number of lines of code in it... is there any smart way? Thanks, N.

    Nutangujar895 pointsBadges:
  • RPG Logic Cycle ?

    HI,     How to know that a RPG program using RPG Logic Cycle or Not?     Jayanta

    2106198125 pointsBadges:
  • Get user id in CGI RPG program

    Please, kindly advise on this issue I am having. Program is coded in RPG and is a CGI module. I tried to get user-id from program data structure, but this "UserID 254 263", but it shows QTMHHTTP, because this pgr runs on HTTP server. How else can I obtain real user-id of the user who is envoking...

    Lenny2113115 pointsBadges:
  • 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);

    Satsho1,245 pointsBadges:
  • 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?

    Ricca100 pointsBadges:
  • Empty Date Type Variable

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

    Ricca100 pointsBadges:
  • 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...

    Floyd02320 pointsBadges:
  • RPG IV Date Formatting

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

    Ricca100 pointsBadges:
  • 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.

    JoBi85 pointsBadges:
  • 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.

    Sanchezedwin215 pointsBadges:
  • 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...

    Compengr200355 pointsBadges:
  • 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....

    JoBi85 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following