Solved

Spool Files - What is the method called?

Posted on 2004-04-01
3
312 Views
Last Modified: 2011-09-20
I'm not even sure how to ask this question... but here goes...

I am processing files that come to me in various forms, but when I get them to a
usable state, the look something like this...

003   THIS IS MY NAME
     1  THIS IS MY ADDRESS
     1  THIS IS MORE ADDRESS
     1  MY CITY,   STATE   ZIP
     2  SUBJECT:  SOME SUBJECT TEXT
015   BODY:
     2  --------------------------------------------
030   --------------------------------------------
003   THIS IS MY NAME
     1  THIS IS MY ADDRESS
     1  THIS IS MORE ADDRESS
     1  MY CITY,   STATE   ZIP
     2  SUBJECT:  SOME SUBJECT TEXT
015   BODY:
     2  --------------------------------------------
030   --------------------------------------------


...which I interpret as the 3-digit number indicates an absolute line number while the 1-digit number is a vertical space (that number of times) relative to where you are.

It works great, but I don't know what this is called (the using of the 3-digit and 1-digit number for carriage control).  Are all Spool Files like this or is this a special thing.  Is there a name for this?

0
Comment
Question by:vbPhil
[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
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
tliotta earned 200 total points
ID: 10737865
I'm not sure it's "called" anything. These (probably) are spooled files that have been copied into physical files using the CPYSPLF command. If you can review the command, look at the [help] for the CTLCHAR() parameter. When CPYSPLF runs with CTLCHAR(*PRTCTL) specified, you'll get skip- and space-before values just as you describe them in the resulting records.

These values were originally sent to line printers. The printers would have belts with notches that corresponded with positions down a page. You'd "change forms" by changing belts as well as loading different paper. The three-digit numbers correspond to directing the printer to advance the page directly to a given line number. The one-digit numbers are simply space, double-space and triple space.

Depending on the defined number of lines per page, the current printing position on the page and the supplied three-digit number, the printer would advance to the position on the current page or advance to that position on the next page. E.g., if printing was already at line 40 on the current page and the supplied number was 030, the next line would print at line 30 of the next page.

Somewhat simplified, but that's the basics. The numbers are a holdover. They're less useful today, but still are used when saving spooled files for off-line storage or when shipping a spooled file to another iSeries via e-mail or other means. By reversing the process with something like CPYF TOFILE(*PRINT), the numbers help recreate the original spacing.
0
 
LVL 2

Author Comment

by:vbPhil
ID: 10805814
Thanks tliotta...

I was holding out for some more responses...  Your answer gave me the background to at least understand where these files are coming from.  It is still a little difficult to describe as a choice for people to select when processing incoming data.  Perhaps "Skip & Space" would be meaningful...?

0
 
LVL 27

Expert Comment

by:tliotta
ID: 10807835
Ah, so you need something an AS/400 person would understand? or something any user might simply use as a label? For an AS/400 programmer or administrator-type person, [PRTCTL] might work, since the actual parameter value on the CPYSPLF command is CTLCHAR(*PRTCTL). PRTCTL=Printer control.

For a normal user, it possibly won't make much difference. They commonly don't see this kind of info anyway. Maybe something more generic like [Offline report format].

Tom
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Define binary variable in RPG free d specs 5 128
AS400 Printing 10 285
IBM TS3100 tape Library 3 63
AS/400 Overlays 3 28
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 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