Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Spool Files - What is the method called?

Posted on 2004-04-01
3
Medium Priority
?
328 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 800 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
While opting for any web-to-print solution, you need to discuss with your team and some of your end users and know their opinions about your decisions. In this article we list down some questions you need to ask yourself.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

721 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