1824962 Members
3620 Online
109678 Solutions
New Discussion юеВ

Re: DCL TO SCRIPTS

 
Suporte Opera├з├гo
Occasional Contributor

DCL TO SCRIPTS

Hi all!

I would like to know if there is any software that does the conversion of OPENVMS DCL scripts to HPUX (Unix) .sh scripts.

Someone knows about it??

Thanks

Cido
4 REPLIES 4
Ian Miller.
Honored Contributor

Re: DCL TO SCRIPTS

I don't know of any and I think that automatic conversion would not be possible due to the very different designs of VMS and unix.
The utilities, file system etc are different as well as the command syntax.

I think you would have do examine each DCL procedure in turn to determine what it did and then implement the equivent on hpux - if it makes sense in that environment.
____________________
Purely Personal Opinion
John Koska
Advisor

Re: DCL TO SCRIPTS

Perhaps a product from Channel Islands might help you get to where you are going by another route.

Specifically, Channel Islands has/had a product called DCP, which takes DCL to FORTRAN. You could then take the FORTRAN source and compile on HPUX to get working code, perhaps.

http://www.kgb.com/dcl/199109.txt speaks of the product and company. I have no idea if Channel Islands is still in business or not.

Your mileage will vary a lot on this approach, I would guess.

:) jck
John Koska
Martin P.J. Zinser
Honored Contributor

Re: DCL TO SCRIPTS

Hello Cido,

as Ian pointed out, an automated translation
is most probably not available.

If you just want to save some typing, write a script in your favorite language (DCL, Unix shells and Perl come to mind e.g.) to do simple string substituion (copy -> cp, rename -> mv,
write sys$output -> echo). Note that this will just accomplish that, you still need to read and understand each script to do the right thing on Unix.

Another possiblity might be to actually run the DCL scripts on Unix. You might want to check out http://www.accelr8.com/migprod.html
for this.

And the last and absolutely best solution is to migrate your Unix shell scripts to DCL on VMS, since it is the better environment anyhow ;-)

Cheers, Martin
Daniel Fernandez Illan
Trusted Contributor

Re: DCL TO SCRIPTS

Hello Cido

I don't know if exists some free software to migrate DCL commands to UNIX but this link provides a commercial software (I don't tested this).

http://www.sector7.com/OPENVMS%20MIGRATION/products-and-services.htm


Godd luck.

Daniel.