Replacing file equations on windows//

Ken Langendock ken.langendock at rogers.com
Fri Oct 25 14:21:33 CDT 2013


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/attachment.htm>


More information about the powerh-l mailing list