AS400 Mid Range/CL Program

Advertisement


kleeem wrote at 2010-04-08 16:25:06
of course you COULD use WRKOBJLCK with *PRINT output, then cpysplf to a physical file and then read the physical file. You'd have to parse the data to look for the jobs, but it's all there. it's a bit of a hack, but it would work.




justanswering wrote at 2015-08-04 12:58:06
You are correct in that WRKOBJLCK does not allow you to create a *outfile, but it will allow you to create a spool file *print which you can then do a CPYSPLF to a file and then write a program to read that file and then end the necessary jobs.  You will have to write the input specs for the file created since it is not a database file with predefined fields.  I realize this is a round about way of making it work, but it does work.


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

©2016 About.com. All rights reserved.