• How to trap the errors with out using monmsg?

    Is it possible to trap the errors in CL with out using MONMSG.let me explain?

    Nagraj32225 pointsBadges:
  • Graphic to text conversion in AS/400

    i have a program in that program graphic characters are there how to convert graphical character to as400 characters using cl program only.how is it possible in as400 

    madhuchowdary350 pointsBadges:
  • Add Variable Field to Menu

    I wanted to add a field to a menu that is not a constant field, but one that may be populated by a CL program. I have a log on program built that asks for a user ID and some identifying information. From that I obtain their personal information. I'd like to be able, at the top of a menu which...

    Bunk40 pointsBadges:
  • cl which command do we use to update a physical file in CL program?

    which command we use to update a physical file in CL pgm?

    Cyjil10 pointsBadges:
  • How can I list users whose status is disabled on AS/400 ?

    Hello everybody ! I have to make a cl program in order to list users whose status is disabled. I wanted to know if someone had  tips for me. Thanks

    Kilizan15 pointsBadges:
  • Find/Replace/Reformat Text in COBOL or CL400

    As part of a rebranding exercise I need to create a program to find/replace variable length text within a file. I know I can do this easily enough via INSPECT/REPLACE (or maybe QCLSCAN in a CL) but has anybody got ideas about how to reformat afterwards (data in the file is stored typically in...

    Abby705 pointsBadges:
  • Writing command WJ that will do the same thing as WRKACTJOB?

    need you help once more. I want to create a cl program. instead of wrinting wrkactjob, i want to write wj having the same result. The problem is i don´t know programming, so if somebody could make a clp to me so i could read it and understand it, it would be great. Tanx a lot

    Aringarosa295 pointsBadges:
  • How to send email through RPG IV or CL?

    [strong]I need to send my spool file thru  email [/strong]

    22917510 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:
  • Is there a way a user who is the owner of is userprf enable is disabled id without logging in to the system

    Is there a way a user who is the owner of is user profile be able to enable is disabled id without logging in to the system. Eg. say by using rcmd? using ftp.

    JohnsonMumbai1,160 pointsBadges:
  • CLP parameters overwritten

    Hi.  When I call a CLP, either from command line or from a sbmjob with alpha parameters, if I don't fill up the whole string length it's trailing blanks are overwritten by the next parameters.  Example:  PGM PARM(&P1 &P2 &P3)  DCL VAR(&P1) TYPE(*CHAR) LEN(50)  DCL VAR(&P2) TYPE(*CHAR)...

    Jsebastians15 pointsBadges:
  • STRPCO can’t recognize batch commands

    Hi, I have this program in CL using STRPCO to call a batch file on my PC, but when the CL program with strpco starts to call the batch file the dos black screen shows an error message saying "choice" command is unrecognizable, but when i manually execute it by double clicking the batch file from PC...

    Jimmy0315 pointsBadges:
  • Reading a file in Reverse Order in CL Program

    ) In CL program how can we read a data base file in reverse order.

    Chraghuveer25 pointsBadges:
  • Variable number of parms in CL

    I know I have check in RPG for a variable number of inputted parms. Can I do that in CL also?

    CharlieBrowne41,380 pointsBadges:
  • qshell job log

    Hi When I run any qshell command in my cl program, the job log for qshell gets created in QZSHSH. Is there any way that we can prevent creation of such job logs. Thanks Vivek

    VivekSharma120 pointsBadges:
  • Capture Return value of Script in CL Program

    Hi I am running a script file which returns some value at the end of the script. i.e. the last line of my script is "exit returnVal". The value is also populating in the returnVal variable correctly but I don't know how can we capture this return value in my cl program. Could anyone please help me...

    VivekSharma120 pointsBadges:
  • ODBC connection and IP address

    Is there a way to get the IP address of a client/server job attached to QZDASOINIT?  I can see message CPIAD02 in the QZDASOINIT job log which lists the user and IP address and I need to get this information into a CL program which runs each time the user connects to the QZDASOINIT process. ...

    BISHT321245 pointsBadges:
  • 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.  

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

    CharlieBrowne41,380 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) ...

    Dcantwell470 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