?
Solved

Edit spool file

Posted on 2003-02-27
10
Medium Priority
?
1,701 Views
Last Modified: 2010-07-27
Sometime I have a need to edit a spool file. I will use command CPYSPLY to copy the spool file to a PF file. Then I edit the content and use CPYF convert it back to a spool file and print it. However, this time I want to edit a AFP spool file. The CPYSPLF command cannot be used in this time. How can I make it?
0
Comment
Question by:VincentCheung
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
10 Comments
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 8040799
Hi VincentCheung,

Your right it is NOT possible to use the CPYSPLF command but the zCPYSPLF command wil work.
One problem, you have to create it your self.
See http://os400.by.ru/s03.html for teh source-files.
Just copy and paste them.
I Use it an made some minor changes to optimize it for our purpose and it fits to our requirements.

So... Try it

Have Fun!!!

zCPYSPLF
0
 

Expert Comment

by:madityarama
ID: 8059832
Why you don't try CPYFRMOUTQ command, i think it will be more simply. And Then enter the PF, and try CHGPFM command, Edit the spoolfile name in the Text Description.    
0
 

Author Comment

by:VincentCheung
ID: 8061741
madityarama, thanks for reply.
Where can I get the command 'CPYFRMOUTQ'? Is it work for AFP spool file?
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:VincentCheung
ID: 8063094
Hi murphey2,

Actualy, zCPYSPLF is also use command CPYSPLF. This command is not support AFP spool file (contain AFP characters).
0
 
LVL 16

Accepted Solution

by:
theo kouwenhoven earned 600 total points
ID: 8063376
Hello VincentCheung,

On the IBM site there are some descriptons of the following functions (including the build solution in a SAVF):

QSPGETF Program Directly to Copy a Spooled File to a Database File
QSPPUTF Program Directly to Create a Spooled File from a Database File

See this for all extra print utilities:
http://www-912.ibm.com/s_dir/SLKBase.nsf/0888cc5d18fceca58625680b005dc690/d159a7de719e905986256aa9006a835f?OpenDocument

And this page for the QSPGETF savefile.
http://www-912.ibm.com/s_dir/SLKBase.nsf/0/d159a7de719e905986256aa9006a835f?OpenDocument&ExpandSection=2#_Section2

Cheers,
0
 

Expert Comment

by:madityarama
ID: 8064400
In my as400, i have one library and the name is Taatool. Many CLP and CMD include in that library. The One is CPYFRMOUTQ command. I think that library is from IBM OS. but i don't know where you can find that. I think IBM have that library.

0
 

Expert Comment

by:madityarama
ID: 8064427
Taatool library. You can find in IBM. I can't open the CLP, but i think there combination between CPYSPLF and CPYF command. So try it.

R
0
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 8066728
Hi VincentCheung, madityarama,

CPYFRMOUTQ will copy all spoolfiles from an outQ to a phisical file (without selection).
How to put them back?

I understood that VincentCheung wants to copy the spoolfiles, change them and print tham again.
As I mentioned before, in the on the IBM-site there is also a PUT spool file command.

Regards.
0
 

Author Comment

by:VincentCheung
ID: 8079888
Hi murphey2,

Thanks! It works. But still have some minor problem. My AS400 machine have a command default for CRTPF, access path SHARE(*YES). So, problem arise while creating the specified physical file. I have no authority to change this. So, I create the PF myself. By the way, could I get the source code for QSPGETF & QSPPUTF?

Anyway, thanks a lot!
0
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 8082894
I think the source code is in the save file....
If not... I can't help you, send a mail to the owner of the page or the web master
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a fine trick which I've found useful many times, when you just don't want to accidentally run a batch script or the commands needs administrator rights.
Introducing Priority Question, our latest feature.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question