02-08-2010 04:34 AM
what is the major key word/point need to be kept in mind at the same time when planning to migrate from OpenVMS(DCL Scripts) To Linux(Python)
Note: Please share your exp if any buddy has involved in the same kind of activity ever.
02-08-2010 05:17 AM
You can try to rewrite your Dcl scripts in Python for VMS, and then, the remaining work will be easy, compared to a DCl to bash conversion.
02-08-2010 06:50 AM
2: You're asking the wrong folks for help here. You want and centrally need to ask the folks that are familiar with and that know how to use Linux and bash and python. You're designing for a wholly new environment, and force-fitting an OpenVMS design or an OpenVMS solution or OpenVMS DCL structures will be somewhere between problematic and a maintenance headache and outright failure.
3: Google is your friend.
02-08-2010 01:26 PM
OpenVMS is not Linux, Linux is not OpenVMS. DCL is not Python, Python is not DCL.
Some things are easy to do on OpenVMS and hard on Linux, other things are easy to do on Linux, but hard on OpenVMS. Similarly for DCL and Python, (or Perl, or C, or C++).
Typically DCL is different enough from scripting languages in the Unix world, that there's very little point in attempting a one for one translation. Much better to step back, look at the function of the procedure, and reimplement it in "the way" of the target system. Attempting to force fit OpenVMS ways of doing things is a path to frustration and failure.
(I've reimplemented some DCL procedures in Perl, halving the size and improving the run time 10 fold, just because the function is suited to Perl's strengths. Other DCL procedures in Perl can very difficult, slow, or just don't make sense).
02-08-2010 09:43 PM
Even the use of batch queues can be substituted with diligent use of "at" or a special cron account. Won't be exactly the same, of course, but it will suffice.
No doubt the logic inside a DCL script can be ported to Python, but the interaction with the OS is the most important (and difficult) aspect.
As Hoff says, you need to take this "project" and start from scratch, pulling apart each DCL script and seeing how it can be transposed onto Linux. If you don't you will go nowhere; fast.