Writing into Sequential file on Unix Solaris Powerhouse envir onment

Terry Curran terrycurran@onetel.net.uk
Tue, 29 Apr 2003 22:19:45 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C30E9D.71EDCC90
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

To set your Genric variable

Try using SETSYSTEMVALUE

You have to use it like this

IF NOT SETSYSTEMVALUE( "GENRIC", "<file name>" )
   THEN ERROR "Cannot set value"

Of course I home that you are substituting <file name> with a filename,
and not leaving those dreaded < and > symbols in, remember UNIX uses
them for redirecting input and output.

If you do a RUN COMMAND to set the variables, then they ONLY exist in
the shell that the RUN COMMAND creates, as soon as the RUN COMMAND exits
then the variables are thrown away.  SETSYSTEMVALUE sets the variables
in the parent shell which all subshells inherit at startup, therfore any
RUN COMMAND can see the variables (each creates its own shell,
inheriting from the parent).
------------------------------------------------------------------------
----------------

This email is brought to you courtesy of 1 & 1, for more details please
visit the 
link below

               http://oneandone.co.uk/xml/init?k_id=5753616

------------------------------------------------------------------------
----------------


-----Original Message-----
From: powerh-l-admin@cube.swau.edu [mailto:powerh-l-admin@cube.swau.edu]
On Behalf Of Goparaju, Vidyasagar
Sent: Tuesday, April 29, 2003 9:23 PM
To: 'powerh-l@lists.swau.edu'
Subject: RE: Writing into Sequential file on Unix Solaris Powerhouse
envir onment


Hi All,

I am getting runtime error in QUICK when I set the system variable using
RUN COMMAND "GENRIC=<file name>"

I tried RUN COMMAND "set GENRIC=<file name>" also. It did not work. Same
command is working OK when I type it on the command line.

Please help.

Thanks
Sagar

 -----Original Message-----
From: 	Rohde Dirk [mailto:Dirk.Rohde@vpgroup.com] 
Sent:	Tuesday, April 29, 2003 10:11 AM
To:	'Goparaju, Vidyasagar'
Cc:	'powerh-l@lists.swau.edu'
Subject:	RE: Writing into Sequential file on Unix Solaris
Powerhouse
envir onment

Try using the Unix "touch" command for creating your sequential file.
This command will create the file if it does not exist or just update
the modify date if it already exists and will work much quicker than
qutil. Also, by using the "dd" command with "if=<input_file>
of=<output_file> cbs=80 conv=unblock", you can split a file into
separate carriage-return delimited records that is readable by a program
like "vi". These are HP-UX Korn Shell commands but I believe that there
are similar commands available on Solaris.

Dirk Rohde
VantagePoint Systems Inc.

-----Original Message-----
From: Goparaju, Vidyasagar [mailto:VGoparaju@tradepointsystems.com]
Sent: Monday, April 28, 2003 1:38 PM
To: 'powerh-l@lists.swau.edu'
Subject: Writing into Sequential file on Unix Solaris Powerhouse
environme nt


				Hi All,

				I am in the process of migrating my
Powerhouse Application on VMS to Unix Solaris under Oracle environment.

				We left the sequential files within the
Powerhouse dictionary. Because the physical files for these records are
created during the runtime to create command procedures.

				I have a GENERIC 80 characters
sequential
file.

1.	I have created physical file using QUITL (There is not
equivalent to
CREATE/FDL on Unix environment. May be I don't know).
2.	Written all the commands into the GENRIC.dat file from QUICK.
a.	Quiz << exit
b.	Exec $MLT/SYCUSLST nogo
c.	Set rep dev disc name sycuslst 
d.	Set nobl
e.	Go
f.	<parm>
g.	<parm>
h.	exit
3.	On VMS the file looks like line sequential. But on Unix system
everything is one long string.
4.	Only "more" command is showing this file line by line. I could
not
open it using VI.
5.	If I create the above command procedure using VI editor
manually. It
is working fine. But I could not make it to work when I create it from
QUICK.

				My objective is:
1.	Create a sequential file with similar attributes to GENERIC with
name <prog id>+date+time.sh
2.	Write commands and parameters into it using Powerhouse QUICK
program.
3.	Execute the command procedure from QUICK and delete the command
procedure when the report is created.
4.	Above procedure is already working on VMS system. I am trying to
migrate the same function to UNIX environment.

				Please help.

				Thanks
				Sagar
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to
powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = Mailing list:
powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to
powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.

------=_NextPart_000_0001_01C30E9D.71EDCC90
Content-Type: text/x-vcard;
	name="Terence Phillip Curran (terry.curran@towermarsh.co.uk).vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Terence Phillip Curran (terry.curran@towermarsh.co.uk).vcf"

BEGIN:VCARD
VERSION:2.1
N:Curran;Terence;Phillip
FN:Terence Phillip Curran (terry.curran@towermarsh.co.uk)
ORG:TowerMarsh Ltd
TITLE:Managing Director
TEL;WORK;VOICE:+44 (2392) 503893
TEL;HOME;VOICE:+44 (2392) 503893
TEL;CELL;VOICE:+44 (7720) 562048
ADR;WORK:;;130 Parham Road;Gosport;Hants;PO12 4UE;United Kingdom
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:130 Parham Road=3D0D=3D0AGosport, =
Hants PO12 4UE=3D0D=3D0AUnited Kingdom
URL;WORK:http://www.towermarsh.co.uk
EMAIL;PREF;INTERNET:terry.curran@towermarsh.co.uk
REV:20030301T095201Z
END:VCARD

------=_NextPart_000_0001_01C30E9D.71EDCC90--