CL program: Read spool file information

Tags:
AS/400
CL Program
Hi, I just want to check some information from same spool file Example:
spool file name TST

information in:

' kioakd asjdasjd asdjasdja sdjasd asdj name jf jf jf 123 45

27374-57575 jsdjdj sjda '
How do I get requiring information from TST. I need to get ports numbers 27374-57575 and name after 'name' Spool File will be large and I don't know in what position 'ports' and 'name' will be. Regards!


Software/Hardware used:
IBM AS/400
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • philpl1jb

    Assuming that you intend to write a program ..

    1. Create a "flat" physical file .. say 132 characters wide

    2. Copy the spool file to the physical file using CPYSPLF

    3. Read the physical file into the tool/language of your choice.  Using the rows that you are interested in.

    54,090 pointsBadges:
    report
  • ToddN2000
    Philpl1jb's suggestion is the easiest way to do it. Just scan or use SQL to find the data you are looking for. Then store it in a variable or file for later use.
    129,715 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: