[Info-vax] DCL to PHP converter anyone ?
Arne Vajhøj
arne at vajhoej.dk
Wed May 2 19:39:20 EDT 2012
On 5/2/2012 2:47 AM, DTL wrote:
> Hello All,
>
> I remember having posted this question a few years ago but didn't succeed to find any answer anywhere today.
>
> Does someone know of a DCL to PHP converter, please? (any platform)
For the general case: I don't think it can be done.
I find it very difficult to see what:
$ 'p1' 'p2' 'p3'
should be compiled to.
(using the system call will work but does not provide any value)
For a simple but very relevant subset it may be possible.
But it will require some coding to implement.
> [this is for Hoff]
> Goal is to migrate a DCL procedure containing the following lexicals:
>
> f$cvtime
> f$edit
> f$element
> f$extract
> f$locate
> f$length
> f$search
> f$time
They should not cause a problem.
> and the following statements and verbs:
>
> call
> gosub
> return
> goto
> open
> read
> write
> close
> delete
> sort
> convert/fdl
> append
> type
sort and convert/fdl will be tricky - the rest should not
be a problem.
Arne
More information about the Info-vax
mailing list