• How to create ‘n’ number of userprofiles from CL Program

    How to create 'n' number of userprofile from CL Program?

    Lsivabe85 pointsBadges:
  • OPNQRYF problem CPF9899

    DCLF FILE(LIBRARY/DISPLAY) START: SNDRCVF RCDFMT(REC) WAIT(*YES) IF COND(&IN03 *EQ '1') THEN(DO) GOTO CMDLBL(END) ENDDO IF COND(&ENQQUA1 *EQ ' ') THEN(DO) GOTO CMDLBL(START) ENDDO IF COND(&ENQQUA1 *NE *BLANKS) THEN(DO) OPNQRYF FILE((SARKNS/ENQP002)) OPTION(*ALL) + QRYSLT('&ENQQUA...

    Khadar90 pointsBadges:
  • Qshell CP Command Error

    Hi, We have engineering drawings on a windows sever and the links exist to the iseries. I need to copy the drawings from one folder to another folder with the name of the mfg order they are tied to. I am using qshell and receiving the following error: Press ENTER to end terminal session. qsh:...

    NYRANGER245 pointsBadges:
  • Name Stream File based on data in file.

    Hi, I'm not even sure this one is possible. I can create and write to a stream file with no problems. Now we want to create individual attachment files for Mapics for manufacturing orders. A file contains the individual manufacturing order numbers. As we read the file we want to create a steam file...

    NYRANGER245 pointsBadges:
  • Copy data from .txt file to physical file

    I am trying to copy data from a .txt file to a physical file and I keep receiving an error code 7. My text file is not delimited at all, but my physical file is composed of about 20 separate fields. Does my 'from file' have to be delimited to use this command? Is that why I'm getting an error? It...

    RayDutil15 pointsBadges:
  • Level check error when I run the CL

    I currently have a DSPF & a CL that work. I added a field to the DSPF and added logic to the CL to use the new field. Both compiled successfully (DSPF and then CL). When I run the CL, I am getting a CPF4131 (level check). The CL is pointing to the correct DSPF. I've never had this happen...

    RayM265 pointsBadges:
  • Trap decimal data error in COBOL/400

    I mean how to trap decimal data error in COBOL\400 as we do monmsg command in cl. Is there any same way in COBOL\400?

    Kapiltiwari350 pointsBadges:
  • STRSQL command

    Can you use the STRSQL command within an AS/400 CL program?

    Pb5410 pointsBadges:
  • QCMDEXC API

    What are the commands which can't be executed using QCMDEXC API?

    6r1,590 pointsBadges:
  • ALCOBJ scope

    I want to allocate the data area by using ALCOBJ command and I am confused about the in selecting the scope. Can anyone explain me about the difference between JOB scope and THREAD scope in details?

    frmdeva365 pointsBadges:
  • CL: AS/400 question

    As/400 question: I am declaring 3 files in CL-ILE, How will CL differentiate between those 3 files? Will it be through the record format names? Does the concept of OPNID come into picture? Can anyone throw some light on what is OPNID and how CL can differentiate more than 1 file when it is...

    juslikdat1440 pointsBadges:
  • Converting julian date with CL on the AS400

    Can anyone help me with correcting the following code? I believe the error is in the /* CONVERT TO 30 DAYS AGO */ area, but I can't see it. ********************************************************************************* DCL &TODAY *CHAR 6 DCL &LESS30 *CHAR 6 DCL &MBRDATE *CHAR 5 DCL...

    Rrbond07135 pointsBadges:
  • 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:

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