Skip to main content

Hey group!
Is it possible to compile a Dataworks UniBasic program from a AIX - Unix command line?   Thanks!  




------------------------------
PeterGonzalez
MOUS
------------------------------

Hey group!
Is it possible to compile a Dataworks UniBasic program from a AIX - Unix command line?   Thanks!  




------------------------------
PeterGonzalez
MOUS
------------------------------

Peter,

I attempted to see if you could run the executable that does the compiling from the command line. The first challenge I found was that it requires access to some of the environment variables that the udt executable itself sets when entering a UniData session.

In order to fully test it I would need to continue testing setting each environment variable in turn before running the executable. Then also make sure that the executable itself also does everything that the BASIC verb. For example deleting some of the other files other than the pcode itself depending upon the compile flags set. There is also the setting of the basictype itself that could be set in the LOGIN paragraph to deal with.

So at this point I would have to say you cannot compile a program from the command line without entering UniData itself. If you need to compile from the command line, you can always do 'udt BASIC file program options' and this will invoke a udt session do the compilation and then return to the command line.

Regards,



------------------------------
Jonathan Smith
UniData ATS
Rocket Support
------------------------------

Peter,

I attempted to see if you could run the executable that does the compiling from the command line. The first challenge I found was that it requires access to some of the environment variables that the udt executable itself sets when entering a UniData session.

In order to fully test it I would need to continue testing setting each environment variable in turn before running the executable. Then also make sure that the executable itself also does everything that the BASIC verb. For example deleting some of the other files other than the pcode itself depending upon the compile flags set. There is also the setting of the basictype itself that could be set in the LOGIN paragraph to deal with.

So at this point I would have to say you cannot compile a program from the command line without entering UniData itself. If you need to compile from the command line, you can always do 'udt BASIC file program options' and this will invoke a udt session do the compilation and then return to the command line.

Regards,



------------------------------
Jonathan Smith
UniData ATS
Rocket Support
------------------------------

Jonathon,
Than you very much for responding. I know it's an odd question, but I had to ask.  I'll play around with your suggestion and hopefully I can capture any compile errors. 


fyi: is for a windows editor, UltraEdit that reads a Unibasic program for editing and it would like to be able to compile it with UltraEdit macros.  Long story short with this Unidata system site I can only use AE. I would like to use other MV Windows editors but it's not an option.



------------------------------
PeterGonzalez
MOUS
------------------------------

Jonathon,
Than you very much for responding. I know it's an odd question, but I had to ask.  I'll play around with your suggestion and hopefully I can capture any compile errors. 


fyi: is for a windows editor, UltraEdit that reads a Unibasic program for editing and it would like to be able to compile it with UltraEdit macros.  Long story short with this Unidata system site I can only use AE. I would like to use other MV Windows editors but it's not an option.



------------------------------
PeterGonzalez
MOUS
------------------------------

Hi Peter,

I am a little surprised why are you limited to only using AE, is this a security rule the site is imposing or have they locked down other access. Have you tried looking at the Basic Developer Toolkit that supplied with our tools download. It connects via the unirpcd process and also uses a telnet connection. This would give you a full GUI program editor with the ability to compile, catalog and debug. So if you can telnet to the server, use XAdmin or use an ODBC connection you'll be able to use the BDT.

We're also developing our visual studio code add-in but I don't think it would provide you with what you need at the moment.

Thanks,
Jonathan



------------------------------
Jonathan Smith
UniData ATS
Rocket Support
------------------------------

Hi Peter,

I am a little surprised why are you limited to only using AE, is this a security rule the site is imposing or have they locked down other access. Have you tried looking at the Basic Developer Toolkit that supplied with our tools download. It connects via the unirpcd process and also uses a telnet connection. This would give you a full GUI program editor with the ability to compile, catalog and debug. So if you can telnet to the server, use XAdmin or use an ODBC connection you'll be able to use the BDT.

We're also developing our visual studio code add-in but I don't think it would provide you with what you need at the moment.

Thanks,
Jonathan



------------------------------
Jonathan Smith
UniData ATS
Rocket Support
------------------------------

Jonathon, the inability to use a screen editor is corporate decision to lockdown of the PCs (hopefully that will change in the future)  I have used Accuterm's WED for 2 decades and totally enjoy the build in compile and display of messages.   I'll have to revisit BDT.   thanks!





------------------------------
PeterGonzalez
MOUS
------------------------------

Hey group!
Is it possible to compile a Dataworks UniBasic program from a AIX - Unix command line?   Thanks!  




------------------------------
PeterGonzalez
MOUS
------------------------------

I am able to issue UniData commands from my linux shell by piping them to the udt command.   This works to execute programs as well. 

cd into the path of the account, then - 

echo -e "\\nBASIC BP program.name\\n" | udt



------------------------------
Chad Youngberg
Software Developer
US Bank
Richfield MN US
------------------------------