• OPNQRYF HOW?

    HI Everyone,  i need a idea, i have on CL program (pgm parm) a field wndate(8,0) and i need make a opnqryf (file1) compare wndate with mvdatl(8,0), but i only wanted the first 6 position (yyyymm) of both . Anyone give a idea how can i made this? OS/400 in V5R4M1 thanks in advanced.  

    BUG68225 pointsBadges:
  • AS/400 Record Count

    I need a command to use in a CL program that will give me the record count for all records in a file. RTVMBRD will do it for a single member, but I need it for MBR(*ALL). I know I can dump a *MBRLIST to a file and tally it up form there, but if someone already has this, why reinvent the wheel.

    CharlieBrowne39,815 pointsBadges:
  • Handling errors in CL Programs

    I've been searching all over the internet (and this site) looking for a good way to generically handle errors within a CL program.  Everything's seems very vauge to me. What I'm looking to do is something like this: CHGSPLFA   FILE(&SPOOLFILE) SAVE(*NO)  MONMSG     MSGID(CPF0000) ...

    Dcantwell465 pointsBadges:
  • I have more than 1000 objects in one library need to segregate type wise.

    I have more than 1000 objects in one library need to segregate type wise like Program, Report, CL, Display Screens & also we write some Report Programs in RPG.[o:p][/o:p] Anyone have idea to segregate objects without any manual efforts.[o:p][/o:p]

    MKamil110 pointsBadges:
  • While calling a command via a CL program exposes my command line.

    While calling a command via a CL program exposes my command line. Is it possible to hide the command line while executing the command via cl. I need to do this as iam executing the cl with adopted authority.

    JohnsonMumbai1,160 pointsBadges:
  • Save IXS CL program

    Does anyone out there have a CL program which saves all the objects on an IXS?

    WoodEngineer6,055 pointsBadges:
  • How to retrieve the jobq in which my current job is running in CL?

    I have a CL program which will run as a SBMJOB. Now I want to see whether it is running in QBATCH jobq. If not in QBATCH, I have to resubmit it into QBATCH. How I can do it in CL?

    JustinA40 pointsBadges:
  • Rename file in CL

    Hi all. I need to check if the file exist, and rename it. t How do I check file existing in CL? Thank you.

    Larisagas265 pointsBadges:
  • Displaying on the message line through CL

    Thru CL how can I display a message on the message line?

    22917510 pointsBadges:
  • CL date extraction in AS/400

    I want to take out date value from today to last 7 days in CL command. Kindly help

    Sangay635 pointsBadges:
  • FNDSTRPDM – how do i find joblog

    I am using FNDSTRPDM command in my CL program for each file/field and running through RPG programs if the string is found. If I specify the wrong file (QRPGLESRC) and the program is found in QRPGSRC, I get the error PDM0055, which i can monitor. However, if the program is found and the string is...

    Dhaloo25 pointsBadges:
  • Accessing OUTQs and writers in AS/400

    I have been tasked with writing a CL to accept the following incoming parameters USER NAME, OUTQ NAME, LIBRARY NAME, & RETURN CODE.

    UARTJ105 pointsBadges:
  • Compiling a CL program

    I have a CL pgm in that i used the OVRDSPF command. Now i changed the display file. I'm sure i need to compile the RPG programs that are using the display file. Have a doubt if i need to compile the CL pgm or not?

    Kvrs8070 pointsBadges:
  • AS400 Netserver

    I am trying to implement data exchange between and AS400 and a Windows server using the AS400 NetServer (QNTC). What steps are necessary to setup and activate the connection? Where can I find examples of CL programs that do file transfers.

    RichK1151105 pointsBadges:
  • What date is returned after midnight rollover on AS/400 job queue?

    We have nightly jobs that are queued up to release at 23:59 each night. Depending on how many are released at once, it may or may not make it into the jobq before midnight. The main CL program calls a second CL program after midnight. The called CL program uses the RTVJOBA command to get date....

    Canuhp235 pointsBadges:
  • Retrieve Journal Receiver Attributes

    We have different Environments on our Productions system with separate Journals and their corresponding Journal Receivers. Using a CL Program i want to retrieve the Journal Receiver Attributes of all the curently attached Journal Receiver in the system.

    Haaiderali215 pointsBadges:
  • CL program for measuring tape backup

    i need an example of cl program that reads tape volume and executes the commands in their ok.

    as400tarek105 pointsBadges:
  • Using AS400 COBOL or CL Program to Call an Excel File and Pass Parameters Back and Forth from 400 to Excel Back to 400

    [html xmlns=""> I am beginning my investigation to figure out how to use either a 400/COBOL program or a CL program to call an excel spreadsheet that requires three parameters to a calculation and to return a value back to my 400/COBOL program of CL program so that I then can use that value in my...

    400Programmer185 pointsBadges:
  • CL Programming

    Hi Gurus, in cl how to write download file code.and use it in rpg? Is there any command for download file? Thanks & Regards, Sudheer

    Sudheerk9950 pointsBadges:
  • passing variable in CL Program using QMQRY and SQL

    Hi, I'm setting up a process where I can add or delete a record in a physical file. I'm using a simple CL program that runs a couple QM Queries. QMQRY - REVEALADD INSERT INTO mylib/myfile (myfile) VALUES(user) QMQRY - REVEALDLT DELETE FROM mylib/myfile WHERE myfile = '&USER' CL code...

    Bggas400160 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