How can I use FNDSTRPDM with CL
HOW CAN I USING "FNDSTRPDM" BY CLP AND THE VARIABLE OF "FIND 'string' " LAST CHARACTER IS A SPACE ?
HOW CAN I USING "FNDSTRPDM" BY CLP AND THE VARIABLE OF "FIND 'string' " LAST CHARACTER IS A SPACE ?
self-submitting cl pgm doesn't release screen
The interactive code in the CL pgm calls an RPG subfile pgm. The user makes selection, the CL pgm steps to the SBMJOB command, the CL pgm is executing the Batch portion, but the screen is hung up with "X system" displayed until batch job is done. The RPG is turning "ON" *inlr and RETURN is...
The interactive code in the CL pgm calls an RPG subfile pgm. The user makes selection, the CL pgm steps to the SBMJOB command, the CL pgm is executing the Batch portion, but the screen is hung up with "X system" displayed until batch job is done. The RPG is turning "ON" *inlr and RETURN is...
CL DCL Initial Value
I have a program that assigns an initial value to a variable (&TYPE) in the declare statement (value of 'L'). Is there a difference in how that value is stored as an initial value versus the value loaded using the CHGVAR command? This variable is passed as a parameter to an RPG program and needed...
I have a program that assigns an initial value to a variable (&TYPE) in the declare statement (value of 'L'). Is there a difference in how that value is stored as an initial value versus the value loaded using the CHGVAR command? This variable is passed as a parameter to an RPG program and needed...
Convert Spool file to DB file
Hi, I have a spool file which I created by WRKACTJOB (*print).. Is it possible to convert the spool file format to a database file..... What does an OVRPRTF command do ...? Thanks, Yogesh
Hi, I have a spool file which I created by WRKACTJOB (*print).. Is it possible to convert the spool file format to a database file..... What does an OVRPRTF command do ...? Thanks, Yogesh
When I call CL by 3 parm. (' ') change to (')
When I call CL by use 3 parm like this command = CALL PGM(CTLMNUCUP) PARM('MENUA' '1' 'CALL PGMA ('')') In pgm it show Parm3 = 'CALL PGMA (') What the method I can solve? thk u.
When I call CL by use 3 parm like this command = CALL PGM(CTLMNUCUP) PARM('MENUA' '1' 'CALL PGMA ('')') In pgm it show Parm3 = 'CALL PGMA (') What the method I can solve? thk u.
How to find out number of members in Source file ?
Hi All, i want to find out how many number of members are available in one source file. For example i have created one source file (QRPGSRC) in (LIBRARY1) now i want to find how many sources are available in LIBRARY1/QRPGSRC this source in my RPGILE program. Do we have any AS400 command or API...
Hi All, i want to find out how many number of members are available in one source file. For example i have created one source file (QRPGSRC) in (LIBRARY1) now i want to find how many sources are available in LIBRARY1/QRPGSRC this source in my RPGILE program. Do we have any AS400 command or API...
CL pgm required to copy data
I need to create a CL pgm to copy data from 2 files into one. The first file's name to be copied is constant but the second file's name changes on a daily basis. Could anyone help with the syntax required to do this? Thx
I need to create a CL pgm to copy data from 2 files into one. The first file's name to be copied is constant but the second file's name changes on a daily basis. Could anyone help with the syntax required to do this? Thx
Update a flat file through CL
Hi, I have copied a message from MSGQ into a CL variable. Is it possible to write that message in a flat fiile through CL.
Hi, I have copied a message from MSGQ into a CL variable. Is it possible to write that message in a flat fiile through CL.
How to Retrieve MSGW status in WRKACTJOB in CL variable
Hi, While Job monitoring if any job goes in MSGW status ... then is there any CL command which retrieves the status (exactly MSGW not *ACTIVE) and display it on the screen. Rather than doing manually job monitoring (Pressing F5 for a long time to look into the status of the job) if a CL can run...
Hi, While Job monitoring if any job goes in MSGW status ... then is there any CL command which retrieves the status (exactly MSGW not *ACTIVE) and display it on the screen. Rather than doing manually job monitoring (Pressing F5 for a long time to look into the status of the job) if a CL can run...
How i can display or print my CL commands
I everybody, i need print or display all commands that i have inside in my CL programs sources in QCLSRC? it is possible and how? thanks everybody.
I everybody, i need print or display all commands that i have inside in my CL programs sources in QCLSRC? it is possible and how? thanks everybody.
Creating multiple files from a single code base and FTP.
This is a two part question. 1. I'm looking to use a COBOL program to create multiple files in a standard library. Is there a way to programatically write multiple files from a single program. I had someone indicate that I could call to CL instream and actually create multiple files on the fly. ...
This is a two part question. 1. I'm looking to use a COBOL program to create multiple files in a standard library. Is there a way to programatically write multiple files from a single program. I had someone indicate that I could call to CL instream and actually create multiple files on the fly. ...
Program calls on AS/400
How i can check that my previous call to a program from other program was successful. Only after successful call and run only i can call another program. How to do check this in RPG and CL?
How i can check that my previous call to a program from other program was successful. Only after successful call and run only i can call another program. How to do check this in RPG and CL?
OVRDBF Not working as supposed to
Here's the program flow CL1 calls RPG1 RPG1 calls CL2 CL2 has OVRDBF on fileA that is being used in RPG1 When the control gies back to RPG1, the file is not overriden. So I thought it might have ended at call level and I tried to do OVRDBF in RPG1 after the control come back from CL2 but still no...
Here's the program flow CL1 calls RPG1 RPG1 calls CL2 CL2 has OVRDBF on fileA that is being used in RPG1 When the control gies back to RPG1, the file is not overriden. So I thought it might have ended at call level and I tried to do OVRDBF in RPG1 after the control come back from CL2 but still no...
CPYTOPCD gettig an error in CL
Hello, This is my command in CL CPYTOPCD FROMFILE(QS36F/&SVPF) + TOFLR('c:\testfolder\text.txt') + TODOC(&SVPF) REPLACE(*YES) I get an error at run time. Error message as follows: 13308 - CPYTOPCD FROMF QCA ILE(QS36F/Y15162612) TO ...
Hello, This is my command in CL CPYTOPCD FROMFILE(QS36F/&SVPF) + TOFLR('c:\testfolder\text.txt') + TODOC(&SVPF) REPLACE(*YES) I get an error at run time. Error message as follows: 13308 - CPYTOPCD FROMF QCA ILE(QS36F/Y15162612) TO ...
AS/400 user profile update
What is the CL code to DISABLE a number of AS400 profiles using a specific user list
What is the CL code to DISABLE a number of AS400 profiles using a specific user list
Retrieve pdf file through JAVA from IFS
How can I retrieve a pdf file stored on IFS generated by CL program through JAVA screen?
How can I retrieve a pdf file stored on IFS generated by CL program through JAVA screen?
How to retrieve the current version of AS400 you are working on?
Hi, Does anyone know how to retrieve the current version, release and model number of the AS400 box you are working on. We can view this information in spool files, but I want to retrieve this information through both CL and RPG program. Regards Shruti.
Hi, Does anyone know how to retrieve the current version, release and model number of the AS400 box you are working on. We can view this information in spool files, but I want to retrieve this information through both CL and RPG program. Regards Shruti.
How to create a code using diff colors in RPG & CL
How to create a code using diff colors in RPG & CL
How to create a code using diff colors in RPG & CL


