[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference star::wizards

Title: "ASK THE WIZARDS"
Moderator:QUARK::LIONEL
Created:Mon Oct 30 1995
Last Modified:Mon May 12 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1857
Total number of notes:3728

1711.0. "Open: how to define a symbol?" by STAR::JKEENAN () Tue Apr 08 1997 12:09

Return-Path: "VMS001::WWW"@vms001.das-x.dec.com
Received: by vmsmkt.zko.dec.com (UCX V4.1-12, OpenVMS V6.2 VAX);
	Thu, 27 Mar 1997 12:08:07 -0500
Received: from vms001 by mail11.digital.com (8.7.5/UNX 1.5/1.0/WV)
	id LAA02966; Thu, 27 Mar 1997 11:57:50 -0500 (EST)
Date: Thu, 27 Mar 1997 12:00:24 -0500
Message-Id: <[email protected]>
From: "VMS001::WWW"@vms001.das-x.dec.com (27-Mar-1997 1200)
To: [email protected], [email protected], [email protected]
Subject: Ask the Wizard: '[email protected]'
X-VMS-To: [email protected]

Remote Host: (null)
Browser Type: Mozilla/3.0 (Macintosh; I; PPC)
Remote Info: <null>
Name: Pete Bauer
Email Address: [email protected]
CPU Architecture: VAX
Version: v 6.2
Questions: 

How can I define a symbol for a form feed character, and
for other escape characters as well? I'm working with
large files and only want to write out certain lines
that begin with a form feed character. It looks like
this:  
$    read/end_of_file=endit infile record
$    outrecord =  F$extract(1,1,record)
$    if (outrecord EQ. xxx)

What do I replace the xxx with?
T.RTitleUserPersonal
Name
DateLines
1711.1See FAQ For Example...XDELTA::HOFFMANSteve, OpenVMS EngineeringWed Apr 09 1997 10:5912
   See an ASCII table for the specific character codes.
   In the case of formfeed, the DCL bitfield would be:

	$ ff[0,8] = 12.

    --

   See the OpenVMS Frequently Asked Question (FAQ) for an
   example of the above syntax, see "DECW9.  How do I set
   the title on a DECterm window?".  The OpenVMS FAQ is at
   ftp://rtfm.mit.edu/pub/usenet/news.answers/dec-faq/vms
1711.2STAR::BLAKEOpenVMS EngineeringWed Apr 09 1997 14:3810
>How can I define a symbol for a form feed character, and
>for other escape characters as well? I'm working with
>large files and only want to write out certain lines
>that begin with a form feed character. It looks like
>this:  

To see if the first character is a FF:

$ read/end_of_file=endit infile record
$ if f$cvsi(0,8,record) .eq. 12 then ...   ! only do if FF