SETLL and READ
Hi, I have the following problem: I need to make SETLL and READE for several LF based on 1 PF by selection. Is it any smart way to do it without to duplicate the READE and %eof() for each LF? Thank you.
Answer Question
| May 20, 2011 11:49 AM
AS/400 command functions, AS/400 commands, RPGLE Program, SETLL
Hi, I have the following problem: I need to make SETLL and READE for several LF based on 1 PF by selection. Is it any smart way to do it without to duplicate the READE and %eof() for each LF? Thank you.
Email Overlays from AS400
I have spool files with overlays and now need to be able to email or fax these from the AS400. I am able to email using SNDSPLF however the overlay is lost when I do this. Is there a way to accomplish this with out additonal software (I have AFPU)
Answer Question
| May 2, 2011 12:19 PM
AS/400 commands, AS/400 Spool Files, Email protocols, Spool files
I have spool files with overlays and now need to be able to email or fax these from the AS400. I am able to email using SNDSPLF however the overlay is lost when I do this. Is there a way to accomplish this with out additonal software (I have AFPU)
Access AS400 Query Print Definitions
I need to generate a report that shows the output type and the name of the output device found in the print definitions of a designated query. Since there are a lot of queries to check, I need to get access to the query print definitions without using WRKQRY option 6. I would be happy [...]
Answer Question
| May 2, 2011 4:53 PM
AS/400 command functions, AS/400 commands, AS/400 printing, WRKQRY
I need to generate a report that shows the output type and the name of the output device found in the print definitions of a designated query. Since there are a lot of queries to check, I need to get access to the query print definitions without using WRKQRY option 6. I would be happy [...]
OS/400 commands: RTVDSKINF
I do a RTVDSKINF and when collection completed a PRTDSKINF *SYS. On page 1 of the report it summarizes disk usage by object type with the ‘% of disk’ for each object type. However, the TOTAL does not add up to 100%. I get 90.16% on my report. Any ideas why????
Answer Question
| May 2, 2011 2:01 PM
AS/400 command functions, AS/400 commands, OS/400, OS/400 command line, RTVDSKINF
I do a RTVDSKINF and when collection completed a PRTDSKINF *SYS. On page 1 of the report it summarizes disk usage by object type with the ‘% of disk’ for each object type. However, the TOTAL does not add up to 100%. I get 90.16% on my report. Any ideas why????
Detaching spool file with AS/400 command
Hi i want to detach job from a spool file . I tried CHGJOB SPLFACN(*DETACH) command but it detaches all the spool files for a specific job . My requirement is to detach a particular spool file from job . Please help
Answer Question
| April 5, 2011 5:43 AM
AS/400 command functions, AS/400 commands, AS/400 output files, AS/400 Spooled Files, CHGJOB
Hi i want to detach job from a spool file . I tried CHGJOB SPLFACN(*DETACH) command but it detaches all the spool files for a specific job . My requirement is to detach a particular spool file from job . Please help
How can I tell what is calling a program in AS/400
We have a 3rd party application on our system that hasn’t been updated in years. I can see about 18 programs within the 3rd party application library that are being used on a daily basis. Is there a way I can tell what is calling those programs?
Answer Question
| April 1, 2011 2:40 PM
AS/400, AS/400 commands, AS/400 programming
We have a 3rd party application on our system that hasn’t been updated in years. I can see about 18 programs within the 3rd party application library that are being used on a daily basis. Is there a way I can tell what is calling those programs?
Return a value from an AS400 Command
I created a command that will be called in various CL programs. The command does some work and then is supposed to return a value. I can step through the program and see the value is being populated, but the value is not returned to my initial CL program What do I need to do [...]
Answer Question
| March 17, 2011 6:32 PM
AS/400 command functions, AS/400 commands, AS400 CLP, V5R4
I created a command that will be called in various CL programs. The command does some work and then is supposed to return a value. I can step through the program and see the value is being populated, but the value is not returned to my initial CL program What do I need to do [...]
CPYFRMIMPF CPF2845 reason code 10
OS/400 V5R2. I’m running a CPYFRMIMPF to import a file from the IFS drive to a database file. this is the command: CPYFRMIMPF FROMSTMF(‘/FTP/CPA/NUMERICT’) TOFILE(ASPONITE/SCPA00_TMP) MBROPT(*REPLACE) RCDDLM(*CRLF) DTAFMT(*FIXED) STRDLM(*NONE) RMVBLANK(*NONE) FLDDFNFILE(ASPONITE/TBX400 SCPAFDF) RPLNULLVAL(*FLDDFT) The to-file and the field definition file both exist and match each other. And yet I get CPF2845 reason code 10, which [...]
Answer Question
| February 17, 2011 1:35 AM
AS/400 command functions, AS/400 commands, CPF2845, CPYFRMIMPF, OS/400, V5R2
OS/400 V5R2. I’m running a CPYFRMIMPF to import a file from the IFS drive to a database file. this is the command: CPYFRMIMPF FROMSTMF(‘/FTP/CPA/NUMERICT’) TOFILE(ASPONITE/SCPA00_TMP) MBROPT(*REPLACE) RCDDLM(*CRLF) DTAFMT(*FIXED) STRDLM(*NONE) RMVBLANK(*NONE) FLDDFNFILE(ASPONITE/TBX400 SCPAFDF) RPLNULLVAL(*FLDDFT) The to-file and the field definition file both exist and match each other. And yet I get CPF2845 reason code 10, which [...]
While calling a command via a CL program exposes my command line.
While calling a command via a CL program exposes my command line. Is it possible to hide the command line while executing the command via cl. I need to do this as iam executing the cl with adopted authority.
Answer Question
| February 15, 2011 5:39 AM
AS/400, AS/400 commands, CL Commands, CL Program, CL programming, iSeries
While calling a command via a CL program exposes my command line. Is it possible to hide the command line while executing the command via cl. I need to do this as iam executing the cl with adopted authority.
How to create AS/400 user defined commands
I tried to create user defined command, but couldn’t understand the paramters to input in CRTCMD. CMD > MSG > MYLIB PGM > MESSAGE > MYLIB SRCFILE QCMDSRC *LIBL SRCMBR *CMD THDSAFE *NO Here, I have created one CLP MYLIB/MESSAGE to run just one simple command DSPMSG. however I’m not sure what values to be [...]
Answer Question
| February 4, 2011 9:53 AM
AS/400, AS/400 command functions, AS/400 commands, AS/400 user permissions, User Defined Fields
I tried to create user defined command, but couldn’t understand the paramters to input in CRTCMD. CMD > MSG > MYLIB PGM > MESSAGE > MYLIB SRCFILE QCMDSRC *LIBL SRCMBR *CMD THDSAFE *NO Here, I have created one CLP MYLIB/MESSAGE to run just one simple command DSPMSG. however I’m not sure what values to be [...]
Office Vision on AS/400
I can not edit (Change) an existing office vision document. My as/400 profile is in teh WRKDIRE. I can 3-Copy, 4-Delete & 7-Rename. But no other document options are available for me. Any ideas?
Answer Question
| January 25, 2011 4:04 PM
AS/400 command functions, AS/400 commands, Office Vision, WRKDIRE
I can not edit (Change) an existing office vision document. My as/400 profile is in teh WRKDIRE. I can 3-Copy, 4-Delete & 7-Rename. But no other document options are available for me. Any ideas?
Is there a way to FTP a command to an AS/400 to copy user
We are trying to automate and make the setting up of users easier. Is there a way to ftp a command to a as400 to copy user “a” user profile to “b”?
Answer Question
| January 26, 2011 5:40 PM
AS/400, AS/400 commands, FTP, USRPRF
We are trying to automate and make the setting up of users easier. Is there a way to ftp a command to a as400 to copy user “a” user profile to “b”?
Converting AS/400 calender date to julian date
How to convert calander date to julian date by using query commands?
Answer Question
| February 15, 2011 11:12 AM
AS/400 command functions, AS/400 commands, AS/400 date format, Date conversion
How to convert calander date to julian date by using query commands?
Do I have to open ports to use STRPCO?
do i need to open specific ports to be able to use strpco?
Answer Question
| January 14, 2011 12:11 AM
AS/400 command functions, AS/400 commands, AS/400 Port Numbers, STRPCO
do i need to open specific ports to be able to use strpco?
How to add repeat function key F13 in AS/400 subfile
Hi, In my application i need to use repeat function key F13 in a subfile. Can any one help me how to do it ?
Answer Question
| January 31, 2011 6:49 AM
AS/400 command keys, AS/400 commands, AS/400 Subfiles, Subfiles
Hi, In my application i need to use repeat function key F13 in a subfile. Can any one help me how to do it ?
CL date extraction in AS/400
I want to take out date value from today to last 7 days in CL command. Kindly help
Answer Question
| January 7, 2011 11:02 AM
AS/400, AS/400 commands, CL Commands, CL Program
I want to take out date value from today to last 7 days in CL command. Kindly help
Edit mask on date field in AS/400
Is there some trick that would allow using an edit mask on a true date field? I need to display a date in *USA format and allow the user to edit the date. If I convert the date to a numeric field, I can use the EDTWRD and EDTMSK keywords to accomplish what I want. [...]
Answer Question
| January 6, 2011 6:21 PM
AS/400 command functions, AS/400 commands, OS/400, V6R1
Is there some trick that would allow using an edit mask on a true date field? I need to display a date in *USA format and allow the user to edit the date. If I convert the date to a numeric field, I can use the EDTWRD and EDTMSK keywords to accomplish what I want. [...]
AS/400 printer file keywords
can you explain the difference between spacea,spaceb,skipa and skipb. I’m new to learning about as400 and printer files. can any one give me an example using source code showing the difference that occurs between using these 4 keywords
Answer Question
| January 5, 2011 5:05 PM
AS/400 commands, AS/400 Printer File, AS/400 printers
can you explain the difference between spacea,spaceb,skipa and skipb. I’m new to learning about as400 and printer files. can any one give me an example using source code showing the difference that occurs between using these 4 keywords
How can we check for a particular monmsg in rpgle free format
I am trying to add qtemp library using command Command1=’ADDLIBLE LIB(QTEMP)’; Callp(e) CmdExecution(Command1:%SIZE(Commandstat)); I am unable to check for various monmsg in case of error.
Answer Question
| December 31, 2010 11:56 AM
AS/400, AS/400 commands, MONMSG, QTEMP, QTEMP Library, RPGLE
I am trying to add qtemp library using command Command1=’ADDLIBLE LIB(QTEMP)’; Callp(e) CmdExecution(Command1:%SIZE(Commandstat)); I am unable to check for various monmsg in case of error.
Command to show daily save file verification
It there a command as with DSPOBJD QSAVSYS *DTAARA DETAIL(*FULL) to show the Daily save file details, IF I am out of line here I apologize,
Answer Question
| December 2, 2010 3:35 AM
AS/400 command functions, AS/400 commands, DSPOBJD
It there a command as with DSPOBJD QSAVSYS *DTAARA DETAIL(*FULL) to show the Daily save file details, IF I am out of line here I apologize,





