• Help with CL to answer MSGW on printer WTR

    I have been out of programming for a few years, and am pretty rusty. We run a system that the end users have no command line access. Their printers have occasion to go into MSGW status (ie out of paper, etc.). They then have to call to get support to answer the MSGW on the WTR. I am hoping to be...

    pcoffin75 pointsBadges:
  • Compare creation date of file to system date

    Hi, I need help in figuring out the begaining of my CL program. I would like for the CL to act accordinly. Check a file creation date and compare that date to the system date, then if a match (do something), if not a match (send message and end job). Thank you

    lotofbad205 pointsBadges:
  • Outfile printing

    In CL, I've created a outfile out of dspobjd cmd. To this file, i've filtered a column using opnqryf. I've copied the output (cpyqryf) to a new file. While doing this, i'm getting the error data option was not allowed with open option' The log shows :The first file is created-> added to library....

    Archnav01270 pointsBadges:
  • Problem with CMD/CL and *PNAME type (Path name contains embedded nulls.)

    So I am giving a good effort into writing a CL/CMD pair to start one of our programs from the command line, but I've hit a snag. Here is my CMD source: CMD PROMPT('Start Engine') PARM KWD(PGM) TYPE(*NAME) LEN(10) DFT('TRAN_ENGV2') PROMPT('Engine Program Name') PARM KWD(PATH) TYPE(*PNAME) MIN(1)...

    DraeByllek45 pointsBadges:
  • CL – OVRDBF

    I am executed the below statements using CL. FileA got deleted. I want to know the reason. Please help me to understand the logic. PGM OVRDBF FILE(TESTPF) TOFILE(TESTPF1) OVRDBF FILE(TESTPF1) TOFILE(TESTPF2) OVRDBF FILE(TESTPF2) TOFILE(TESTPF) DLTF FILE(TESTPF) DLTOVR FILE(*ALL) ENDPGM FILEA got...

    rajeshece1,215 pointsBadges:
  • reading a pf in reverse order using cl program

    Hi, How to read a physical file in reverse order using cl program ny example with coding would ne much helpful. Thanks. any sample code would be verymuch helpful

    6r1,590 pointsBadges:
  • Multiple display file in CL program

    I need to have one screen where a user can enter some information, lets say customer number then when they press enter that information will be shown in text on the second screen. So lets say the user enters 321 for customer number and then the second screen needs say "The customer number processed...

    mike178035 pointsBadges:
  • RPGLE opcode similar to SNDF in CL

    Is there any way we can display a message "Processing" while the program is building the data in a subfile. In CL we can use the SNDF command to send such message to the display. Please help.

    ShajiMohan45 pointsBadges:
  • reading values through data area except IN & RTVDTAARA ?

    Is there any other way to read values through data area except Using 'IN'Opcode in RPG and RTVDTARA command in CL? Pls. tell if it could be done in other ways in our RPG programme or in our Cl programme?

    6r1,590 pointsBadges:
  • MSGW in WRKACTJOB

    How to end a job in MSGW how we can give in a program all the proces to give OPT-7 in front of a job which is in MSGW & giving 'G' to end that in RPGLE /CLLE progrm that too in a scheduled time

    Sitaratnam10 pointsBadges:
  • Read backword in CL/400

    How to read backword a physical file in CL400.

    Bdchow5 pointsBadges:
  • Auto reply to CL-created messages

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

    OldScott10 pointsBadges:
  • Sorting alphanumeric field with hexadecimal values

    We have a task where we have to convert key numeric field (8,0) to alphanumeric field (8A) with hexadecimal values ('00000000' - 'FFFFFFFF'). The problem in sorting with alphanumeric is the alphabet is less than the numeric value (A-Z < 0-9). Is there a way, by LF or any AS400 utility, that can...

    Vsevilod135 pointsBadges:
  • Automating SNDNETSPLF in CL

    I want to use SNDNETSPLF to automatically copy each occurance of a specific spool file to another outq for archiving purposes.  The spool file name will always be the same.  To use SNDNETSLF I need to enter the Jobname, User & job number etc.  How do I automate the command?

    ITDavid140 pointsBadges:
  • Want to make a utility to search string.

    [h3 class="groups"> Hi,[/h3] [h3 class="groups">I want to make a utility in AS400 to search a string (Such as file name/PGM name) in my current Library and in all Source physical files if found show PGM and all related files. Like I do trough find string Command. [/h3] It would be also help ful you...

    Builtin100 pointsBadges:
  • Calling query/400 through CL

    Hi, Is it possible to call query/400 through a CL program? Please suggest some idea.. Thanks, Jayashree V.      

    VJayashree185 pointsBadges:
  • Navigation from one sheet to another in AS400(RPGLE)

     I have converted two physical files into one flat file.Afterthat I have converted that flat file to CSV file and got two physical files data in one excel file.        But I need to write first phsical files data in sheet1 and second physical file data in sheet2 in same excel file.Is there...

    ganeshpavi70 pointsBadges:
  • DSPF & SNDRCVF

    In a CL, I need to define two files. One file is a display file and the other is a physical file. Then I need to do a RCVF to pass the retrieve data in the display file then use the physical file. When I try to compile the pgm using the RCVF, it does not recognize the variables in the display file...

    SOUTHEAST30 pointsBadges:
  • How to strip comments from CL program?

    Anyone know of a utility that will strip comments out of a CL program? We have many programs with more comments than actual code (for history purposes) and I'd like to see just the actual code. And no, I don't want to RTVCLSRC and lose indentation, etc.

    OldSysAdmin945 pointsBadges:
  • Can specific options within the Go perform menu be called by a program?

    Can specific options within the Go perform menu be called by a program?

    JohnsonMumbai1,160 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