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
Solved

Spool Files - What is the method called?

Posted on 2004-04-01
3
307 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
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Starting your own business is always a daunting process, and for most people it is brand new experience. Avoid the common pitfalls by following these tips to start on the road to success.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

838 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