• Writing CL to run programs, need to monitor for program completion: IF/THEN?

    I'm trying to write a process that will start a program, monitor it for completion and decide to either proceed to the next program if goes END OF JOB, or display a message and terminate the running CL if the program not have successful END OF JOB. I have written a CL that will run all the programs...

    EagerNewb50 pointsBadges:
  • How to send a mail through CL

    How to send a mail through CL?

    gsivakkp86225 pointsBadges:
  • Need to Identify whether a program is using by any user

    I need to create a program which need to verify whether a specific program is using by any other user in the environment, before allowing the user to use the program. Is there any way we can identify in CL or RPG that a program is using by how many users at a specified time?

    Cursorposition195 pointsBadges:
  • How to give If condition in CL/400 program

    Hi, I want to give two If conditions in a cl program to make sure the value of field is between the Range. I am trying to write following line of code but syntax error is coming,any idea/suggestions How can I do comparison at a same time: IF COND(%SST(&ODOBNM 7 4) *LE %SST(&VAR1 7 4)) and...

    6r1,590 pointsBadges:
  • Update a file from CL program

    Why it is said we cannot update a file through CL? We can use RunsqlStm or Runqry to update a record right? If I select a particular record by using Rcvf or opnqryf and then perform runqry/runsqlstm, will it pick the desired record?

    RamvishakRamesh2,505 pointsBadges:
  • CL questions

    1. Does CL check for the file declared in the program before compiling the pgm? or will the cl pgm get compiled if the file declared in the pgm does not exists in the system? 2. Does CL check for the data area declared in the pgm before compiling the pgm 3. If i declare a  physical file in cl and...

    Needhi5 pointsBadges:
  • Recompile CL program

    Hi, We added few new fields to an exising Physical file. When I check for the dependents for the changed Physical file in ALDON it shows 250 dependent objects. Do I need to recompile all 250 objects? Thanks, Elan

    elan0030 pointsBadges:
  • SQL 9010 Error when using RUNSQLSTM

    I have a CL program having the following RUNSQLSTM RUNSQLSTM  SRCFILE(AMBDEV/MSRCAMB) SRCMBR(AMBJARRVK)            COMMIT(*NONE)                            AMBJARRVK is a SQL member file in MSRCAMB source file having this SQL statment DELETE FROM GDPF WHERE...

    MaldaTabbah5 pointsBadges:
  • Colored CL Source

    How do you insert a hexidecimal value in a CL program to change the color of the source using SEU?

    Farmboy6920 pointsBadges:
  • Auto reply to CL-created messages

    Is there a way to automatically reply to either the SNDUSRMSG or SNDPGMMSG commands?

    OldScott10 pointsBadges:
  • Delete objects on AS/400

    Hi I have a list of objects arranged alphabetically, I want to delete these objects in that order from a iseries server, can somebody help me how to write a CL for this?

    ten20081,150 pointsBadges:
  • CL Program Fails after upgrading to V6R1M0

    Since last year we have been running a cl program to delete spool files from QEZJOBLOG output queue after taking backup using brms. The spool files are deleted till a specified date which is mentioned by the operator while calling the program. But after upgrading the OS from V5R4M0 to V6R1M0 the...

    Haaiderali215 pointsBadges:
  • BRMS daily backup

    I need to get the start and end time along with the tape number used for daily back on regular basis...using script..may be CL program...Can any one help me out with the code ?

    Subhro50 pointsBadges:
  • Creating two receivers

    i need to crt more than a 2 rcvr for a user to monitor his different jobs, like CL,RPG,SQL.but there is no option to crt more than two? why itis so?whats the truth behind it?

    Rajasekhar151,395 pointsBadges:
  • CL program to transfer a job to QINTER

    hi guys, this is a long one. i use to telnet a client in a virtual dsiplay, using the command telnet rmtsys(clientsys) rmtvrtdsp(operacao). The problem is that if someone is using this display, and you try to access it, you will be kicked out without knowing why. So, i need some help to write a CL...

    Aringarosa295 pointsBadges:
  • Receiving a Message from Message Queue

    I would like to receive the latest message from as400 message queue. Any one can suggest the best possible way.

    Cursorposition195 pointsBadges:
  • Reading all pfs in production lib. using cl pgm

    Dear all, I want to write a cl program under following scenario. 1. Use the command DSPFD to build a list of files existing in LIBA.(which is Prod Lib.) 2. Read the file. 3. Use Command RGZPFM to reorganize Every File that has more than 1000 deleted records Run the job and then DSPFD again to check...

    6r1,590 pointsBadges:
  • Job Scheduler affecting environment variable

    In CL program I am using QIBM_QSH_CMD_OUTPUT environment variable to direct output to STDOUT and then overriding this to database file. This is to capture logging from sftp server, accessed via batch script. When I run the CL program using SBMJOB from command line it outputs logging to DB file....

    Alleycat20 pointsBadges:
  • Overlay Printing Issue

    I have one overlay that two programs use. When testing I have a very simple CL program with one OVRDBF and two program calls one of which I have commented out because I swithch calls when testing. In trying to print a voucher the main voucher program works fine, I then modify the CL by commenting...

    QTRMaster30 pointsBadges:
  • Updating message files in System i

    Is it possible to add new messages to System i message files from a CL or RPG program?  Instead of manually updating each file with the wrkmsgf command.

    Stacho315 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