Showing posts with label Cobol. Show all posts
Showing posts with label Cobol. Show all posts

Sunday, June 3, 2018

Coding

I love to code. Its as simple as that. If I had a job where I couldn't code, I probably wouldn't stay in that job very long.

I don't especially care what the language is because I can figure it out (with my pal Google). I've coded in a lot of different languages. I'm sure there are more than this but these are the ones I can think of off the top of my head: Basic, Assembly, Pascal / Delphi, Today, Progress, Cobol, dBase, Hibol, C, C++, C#, VB, VBScript, VB.Net, Java, JavaScript, Perl, PowerShell, PHP, Various other "shell" batch languages

I loved doing Assembly when I was deep into it (many, many moons ago). The system was there for all to see and I was tweaking the heck out of it. I doubt that I would know where to begin on a 'modern' system.

I'm not sure that I have a favorite language. If I'm going to do something web based then I would probably choose PHP (with lots of JavaScript). If I'm going to do something Windows based then its probably going to be C#. If I just need a script then most likely it will be PowerShell or Bash (depending on the OS :)).

My advice to you, learn all you can and follow your passion. The more you know, the more valuable you are and the more hire-able you will be.

Thursday, July 14, 2011

AS400 / iSeries Fun

Where I work we still have some Cobol programs in use and I am the only one that supports them.  I decided that I needed an easy way to pull the source code to my PC so I could use a slightly more friendly way to review the code and figure out what it does (so I could replace it with C# code).

Turns out that old school is the way to go.  I FTP'd into the server, changed into the appropriate library and did a get on the source file I wanted.  Very nice and easy.  Then I decided why not just pull it all so I did an mget and it worked.  Very nice!  Dropped all the source onto a Linux box so I could grep it anytime I wanted.  Did a WC on it and found that we had about 1.5 million lines of code spread across 7000 programs.

Wanted to share how I did it for others:

cd (some folder here to store the source files)
ftp servername
Enter Username & Password
cd (library here)
prompt (to turn off prompting for each file)
mget source.*
(wait for it to finish)
quit

Enjoy!
Copyright Realm Laboratories, LLC