Usage of PHDFM in batch
Jim Hamer
jhamer@milk.org
Fri, 26 Feb 1999 11:32:56 -0500
Blue,
I agree, it is frustrating that the peripheral tools are not well documented.
Allison is correct about the prompting, if the PHDFM is run interactively.
In a command procedure, there is no prompting.
I think there is a bug in the exiting of the PHDFM utility. Sometimes I
have experienced what you are describing, that a file is not created. Here
is a test that I ran:
$!command file called jim.com
$set verify
$phdfm create prd_basic
$phdfm create prd_basic
$
where prd_basic is a logical that references an indexed RMS file. This
works in Batch mode (ie Submit Jim), but when I run it interactively (ie
@Jim) only one version was created. I think that control is released back
to the command procedure too soon and it reads past the second phdfm before
it can be executed. The problem is easily corrected by adding a line
between phdfms:
$!command file called jim.com
$set verify
$phdfm create prd_basic
$
$phdfm create prd_basic
$
This works both interactively and in batch mode.
While we are on the topic. It sure would be nice if the new file created by
PHDFM had the same attributes as the previous version. Better yet, wouldn't
it be great if you could specify an FDL file as a parameter of PHDFM and/or
specify it in the dictionary so that the new files could be created exactly
as you wanted them.
Jim
At 10:03 AM 99/02/26 -0500, you wrote:
>G'day all
>
>I am trying to construct a batch process to re/create all the RMS files in a
>PHD (Alpha, OVMS 7.1, PH7.10G1). I have tried the following methods but
>none seem to be reliable.
>
>1. $!
>$PHDFM filename1
>$PHDFM filename2
>$etc
>$exit
>
>2. $!
>$PHDFM
>filename1
>filename2
>etc
>
>$!
>$exit
>
>3. $def qkin create_files.com !script built from using a QKECHO define
>and manually CREATing a couple of files.
>$POW
>$deass qkin
>$exit
>
>In the first case I couldn't pass the filename as a parameter to PHDFM. In
>the second, some files get created but then PHDFM ignores a bunch, builds
>some more and exits on the blank line. In the third, sometimes the input
>stream wants a <Return> and sometimes it doesn't causing some 'unknown
>entry' type messages.
>
>Has anybody had better results? What am I doing wrong? There are over 400
>file creates in all.
>
>TIA
>
>Blue
>PowerHouse consultant
>Rhode Island, USA
Jim Hamer Contract System Analyst
Dairy Farmers of Ontario (416) 489-3298
Information Systems Division hamer@inforamp.net
(905) 821-8970 Toronto, Ontario, Canada
jhamer@milk.org
http://www.inforamp.net/~hamer/
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.