Replacing file equations on windows//
Greig Morrison
greig.morrison at sympatico.ca
Sat Oct 26 15:33:22 CDT 2013
In Windows you can also set the "Environment Variables" by opening My
Computer, on the Advanced tab. Click on the Environment Variables button and
setup the Variables and their Values at either the individual User level or
System wide.
Then you can reference them from Powerhouse as Ken mentions using the
%[variable]% syntax.
Greig
-----Original Message-----
Date: Fri, 25 Oct 2013 15:21:33 -0400
From: "Ken Langendock" <ken.langendock at rogers.com>
Subject: RE: Replacing file equations on windows//
To: "'Brian Stephens'" <bws001 at gmail.com>, <powerh-l at lists.sowder.com>
Message-ID: <004001ced1b7$6a958fd0$3fc0af70$@langendock at rogers.com>
Content-Type: text/plain; charset="us-ascii"
This may not be exactly what you are looking for, but here are some options.
(This is from a long list of bat files used to setup different versions of
the same application)
BAT:
set FOLDER=EnCore
set APPLICATION=Core
set COMPANY=c:\progra~1\%FOLDER%
set LOCATION=%COMPANY%\%APPLICATION%\%ENVIRONMENT%
set DATA=%LOCATION%\data
set SYDATA=%DATA%\sydata
PDL:
File QKMSGDES &
Organization SEQUENTIAL &
Open %SYDATA%\qkmsgdes
Record QKMSGDES &
File JobCounters &
Organization INDEXED &
@if HPMPEXL
Type KSAMXL &
ReUse &
Ascii &
Open JOBCOUNT.DATA &
@elseif UNIX
Type CISAM &
Open $COMPANY/jobCount &
@elseif WINDOWS
Type DISAM &
Open %COMPANY%\jobCount &
@endif
Create
Record JobCounters &
Hope this helps.
Ken
From: powerh-l-bounces+ken.langendock=rogers.com at lists.sowder.com
[mailto:powerh-l-bounces+ken.langendock=rogers.com at lists.sowder.com] On
Behalf Of Brian Stephens
Sent: Friday, October 25, 2013 3:00 PM
To: powerh-l at lists.sowder.com
Subject: Replacing file equations on windows//
On the 3K you can point a file reference from one place to another..
IE the formal name is BTCHFILE.JOBS.WORK
You want to open something called MYBATCH.LOCAL
so FILE BTCHFILE.JOBS.WORK = MYBATCH.LOCAL
OpenVMS and Unix have a similar constructs ( something like the pathing
would be different but essentially BTCHFILE=MYBATCH )
Does windows?
SET doesn't seem to work..
neither
SET BTCHFILE=MYBATCH
or SET BTCHFILE.dat=MYBATCH.dat worked in my tests
I know that I can put an environment variable in the PDL but for my purposes
that would make things messy.
--
Thanks
Brian Stephens
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.sowder.com/pipermail/powerh-l/attachments/20131025/76e09979/at
tachment-0001.htm>
More information about the powerh-l
mailing list