• Compiling CL Program

    When compiling a CL program, the program will not compile if the current programmer is not the one who last compiled the program. It gives the following error: CPF2146 40 Owner of object and object being replaced not the same. We then have to delete the object and then compile it. Is there anyway...

    GHENDER250 pointsBadges:
  • New line in message formatting in CL program

    I want to insert a new line in message formatting in CL program. Like Name new line and details new line and rem details. How can insert a new line in message formatting?

    sivakesava285 pointsBadges:
  • CL Program: How to read a file

    How do I read a file (Employee) and get the Emp No. from that?

    PoojaSingh15 pointsBadges:
  • AS400 – Editing an FTP script in CL

    I have written a CL routine to send a file via FTP using the OVFDBF commands for INPUT and OUTPUT. This works fine, however I need to be able to edit my FTP script file somehow in order to change the name of the file in the PUT command. Clearly you cannot pass a variable to this but is there anyway...

    phil75565 pointsBadges:
  • AS/400 CLLE

    What is MONMSG in CL program? And why do we use this? I am not able to understand this concept?

    vivekntt21450 pointsBadges:
  • AS/400: Use of OVRDBR command

    What is the use of OVRDBF command and when can I use it in CL program?

    vivekntt21450 pointsBadges:
  • Answer a monmsg from within CL?

    I have a clp that calls on a prog that sometimes issues a error message. manually i would respond with an I to ignore and all is well. Now my question, can I use monmsg msgid(mycpfmsg)to auto reply to this message. I have it monitoring inside the cl for this message since i thought that by...

    lotofbad205 pointsBadges:
  • Create CL program Update in AS/400

    Dear All, I am learning to write CL program in AS/400 for DB2, maybe call new programmer. I have a file1 include ( field 1 ->10) to have value as: Field 1 Field 2 Field 3 Field 4 Field 5 Field 6 Field 7 Field 8 Field 9 112118 P I 1 A B C D E I want to create CL program update file 1 in AS/400 to...

    Hvphong0311150 pointsBadges:
  • AS/400 CLLE: Scan and replace with other character in CL program

    How to scan for a position and replace that with some other character in CL program? eg : Name = 'Vivek' i should replace 'e' with 'o'. How can I do that in CLLE?

    vivekntt21450 pointsBadges:
  • OVRDBF on iSeries used in a CL program

    I am using an SQL statement to insert into a file. I am doing some sub-stringing on a record then inserting into another file. I am getting a LVLCHK error on the output file. How can I use OVRDBF in my CL to insert to my output file? My file PROFILE has the data and PROFILE2 is my output file and...

    Rrbond07660 pointsBadges:
  • AS/400: How to read a file in CL program

    How we read a file in CL program and which command is used?

    vivekntt21450 pointsBadges:
  • Writing a record to a physical file from CL

    Can I write a record to a physical file from CL? Once I do a test on a record, and before I delete the record, I wanted to write it to a physical file so later I can query over it to list what records were deleted.

    Rrbond07660 pointsBadges:
  • CL program to calculate 31 days less than system date

    I want to write a CL program that will calculate 31 days less than the system date. If a journal receiver is 31 days older than the system date I want to delete it. I already have the logic in another program to also test on whether or not commands SAVCHGOBJ and SAVLIB were used. I normally use...

    Rrbond07660 pointsBadges:
  • Adopting authority in CL program

    I've already created an outfile of all the user profiles and related information. I now want to write a CL program that will read the file-taking each profile and running command DSPPGMADP. Can command DSPPGMADP be used in a CL program?

    Rrbond07660 pointsBadges:
  • Display the Contents of a File

    I need to be able to display the contents of a file named: GTCSTP. After that, I need to display a message that program execution has been completed.

    vexumy15 pointsBadges:
  • What is the use of ‘EDU’ (education) command in CL?

    How can I use the CL command 'EDU' (education)?

    rajat01185 pointsBadges:
  • How to retrieve system name on which I am working in AS/400?

    How do I retrieve system name on which I am working in AS/400?

    M265 pointsBadges:
  • Program not crashing – MCH0603 error

    I am calling a RPGLE from CL program. RPGLE program tries to add records to a 100 element array. When the count reaches 101, I expect the program to crash with error MCH0603 (Range or subscript error). However, the program ends and I don't get an error message on screen. I have to check logs to...

    sri8707240 pointsBadges:
  • How to pass numeric data to CL program from AS/400 command line

    Hi All, I want to pass numeric data of length (8 0) to my CL program while calling from AS/400 command line but program is not receiving correct value into the program. Can anyone please help me how to pass numeric data?

    Mohan K695 pointsBadges:
  • AS/400 CL program

    In CL program I need to take a mbrlist for a particular file and read the member names. I have to write PGM but I got below errors. Please help me.       301-              DCLF       FILE(QTEMP/EMP2)                   * CPD0736 30  Declare command occurs after first operable...

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

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

Following