Add random amount field

Add an random amount field [0.01-100.99] to my Julia program that generates real “looking” customer data. I did this so I could practice numeric calculations in GnuCOBOL.

Wrote GnuCOBOL program that uses the COBOL SORT output to printer, with a heading and final total for a amount field in the input.

GnuCOBOL

Another more advanced  GnuCOBOL program that uses the COBOL SORT. Pretty nice COBOL!
Sort was so fast on my first test of 5000 records, that I reran on 50,000 records. Still literally ran in the blink of an eye. So I timed it.

bill@billb-MS-7B79 ~/Mystuff/COBOL/progs $ time ./sort01 [GnuCOBOL program]
real    0m0.107s
user    0m0.064s
sys     0m0.040s
bill@billb-MS-7B79 ~/Mystuff/COBOL/progs $
 

Input file (sample) looks like…
4016772724115827  4BFDestiny        Bryanna        Hamende             1984-10-118941 E 61 Dr             East Berlin         PA17316
4866213809365608  4CFAlicia         Kendal         Chabala             2000-04-229268 W 91 Way            Minonk              IL61760
4447208205483581  2DMBrayden        Zayne          Muhammad            1991-09-26231 S 75 St              Sulphur             LA70664
4831920901606091  5EMNicholas       Tony           Hochevar            1972-05-197275 NW 179 Av           Pacolet             SC29372
4866500665561571  1HFAshlyn         Cynthia        Mccaughan           1969-05-306799 N 171 St            Questa              NM87556

Sorted (last name, first name) output file (sample) looks like…
Aaberg              Kyler                         1926-11-13
Aagaard             Jalen                         2000-06-21
Aagesen             Keaton                        1951-10-08
Aakhus              Alejandro                     1944-01-11
Aalbers             Julius                        1954-04-20

GnuCOBOL

Decided to kick the tires of GnuCOBOL, pushing it a little harder.
Wrote a little more advanced GnuCOBOL simple array program that Uses: REDEFINES, OCCURS, VARYING.

I have previously wrote a few programs to read/write variable and fixed length records.
Variable length records are pretty much regular ascii files (perhaps delimited with a comma) with lines terminated with a line feed on linux.

Julia/X-Plane scenery organizer

More work on my Julia X-Plane scenery organizer. Created a SQLite ICAO airport database [54,000+ records] from a csv file I found on github. The Julia SQLite handeling has changed since my last use, it now also requires dataframes! See 10/12/2018 where I talked about dataframes.

Because X-Plane has no requirements on scenery file, file names, it seems, at best an organizer can only help organize a file. If some developer creates a library and decides to name it bird then how can an organizer intelligently know it’s a library? If Laminar would simply require file names to follow a standard it would be much easier. At any rate it was a good Julia exercise.

Reran my Julia program, that used SQLite to create real “looking” customer data. Huge SQLite improvement in speed still a little slow on initialization. But once in main loop my gut feel is it’s now faster than Python. Contrast that to what I said on 09/18/2018.

Julia 1.1.0/MS VS Code

Well Julia 1.1.0 came out on 01/22 and good news…it now can execute Julia code within the very cool MS VS Code editor!
Started writing X-Plane 11 “scenery_packs.ini” ordering program. There is an X-Organizer MS-Windows only program that does this. Wow I already forgot so much basic Julia syntax. And my notes were severely lacking basic “if” statement details.

Embarassing…I don’t even want to admit how long I spent trying to figure out what was wrong with the following line…

If ln[1:13] != “SCENERY_PACK “
which caused this error…
‘ERROR: LoadError: syntax: extra token “ln” after end of expression’

Long story short…’If’ should be lowercase!!!!

Finished downloading X-Plane 11

Finally finished downloading X-Plane 11 from Steam, Did a couple GB each day. First thing I did was backup. I had X-Plane 10 but didn’t do too much with it because I was always fighting the controls, even after adjusting trim (aileron & rudder). I’d usually use auto-pilot and make small adjustments from there to fly from point A to B. Immediately I found X-Plane 11 much easier to control.

DOS/VS under VM

A return to mainframe emulation using hercules running in Linux. I have four 3270 terminal’s come up positioned this way with a title bar describing the guest I run there, OPERATOR [starts in the 1st screen automatically], MAINT, DOS1 & DOS2. As you can see I am running 2 DOS guests [DOS1 ran a COBOL compile. DOS2 ran a simple LSERV] and I have a fullscreen edit in MAINT’s account of a VM directory. I can submit DOS jobs to either DOS, from MAINT. Or I can submit the jobs directly from Linux [thus taking advantage of superior editors] if I want.

VM running 2 DOS guests

Python 3

Thanks to Julia I finally decided to dive into Python 3. With many old libraries converted to Python 3 and with Python 2’s impending demise…it’s time.

Note: In the passing couple weeks since this date I’ve written Python 3 programs using PIL, Beautiful Soup and Pandas. I got into Pandas because I kept reading about data frames in Julia and I wanted to learn about the concept. At 1st it sounded intimidating, until I learned it’s simply a way of looking at data like a spreadsheet…rows and columns.