On 18 April 2016, 20:04:15, Paul Gilmartin wrote:

> On 2016-04-18, at 16:13, Rob van der Heij wrote:
>
> >> Easy enough to do (I just did it, several times); just tedious.
> >> Has anyone automated this clichi?
> >
> > I use "browse" to see the output. I rarely need to massage it with XEDIT
> > but would change the pipe to give me what I want to see.
> >
> Are we thinking of the same BROWSE?  I didn't know BROWSE could be used
> as a pipeline state.  Like:
>
>     PIPE LITERAL TEST | BROWSE  /* ??? */

Yes, &we are. There's a "browse" built-in that also listens to "brw" for when
you're tight on the command line.

> > It sounds cute to have a device driver to create a new file in the ring, but
> > for a generic solution it needs a lot of info (like width, filetype, etc).
> > For something specific where you know the data, it certainly works well
> > (like assemble the file straight from the editor and write the listing 
> > back).
> >
> Cute, yes.  And file attributes are a bane.  Even a nuisance for the ">" 
> stage.
> How does XEDIT deal with BFS files which have no width, filetype, etc.?
> (We don't have BFS configured.)

Assume a width of 255 for example, then I have half a dozen XEDIT commands to
open a new file, set RECFM V to avoid the need for padding, CASE M unless you
have a file type that defaults to that, LRECL, TRUNC and VERIFY to go beyond 80.
Also disable AUTOSAVE.

Then feed in the records, maybe truncate at the given width and compose a 
message
when data was lost (or leave that to XEDIT).

After that, you neet SET ALT 0 0 and probably want to position the file because
it's sitting at the last line. For really fancy things you need information from
XEDIT and act on that.

I would really want the look and feel of my own, so run my PROFILE XEDIT but it
may interfere with other settings. Mine behaves differently on an empty file, so
so I would invoke XEDIT with NOPROFILE and run the PROFILE afterwards.

This has all the aspects of a Friday project running out of control...

PS On BFS, XEDIT has those too. Like this top line display:

   Trust No 1  V 255  Trunc=255 Size=0 Line=1 Col=1 Alt=0

Sir Rob the Plumber

Reply via email to