• Using prototypes and data structures

    How do I convert the following into using prototypes (including the *ENTRY) and /free?? D RDCTL         E DS  EXTNAME(RDCTL)    

    JamesR90 pointsBadges:
  • RPGLE Trigger – Return Changed Field

    I have a file with an DES encrypted field on the i5 - V5R3. I wrote the program below as a trigger to decrypt the field and return the clear field to the program that initiated the read. I know the decryption works in the trigger but the decrypted data is not returned to the reading program. Is...

    Rlsantucijr445 pointsBadges:
  • Question on SETGT

    Suppose if my logical file has records arranged in descending order of key field..say the LF has the following records EMPNO 10020 10015 10012 10011 10008 10005 10004 Now if I do SETGT with search argument as 10013, will the file pointer position on 10015 and the read operation will read 10015, the...

    A1b2c3330 pointsBadges:
  • How to handle deletion in RPG

    I have a file(A) that needs to have records deleted from it based off information in another file(B). I think the logic should be... Read A Chain to B if criteria met delete record. Is there a better/cleaner way to do this? I do not have much experience with RPG.

    Adeaver20 pointsBadges:
  • OPNQRYF vs. Logical

    Hi, I am not very clear as to when should we use OPNQRYF and when should we use Logical file? Since logical file also offers DYNSLT facility, when is the use of OPNQRYF desirable?? Please advise.

    A1b2c3330 pointsBadges:
  • OPNQRYF vs Logical files

    What are the advantages and disadvantages of logical files over OPNQRYF command??

    A1b2c3330 pointsBadges:
  • Question on OVRDBF command

    Suppose, in my CL program, I am using the following command: OVRDBF file(file1) tofile(file2) The question is: In my RPG program, which file will be read in C specs..will it be Read file1 or Read file2?? Thanks.

    A1b2c3330 pointsBadges:
  • Adopted Authority

    I am extemely new to RPG so I am looking for a simple code that uses adopted authority of SECOFR to an operator temporarily simply to enable users. I know that it can be done, but I would like to know the structure of it from and RPG standpoint. Thanks in advance.

    Rrnmla0 pointsBadges:
  • Multiple message subfiles – one in a window

    My error message is not displaying in the window's message subfile. Both the main screen and the window have a message subfile defined. The RPG program defines the pgmq = '*'. Here's the dds R MSGSFL1 SFL SFLMSGRCD(24) @KEY1 SFLMSGKEY @PGMQ1 SFLPGMQ R MSGCTL1 SFLCTL(MSGSFL1) SFLDSP SFLDSPCTL SFLINZ...

    TabbyCat0 pointsBadges:
  • HOW DO YOU DISPLAY A CONTROL RECORD, A SUBFILE, AND A WINDOW AT THE SAME TIME WITHOUT THE USER HAVING TO PRESS ENTER TWICE?

    WHEN A USER CHOOSES AN OPTION ON ONE SCREEN AND PRESSES ENTER, ANOTHER SCREEN WITH A CONTROL RECORD AND SUBFILE IS DISPLAYED. AS IT STANDS NOW, THE USER HAS TO PRESS ENTER AGAIN BEFORE A WINDOW IS DISPLAYED STATING, "ARE YOU SURE YOU WANT TO DELETE THIS RECORD?" IS IT POSSIBLE TO CODE A HARD RETURN...

    Volunteer0 pointsBadges:
  • Convert Spooled file to Hexadecimal Values

    Is their a way that a spooled file be converted to hexadecimal values?

    Makoy050 pointsBadges:
  • Checking if a job, which has a record lock, is doing anything before ending it

    We have some RPG code which will end a job if it has a record lock, but I would like to be sure that the job is not 'active' (not doing anything) before doing so. Is this sort of detail available via an API call ? Any examples would be gratefully received.

    REDHED0 pointsBadges:
  • Cross reference tool

    Hello, I'm currently working in an AS400 native RPG-environment, not ILE, and I want to create a cross reference for a part of the system(about 10 libraries). I'd like to create this by myself with the common commands on our system, I can do this thru DSPPGMREF and DSPBDR, DSPFD, DSPFFD, etc... But...

    Zappaz5 pointsBadges:
  • CPYFRMIMPF Command Submitting multiple jobs.

    Submitting multiple jobs to do a copy to an AS400 standardized file. This is a great command. I have two systems that I use it on. It works well on one system, however, on the other one it likes to submit multiple jobs to copy blocks of 60,700 records,(reminds me of the old FTP process on the early...

    Sluggo230 pointsBadges:
  • ILE Best method of Parameter handling using Procedures

    Using prototypes and Procedure interfaces I understand that no parameter may be returned if a procedure is called directly via CALLP. And only one parameter may be returned if procedure is called via EVAL with return. What is the best way to return multiple parameters from a procedure (assuming I...

    Barryo35 pointsBadges:
  • Encrypting fields in the AS/400

    Greetings, We are required to encrypt credit card fields in the AS/400 files. I am looking for something convenient to encrypt/decrypt field while in the RPG ILE program. Do we need to buy a software? Does As/400 has its own APIs? Please advise. Thanks Gary Liberman

    GaryL5 pointsBadges:
  • Finding a program statement number in the Program Status Data Structure.

    According to the ILE RPG Reference manual, positions 21 - 28 of the SDS should contain the statement or listing number at the time of the dump. Whenever I deliberately invoke the dump (via *PSSR) this value is zero. I have checked it in debug mode before and after the actual DUMP and the value is...

    mygoodname0 pointsBadges:
  • Calling an API from a RPGIII/IV program, the system is a IBM I5 Iseries.

    How do you set-up a data structure for the error code fields used to call and API-QSYGETPH.

    lovelight0 pointsBadges:
  • How do I find whether a command executed by command line or by a program

    My problem is restricting a command usage in command line but not in programs. I am going to handle it in commands validity checker program.

    Ranjithj0 pointsBadges:
  • View scheduled jobs in a data file

    When using the WRKJOBSCDE command on the AS400, you can see information regarding jobs in the scheduler. Is this information contained in a file which can be accessed for query?

    cmarsellus50 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