HP3000-L Archives

January 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jon Diercks <[log in to unmask]>
Reply To:
Jon Diercks <[log in to unmask]>
Date:
Wed, 26 Jan 2000 23:06:22 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (78 lines)
Sorry, Bob, but for the record, the technique you describe does not
work. The CCTL/NOCCTL options of the FCOPY command, in
conjunction with the CCTL/NOCCTL options on FILE and/or BUILD,
can do lots of different things, but stripping CCTL bytes out of a file
is not one of them. The FILE/FCOPY sequence in your post will
produce a file with the NOCCTL option set, but the CCTL bytes will
still be there, as the first data byte of each record.

See the CCTL section of the FCOPY manual at
<http://docs.hp.com/dynaweb/smpe/b1015/b885/@Generic__BookT
extView/4184> for the extensive details about what the various
combinations of CCTL/NOCCTL can do.

For a technique that *does* completely remove the CCTL bytes
from a spoolfile, try this:

:file myfile;REC=-132,,F,ASCII;SAVE
:/bin/cat <O9999.OUT.HPSPOOL >*myfile

__________
Jon Diercks
[log in to unmask]

>>>>Schlosser, Robert wrote:
Date:         Fri, 21 Jan 2000 12:42:29 -0500
Reply-To:     "Schlosser, Robert (Contractor)"
<[log in to unmask]>
Sender:       HP-3000 Systems Discussion <HP3000-
[log in to unmask]>
From:         "Schlosser, Robert (Contractor)"
<[log in to unmask]>
Subject:      Re: Stripping carriage control characters
Comments: To: "[log in to unmask]"
          <[log in to unmask]>
Content-Type: text/plain; charset="iso-8859-1"

Leonard

Try the following

file file1;cctl
build file2;rec={your parameters}
file file2;nocctl;new
fcopy from=*file1;to=*file2;nocctl

This will strip the control chars from the file.

Bob Schlosser
(321) 674-4938


-----Original Message-----
From: Leonard S. Berkowitz
[mailto:[log in to unmask]]
Sent: Friday, January 21, 2000 11:24 AM
To: [log in to unmask]
Subject: Stripping carriage control characters


Short of using an editor to delete the first column of a disk file that
has
carriage control, is there some combination of CCTL/NOCCTL on a
file equation of
either the from_file or the to_file or both and CCTL/NOCCTL on an
FCOPY
statement to end up with only the data in the to_file?

I do not have access to the SMUG I book that may be of help to
me.

Thanks.
===================
Leonard S. Berkowitz
Perot Health Care Systems
(Harvard Pilgrim Health Care account)
voice: 617-509-1212
fax:   617-407-8444

ATOM RSS1 RSS2