• Updating a physical file

    Suppose I have a RPGLE Program P1 And P2 and a physical file PF1 . P1 using PF1 in update mode and p2 also using Pf1 in update mode. When P1 calls P2, it throws an error saying file locked. What can be done. I need to update pf1 in both the progs.

    jainamit380 pointsBadges:
  • DISPLAYING HELP TEXT OF A PROGRAM IN AN INTERNET EXPLORER WINDOW VIA RPGLE

    Hello all, I was wondering if anyone has had any experience in using Internet Explorer in conjunction with RPGLE programs. Now, I'm not looking to go out to any internet site, instead, my boss wants me to create something for our user community. While in an Interactive Program, if the user hits F1...

    Eric Witham690 pointsBadges:
  • IF loop

    key1 chain file1 if %found(file1) elseif key1 chain file2 Can anyone let me know whether the above if loop is correct or not?

    JSDHFKJHA335 pointsBadges:
  • SFL

    I have a SFL. In which I have a option selection field. I have used reverse image indicator for it. But when I insert a wrong value in that field, then the entire column is highlighted instead of the option selection field for that particular record. What should I do?

    jainamit380 pointsBadges:
  • Retrieving the name of a file from object links

    We are receiving a Daily file containing Chassis information via FTP at a scheduled time in the early morning. I have written a process to automatically retrieve this file, CPYFRMIMPF to my Physical File, then process the data into our Chassis Master. Originally, I was told it would be a specific...

    Eric Witham690 pointsBadges:
  • About EVALR Opcode

    Could anyone let me know what is an EVALR Opcode in AS/400? If possible, can anyone give me some sample code which is on EVALR Opcode?

    JSDHFKJHA335 pointsBadges:
  • Write PF using RPGLE

    HI ... I tried to add a rec in my PF (sample1).. but my PGM run successfully .. but the rec haven't added in my PF .... I shared my PGM here sample1 uf a e k disk usropn open sample1 eval empname='Sathis' eval empno=13 eval addr='ramnad' write rec close sample1 eval *inlr=*on Please help me on this

    12we40 pointsBadges:
  • Retriving the source code

    Can we retrieve the source code of an RPGLE object? If yes, please let me the procedure for it. Thanks in advance ravua

    ravula700 pointsBadges:
  • QBatch subsystem Monitoring

    Hi Guys, I have requirements, I need the Job details like( Job Number, name , user) of any job as soon as they entered in Qbatch Subsystem. Do we have any API or some commands to fetch that... The only solution i m thinking is of take the *Print of WRKACTJOB command for QBATCH every minute and...

    ddaswani170 pointsBadges:
  • Using 2 different display sizes in a display file

    I am trying to create a display file in which the subfile uses display size 27 132 and a window uses the display size of 24 80. I thought I could declare them both in the dspsiz as DSPSIZ(27 132 *DS4 - 24 80 *DS3) and use dspmod(*ds4) after the SFLPAG command and DSPMOD(*ds3) on the window display....

    GHENDER190 pointsBadges:
  • Reading XML file from RPGLE program by using XML-INTO opcode

    How can I move data from XML to Data structure if data is more than 9999 in XML? The problem is I can declare the data structure with array max size 9999 where as using XML-INTO (ex: XML-INTO OrderList %XML('/home/orderlist.xml') : ' doc=file case=any') ). I can load first 9999 set of data but then...

    harith170 pointsBadges:
  • How to easily perform date conversions in RPGLE (Including Substringing!)

    Over the years I have had to modify my fair share of outdated code, especially when it comes to Date Conversions. Not every system uses an 8 position numeric date field. The place I'm currently at still has a number of files with a 6 position numeric date field. I was wondering if anyone else had...

    Eric Witham690 pointsBadges:
  • RPGLE SETLL / READE for update getting record lock on different key

    We are encountering sporadic unexpected record locks with update files using: setll (Key1) MasterFile; // Partial key. dou %eof(MasterFile); reade (Key1) MasterFile; if not %eof(MasterFile); // [Stuff] update MasterFmt; endif; enddo; Looking at the problem record by RRN, its key does not match...

    SemiTechieGeo70 pointsBadges:
  • Can I override the record format name in a CLLE to be used in an RPGLE or can I qualify the record format name with a field value?

    Hello All, I ran into a roadblock writing a new purge process for my company. Here's the situation: I have 3 files that hold EDI Data that I need to purge: FILEA - Record Format FILEAR FILEB - Record Format FILEBR FILEC - Record Format FILECR All of the above files have the same record length,...

    Eric Witham690 pointsBadges:
  • Parameter Passing: RPGLE to CMD to RPGLE

    Hello, I have an RPGLE program that I am using to call a command with 1 parameter. The parameter is a container number, 11 positions alphanumeric. I want to be able to run my RPGLE program, execute the command via QCMDEXC and receive/process that parameter within the same RPGLE. Is this possible?...

    Eric Witham690 pointsBadges:
  • RPGLE trigger tables AS/400

    Hi, Does RPGLE triggers can be added to the tables? I created a Table and RPGLE Trigger. But I am getting error saying 'Receiver too small to hold the result'. But the same code is accepting the physical files. Do I need to set any attributes while creating the RPGLE triggers or tables? Please...

    As400pgmmer305 pointsBadges:
  • Remove blank space and dash

    Hi, I wanted to know how can write code in RPGLE for input as 123-456-7 8 9  and output as 123456789? Please help.

    kirti26915 pointsBadges:
  • Need to know who have modified the object (RPGLE object in AS/400)

    RPGLE object was changed and we can see it is DSPOBJD. We want to know who had changed the object? Thanks in advance.

    ravula700 pointsBadges:
  • RPGLE

    I need to change primary and secondary file into full procedure file. Can anybody help me?

    eductn70 pointsBadges:
  • Data area in RPGLE

    I want to create an id that is auto incrementing in RPGLE using data area.

    rpgledataarea12345678910 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