AS400 Mid Range/cpyprtf

Advertisement


Question
QUESTION: i am using a system that allows very few user options, however i do use cpyprtf alot, i am reading the system file name and entering it, yet it says doesnt exsist, if i do a print key and it says qsysprt, it copies fine. the only difference is the printout i want i think is a prtf report. is there another way to cpyprtf  or forsce it to copy?

ANSWER: Do you mean the CPYSPLF command?  I am not familiar with a CPYPRTF command.

- Laird

---------- FOLLOW-UP ----------

QUESTION: sorry, YES

Answer
The CPYSPLF command tries to locate a spooled file with the name you specify, associated with the job you request (* means your current job, not a different session with the same user ID) and copy it to a database file that you specify (this file must exist before you run the command). If the system tells you it cannot find the file, it either means that 1) It can't find the spooled file you requested or 2) The spooled file wasn't created by the job you specified or 3) It cannot find the TOFILE to copy the data to.

- Laird

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.