I did not see evidence that your normalised the data prior to outputting it to RDB table format. In any event as the data is date / time etc you would have been wise to define table elements as date and/or time in each case. Vincent mod edit for some reply-to
Always have a friend named Jim. Then you get Bonding. James Bonding.
Thanks for that, Simon. Yeah, it was trying Windows Terminal and WSL that enticed me back in. Then seeing all the public repos for PowerShell and .NET, with releases for GNU/Linux, and I've been using this machine for the last few months. With far less annoyance than previous attempts with Windows from decades past. Don't get the sense that a corporation is trying to lock me in one of the subbasements until I pay my way out this time around. :-) Have good, Blue
What do hungry clocks do? Go back four seconds.
Just heard. Australia's biggest export is boomerangs. The biggest import is, boomerangs.
László Erdős, contributions Sauro Menna, GCSORT Marco Ridoni, Gix Colin Duquesnoy. OpenCOBOLIDE ? Not sure how many layers deep this would want to go. Have good, Blue
Yeah, I was pondering that. Being in the further explicit thanks list seems underwhelming. :-) Might do something, probably won't. Cheers, Blue
Nothing is in the never pile, Paul. Just the stack of todos and the who's todoing. TUI effects might be a thing we could build on Eugenio's works with the TUI-TOOLS contribution as guidance. Cheers, Blue
Typo in TinCobol near the bottom for Rildo. Though that wouldn't be a bad small tin COBOL brandname. ;-) Cheers, Blue
Walter Bright capitulated and wrote a C compiler for inside D. A while ago. I'm amazed. First try with a copy of trunk. prompt$ ./configure CC=gdc ... checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gdc accepts -g... yes checking for gdc option to enable C11 features... none needed checking whether...
Thanks, Arnold. Simon, Ron, me, et al, why is Arnold's name not anywhere in SVN? :-) Joking, not joking. Arnold, would you mind if we put your name in some of the front matter source file commentary? Seriously. A credit deserved, I think. Have good, Blue
Thanks for the reminder, Simon. Seems they bump into the same problem with Python as FLI COBOL found. The libPython library version gets hardcoded in some of the binary tooling at compile time. When Python upgrades, the compiler (in this case debugger) needs to be recompiled. They have packages of gcb-cobol for Debian 11 (Py 3.11), Ubuntu 20, Ubuntu2 (which is the one I snagged for WIndows 10 WSLg for Py 3.10) https://cobolworx.com/pages/downloads/gdb-cobol-14_14.0.3_ubuntu22_x86_64.deb I've been...
Just as a by the by, ACU reserved words is going to be our first GUI, Simon? I'm finally revisting Agar. I'm late to the game this time. 1.6 has been out for a while, and 1.7 is round the corner, for undefined size of corner. Have it running fairly smoothly under Windows MSYS2, and WSLg. Do we start mapping Agar calls to ACU syntax? @sf-mensch Cheers, Blue
For anyone on Debian/APT based distros, experimental .deb package is up at https://cobolworx.com/pages/cobforgcc.html It was https://cobolworx.com/pages/downloads/gcobol-13_13.0.14_x86_64.deb when I looked last, but go to the main page and snag recents... Working well with WSLg Ubuntu 22.04 on WIndows 10, prompt$ sudo dpkg -i ... Way to go, James, if you still read here. Nicely done, and keep on keepin' on. I've been waving some pom poms. btiffin:~/lang/gcobol$ gcobol -o hello hello.cob btiffin:~/lang/gcobol$...
Oh, one thing. I tried this for a while, and wanted to re-enable to see it I noticed a difference. Like the no disk trashing, but BlueStacks complains from time to time about running out of doughnuts (by that I mean memory, from the magnetic core metal ring donut days) Thought it would be a simple sc config "SysMain" start= enabled Ha. Not so. start= needs a type of start. boot, system, auto, manual, ... I have no idea what kind of service start up to use for SysMain seeing as I still know nothing....
Sorry, no, KT. I got dragged away from the computer during most of the last call. Will try again on the 21st. Apologies, Blue
Yeah, there was once a full treatise written up on how to access Excel and Access data from OpenCOBOL, but I didn't snag the article out of the TikiWiki before Aoirthoir had to reset the hosting. Steve unlayered the docx zip and got at the inner XML. I think goes all the way back to 2015ish or before. And yes, there should be more articles. Well, there are a few, but need to find them. If this needs to be done quickly, I'd start with looking to see if sfk Swiss File Knife can't pull out the fields...
For wasting time. prompt$ time time time time ls VProgramming.pdf gcv hello inwebs trials webs 0.01user 0.00system 0:00.03elapsed 41%CPU (0avgtext+0avgdata 9808maxresident)k 0inputs+0outputs (2567major+0minor)pagefaults 0swaps 0.01user 0.03system 0:00.08elapsed 54%CPU (0avgtext+0avgdata 19640maxresident)k 0inputs+0outputs (5135major+0minor)pagefaults 0swaps 0.01user 0.06system 0:00.13elapsed 56%CPU (0avgtext+0avgdata 29480maxresident)k 0inputs+0outputs (7707major+0minor)pagefaults 0swaps 0.03user...
That last one led to some more exploring of the .NET type casting available in PowerShell. Here's a note to self, note to all for more explicit typing. https://stackoverflow.com/questions/22794438/powershell-type-cast-using-type-stored-in-variable/22796417#22796417 [System.Management.Automation.LanguagePrimitives]::ConvertTo($Value, $TargetType) For a more true cast, as objects can override something something... function GenerateCastScriptBlock { param([type]$Type) [scriptblock]::Create('param($Value)...
Thanks for that one, KT. I fit the small machine profile. Disabling this led to less whir. BlueStacks struggles with a VM that wants more than the machine has, but less whir is worth the jitter. Insider command too, it looks like. C:\Users\btiffin>help sc ERROR: Unrecognized command DESCRIPTION: SC is a command line program used for communicating with the Service Control Manager and services. USAGE: sc <server> [command] [service name] <option1> <option2>... :-) Cheers, Blue
Handy for avoiding trying to remember, and spam, the startup keys to get to BIOS/UEFI firmware on restart. From a CMD Command Prompt, in Administrator mode (Ctrl-Alt-click in Terminal on the Command profile from the Point Down v menu) prompt$ shutdown /r /fw /f /t 0 or PS> cmd /c shutdown /r /fw /f /t 0 from a PowerShell console. /fw is the magic switch. But the /f will force quit all the apps, so do this with all work saved and no important applications running. Turns out /t with a timeout number...
That last one lead to some more exploring of the .NET type casting available in PowerShell. Here's a note to self, note to all for more explicit typing. https://stackoverflow.com/questions/22794438/powershell-type-cast-using-type-stored-in-variable/22796417#22796417 [System.Management.Automation.LanguagePrimitives]::ConvertTo($Value, $TargetType) For a more true cast, as objects can override something something... function GenerateCastScriptBlock { param([type]$Type) [scriptblock]::Create('param($Value)...
Handy timer setups in PowerShell. $startTime = $(get-date) ... do the thing $elapsed = $(get-date) - $startTime $showTime = "0:HH:mm:ssffff}" -f ([datetime]$elapsed.Ticks) echo $showTime That's almost short enough to remember in the console. mm:ss sans the ffff (phmilli seconds?) if you don't need subseconds. Have good, Blue
https://forum.osdev.org/viewtopic.php?f=2&t=56600 which leads to https://github.com/wxwisiasdf/cobol-pc86 A kernel. In COBOL. In GnuCOBOL Have good, make well, Blue :-)
t-shirt It's weird being the same age as old people
t-shirt It's weird being the same age as old people
Roses are red this code is disaster git push --force origin master
March 7th is the next conference call. I'll try and ask, KT. Have good, Blue
Customer calls into the repair shop with a printer problem. Paper smeared. "Well, if you have the manual, page 2 explains how to unscrew and realign..." says the friendly help. Customer disrupting, "Wait, does your boss know you are discouraging work? Good on ya though, thanks." "Well, ummm, it was his idea. He figures we'll make more money if the customer tries first..."
... -A <options> add <options> to the C compile phase -Q <options> add <options> to the C link phase -D <define> define <define> for COBOL compilation -K <entry> generate CALL to <entry> as static ... At least in trunk 4 pre-rel, and it was in 2.2. https://gnucobol.sourceforge.io/faq/index.html#for-2-0-that-becomes There might be plans to segment help in the 3.2 branch? Which would be cool, if help was all in or just the highlights sans the -f's and -w's. From svn log --diff help.c (in cobc/) it...
cobcrun accepts a module name, then implies the .so / .dll it will probably find it in. If you want to run a program from COBOL sources, try cobc -xj prog.cob. -x builds an exe, the -j switch is run job. Or you can cobc -x prog.cob and then run ./prog. Or you can cobc -m prog.cob which creates a module file, of the type that cobcrun expects. prog.so on Linux, with a function inside called by the program-id. name. that you use in the COBOL identification division. For cobcrun to run smoothly, use...
Nice work, Simon. This is awesome. First pre-req listing, typo. Second sudo apt update should be sudo apt upgrade I was just going to fix it, but then I figured I'd pester you to attach all the goodies as a script file or nine too, and have the correction upstream. ;-) Nice, Blue
Exploring .NET with the dotnet command. Microsoft is big on telemetry. Should be opt-in, but they often choose opt-out. dotnet is no different. If you don't want telemetry sent to homebase while you flail around in the early days of dotnet, you need to set an environment variable. export DOTNET_CLI_TELEMETRY_OPTOUT=1 in bash, or $ENV:DOTNET_CLI_TELEMETRY_OPTOUT = "1" in PowerShell. (Or "true"). I can see wanting to have stats to lead some decisions around a programming language tool, but it should...
You seem to be under the impression that the so called standard for OO is not like the primary Cobol One If you look closely at the standard of any issue you will see that a large amount of it is subject to vendor implementation, where in many cases if very different and like SQL does not match up between vendors. . It is similar but not the same, where 'similar' can be a bit of a loose word. As very few compiler actually use OO and then mostly for Windows based platforms there is serious differences...
There is a away to learn Cobol OO - by using the Micro Focus Visual Cobol Personal Edition. You have to apply for it via their website and the license lasts one year but you can just renew by applying again a day or two before expiry. That's the easy bit - how ever when I changed to the current one to VS for MS visual studio it failed to install and suggest removing the old one - that will not work so had to un-install 2019 then tried to install the latest and now that totally fails. Have not worked...
Not quite : Is NetCOBOL for Linux x64 an Open Source product? As described above, NetCOBOL for Linux x64 has been created using proprietary Fujitsu technology that has been proven and sold for many years on other platforms. It therefore does not make sense to make NetCOBOL for Linux x64 an Open Source product. If fact it is an expensive compiler to buy but with the benefit that run time licensing is free. This implies that user do not pay any fees to run the compiled application/s. Last time I looked...
When creating design diagrams, use some style. They need art. No one wants to see ugly flowch.
When creating design diagrams, use some style. They need art. No one wants to see your disgusting flowch.
First a fixey thing. When I started with Windows Terminal, I was also willing to give VSCodium a try. Way too slow and flashy for my liking in an edit session. But, I had associated .json files with VSCodium. Went into Settings -> Applications, found the Default App by File Type at the bottom, and went to change the default for .json. Not listed, I could pick Visual Studio, VSCode or VSCodium. No button for Find other... Created an empy .json file in a junk directory, used File Manager to view the...
The gnuCobol compiler like many others utilises a RDBMS pre-compiler, and it is this tool that is normally specific to a given RDBMS that converts the SQL to Cobol data blocks and procedure statements at the point that the SQL statements are found by the pre-processor and injected into a new version of the source file that does NOT replace the original, i.e., pre-processor input file fred.scb output fred.cbl The created file fred.cbl is input to the compiler. As I said this is hardly new and has...
May be I did not explain the process :-- When using SQL in a program you by convention name the file extension as .scb (for sql cobol) run the pre-compiler passing it the source file and the name of the generated one including all the non SQL code. Then using the generated source file run that through the Cobol compiler along with the required libraries that support the DB. Easy - well sort of :) Your comments regarding usage of SQL code within a Cobol program sources is wrong as it is passed through...
Try and capture the message from the console, paste it here, and a chunk of source code we can maybe try out. If there is proprietary code, then we'd want what StackOverflow calls a Minimal Reproducible Verifiable Example or something close enough to not make for too much work on behalf of the helpers. And we do not mind ping pong back and forth messaging to work through problems here. Have good, Blue
:-) Still have no idea what your error message is though, and the image doesn't really cut it for local trials. So, unless I'm missing something obvious in the image (a distinct possibility) we'll need more info to help. Cheers, Blue
One reason for EXEC SQL is linking COBOL working store with link library pointers to data. It might not work that way for all COBOL compilers, but GnuCOBOL codegen loses pretty much all reference to COBOL names when generating C code. WS-FIELD will be a b_someunknownnumber (or f_??, ??_num) definition in C linkage. And we can't really leave a shared libary around that knows how to get at COBOL fields from the C ABI, without cobc in the middle, and with EXEC SQL preprocessing to pass to cobc. One...
First a fixey thing. When I started with Windows Terminal, I was also willing to give VSCodium a try. Way too slow and flashy for my liking in an edit session. But, I had associated .json files with VSCodium. Went into Settings -> Applications, found the Default App by File Type at the bottom, and went to change the default for .json. Not listed, I could pick Visual Studio, VSCode or VSCodium. No button for Find other... Created an empy .json file in a junk directory, used File Manager to view the...
Can't tell much from that Julius. Try to cut and paste some of the text, or attach redacted code listings, as source, not image. Unless you are getting the message from seq number 002500? There is a stray date after the period it looks like. Cheers, Blue
Can't tell much from that Julius. Try to cut and paste some of the text, or attach redacted code listings. Unless you are getting the message from seq number 002500? There is a stray date after the period it looks like. Cheers, Blue
t-shirt It's weird being the same age as old people
And just to put your mind at ease about posting here, KT. GnuCOBOL is what it is, but the Lounge is for discussing all the things. Just expect responses from potentially socially awkward COBOL programmers. ;-) All things COBOL, all things that might come up in a lounge, mostly COBOL related or tangential as that's the audience, but that's just a mostly. With the caveat of be nice. I'm only stating this next bit for the benefit of anyone that may read this KT, as I have a pretty good sense you are...
Ahh, I was in that camp for decades and decades, Vince, so I can't say I disagree, but... Giving Windows an honest go this time around. Windows Terminal, with profiles for PowerShell, CMD, Ubuntu via WSLg (running X11). It's an ok development experience. Add MSYS2 cobc and a few session variables and you can have cobc Windows talking with cobc Linux, talking to cobc remote mixed with dotnet and ... Almost all the dev tools are open and ready for exploration now, shallow or deep. Vim, with a fallback...
Ahh, I was in that camp for decades and decades, Vince. Giving Windows an honest go this time around. Windows Terminal, with profiles for PowerShell, CMD, Ubuntu via WSLg (running X11). It's an ok development experience. Add MSYS2 cobc and a few session variables and you can have cobc Windows talking with cobc Linux, talking to cobc remote mixed with dotnet and ... Vim, with a fallback of Codium. Not heinous. Yeah, the machine chews cycles it probably doesn't need to, (or maybe it does need the Antimalware...
Ahh, I was in that camp for decades and decades, Vince. Giving Windows an honest go this time around. Windows Terminal, with profiles for PowerShell, CMD, Ubuntu via WSLg (running X11). It's an ok development experience. Add MSYS2 cobc and a few session variables and you can have cobc Windows talking with cobc Linux, talking to cobc remote mixed with dotnet and ... Vim, with a fallback of Codium. Not heinous. Yeah, the machine chews cycles is probably doesn't need to, (or maybe it does need the Antimalware...
Well done, KT. Awesome news. Have good, make well, Blue
:-) Almost need a combination for this one. Not really a Lame Joke, and not really a Tech Tip. Lame tech tip noise? Still impressed with Windows Terminal. A nice row of Power Shell, PS Core, Command Prompt, Ubuntu, and a transparent Seethru profile for transcribing. All the things. Run an instance of Hercules MVS in all of them if wants be, except don't, unless you are running separate copies of the DASD too. Two emulated mainframes active on one shared, emulated disk stack without special handling...
Handy for avoiding trying to remember, and spam, the startup keys to get to BIOS/EUFI firmware on restart. From a CMD Command Prompt, in Administrator mode (Ctrl-Alt-click in Terminal on the Command profile from the Point Down v menu) prompt$ shutdown /r /fw /f /t 0 or PS> cmd /c shutdown /r /fw /f /t 0 from a PowerShell console. /fw is the magic switch. But the /f will force quit all the apps, so do this with all work saved and no important applications running. Turns out /t with a timeout number...
In the meanwhile... https://gnucobol.sourceforge.io/faq/index.html#function-test-formatted-datetime Or for most https://gnucobol.sourceforge.io/faq/index.html#does-gnucobol-implement-any-intrinsic-functions If that helps, Blue
:-) Almost need a combination for this one. Not really a Lame Joke, and not really a Tech Tip. Lame tech tip noise? Still impressed with Windows Terminal. A nice row of Power Shell, PS Core, Command Prompt, Ubuntu, and a transparent Seethru profile for transcribing. All the things. Run an instance of Hercules MVS in all of them if wants be, except don't, unless you are running separate copies of the DASD too. Two emulated mainframes active on one shared, emulated disk stack without special handling...
Love lame. Why did the computer cross the road? To get a byte to eat. Why did Windows cross the road? To get a byte, to eat.
On another nerd shirt. Shirt<T>
On another nerd shirt. Shirt\<T>
On another nerd shirt. Shirt<t></t>
Sweet. Thanks for the heads up, Mickey. Woohoo. :-) Have good, Blue
No worries, Everaldo. Keep on truckin'. Being able to advertise GnuCOBOL running in DOS land is going to be for the win. I have a business associate that will salivate over GnuCOBOL in MS-DOS space as free software, and I for one appreciate your persistence in working through it. Even if it takes a lot of back and forth messaging. Have good, make well, Blue
The USA has a new backup plan. USB.
There's a handy keyboard shortcut for when you don't want to get up and go to the bathroom while in the zone. Ctrl-P
Think your computer, laptop, or phone spying on you is scary? Think again, because your vacuum cleaner has been gathering dirt on you for years!
I'm all for leaving this in GnuCOBOL. This is a technical discussion on building GnuCOBOL in DOS land. A good thing. If it takes a 1,000 ping pong messages to get right, then so be it. It's all in one thread. One vote for keeping it where it is, and a thanks to Everaldo for the persistence in working through it, and to Simon for being the helpful lead that he is. Highlight that it's one vote. Mickey, yours counts too, and it's part of the burden we suffer with being moderators for the common good....
At an interview. "So, how many programming languages would you say you know?" "Oh, about 20." "Ok, how many can you use to convert a string to an integer without using Google?" "Umm..."
Debugging is like being the detective in a crime movie, when you are also the murderer.
When a programmer tells you their passcode is 12345678, they really mean 2444666668888888.
One of the biggest lies of all time? I have read and agree to the terms of service.
Gotta like simple things. Codey lookin' but fairly easy on the brain. prompt$ ./guish -c '|b|<"Quit"=>c{q}+' Puts up a Quit button that executes the guish q special command on click. X11. Early days. May or may not be worth following, but it holds promise. It reminds me of small s.c.r.i.p.t. and almost makes me want to extend small into a single character read interpret programming toyol with graphics. ;-) https://codeberg.org/phranz/guish There is a lot more in the early releases (already on version...
Not a tech tip, really, I don't think, but, GnuCOBOL used in dotnet... A small C# program to put the Powershell module to use. Calls cobc -xj to capture stdout from the COBOL run as PSObjects in Powershell. Excercise hosting Powershell in C#, on WSL Ubuntu // Author: Brian Tiffin. // Dedicated to the Public Domain // Modified: 2023-01-03/00:51-0500 btiffin // C# with Powershell dotnet assembly, invoking GnuCOBOL // Tectonics: // dotnet new console -o pstrial // dotnet add package Microsoft.Powershell.SDK...
Not a tech tip, really, I don't think, but, GnuCOBOL used in dotnet... A small C# program to put the Powershell module to use. Calls cobc -xj to capture stdout from the COBOL run as PSObjects in Powershell. Excercise hosting Powershell in C#, on WSL Ubuntu // Author: Brian Tiffin. // Dedicated to the Public Domain // Modified: 2023-01-03/00:51-0500 btiffin // C# with Powershell dotnet assembly, invoking GnuCOBOL // Tectonics: // dotnet new console -o pstrial // dotnet add package Microsoft.Powershell.SDK...
Not a tech tip, really, I don't think, but, GnuCOBOL used in dotnet... A small C# program to put the Powershell module to use. Calls cobc -xj to capture stdout from the COBOL run as PSObjects in Powershell. Excercise hosting Powershell in C#, on WSL Ubuntu // Author: Brian Tiffin. // Copyright 2023 Brian Tiffin // Dedicated to the Public Domain // Modified: 2023-01-03/00:51-0500 btiffin // C# with Powershell dotnet assembly, invoking GnuCOBOL // Tectonics: // dotnet new console -o pstrial // dotnet...
Powershell prompt function Along with $PSStyle, there is a bunch of automagic with the PS prompt. The string is taken from the output of the builtin prompt function, part of PSReadLineOption. get-psreadlineoption, element is prompt. You just need to define a function in the $profile for the current session. Nifty that the startup script for PowerShell can be found with the autovariable $profile. One way to see the current prompt function is to look in the function: provider. get-childitem function:...
Fancy screens Powershell now includes an auto variable/object $PSStyle. The default representation shows the ANSI escape codes for a bunch of methods and named properties. They show up in colour in Terminal but this post is more interested in the key names and methods. PS73 /home/btiffin> $PSStyle | get-member TypeName: System.Management.Automation.PSStyle Name MemberType Definition ---- ---------- ---------- Equals Method bool Equals(System.Object obj) FormatHyperlink Method string FormatHyperlink(string...
Attached the code. Needs libcmark and libcmark-dev installed in the GNU/Linux container. And yes, more XML experiments have been added to the TODO pile. These explorations brought up the weirdness of PSObject collections too. Like getting at a simple Maj.Min.Rev value for $PSVersionTable. PS73 /home/btiffin> $PSVersionTable Name Value ---- ----- PSVersion 7.3.1 PSEdition Core GitCommitId 7.3.1 OS Linux 5.15.79.1-microsoft-standard-WSL2 #1 SMP Wed Nov 23 01:01:46 UTC 2022 Platform Unix PSCompatibleVersions...
Powershell and XML I was trying out libcmark, CommonMark Markdown in C, from GnuCOBOL WSL One of the output forms from cmark is XML, so a trial ensued. PS51 C:\Users\btiffin> $xml = wsl cobc -x ~/lang/cobol/cmarking.cob -lcmark -Q '-Wl,--no-as-needed' --job=xml That uses Ubuntu cobc, via WSL to compile and run a libcmark program to parse some markdown, output captured in a Powershell variable, $xml. Except it isn't really, XML, from a .NET object point of view. select-xml barfs on the encoding, which...
Powershell and XML I was trying out libcmark, CommonMark Markdown in C, from GnuCOBOL WSL One of the output forms from cmark is XML, so a trial ensued. PS51 C:\Users\btiffin> $xml = wsl cobc -x ~/lang/cobol/cmarking.cob -lcmark -Q '-Wl,--no-as-needed' --job=xml That uses Ubuntu cobc, via WSL to compile and run a libcmark program to parse some markdown, output captured in a Powershell variable, $xml. Except it isn't really, XML, from a .NET object point of view. select-xml barfs on the encoding, which...
A rinse, repeat year? Here's to, not. For me, this post topic is not yet repeat rinsing... Windows Termlnal and Powershell snagging GnuCOBOL outputs via Ubuntu WSL. PS51 C:\Users\btiffin> wsl cobc -x ~/lang/cobol/cmarking.cob -lcmark -Q '-Wl,--no-as-needed' --job=source Trial ===== This is a test -------------- This is the first paragraph. This is the **bold paragraph**. - first list - second list - first list second item Second subsection ----------------- Bye That shows a string that'll be fed...
Maybe PSColor was a poor choice for trial of the public gallery. Remove-Module PSColor ends up removing a critical bit of lower level shell code. Anyone here that might know what info tidbit I'm missing to make this a little safer? PS51 C:\Users\btiffin> remove-module pscolor PS51 C:\Users\btiffin> exit The term 'Out-Default' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct...
Maybe PSColor was a poor choice for trial of the public gallery. Remove-Module PSColor ends up removing a critical bit of lower level shell code. Anyone here that might know what info tidbit I'm missing to make this a little safer? PS51 C:\Users\btiffin> remove-module pscolor PS51 C:\Users\btiffin> exit The term 'Out-Default' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct...
And gripes. Windows Tech Boos get-help output is way too dense, options mixed across lines, resists quick scanning. Got stuck on PSColor, as a trial Gallery install. install-module PSColor, easy peasy. import-module PSColor, a no-go. Days pondering and moving on as a low priority. By whim of flailing, tried adding -verbose to the import. Got the clue to find out why it wasn't allowed in, and where to work a fix. You know, because, ... you want verbose imports. :-) Days. No module found for every...
And gripes. Windows Tech Boos get-help output is way too dense, options mixed across lines, resists quick scanning. Got stuck on PSColor, as a trial Gallery install. install-module PSColor, easy peasy. import-module PSColor, a no-go. Days pondering and moving on as a low priority. By whim of flailing, tried adding -verbose to the import. Got the clue to find out why it wasn't allowed in, and where to work a fix. You know, because, ... you want verbose imports. :-) Days. No module found for every...
And gripes. Windows Tech Boos get-help output is way too dense, options mixed across lines, resists quick scanning. Got stuck on PSColor, as a trial Gallery install. install-module PSColor, easy peasy. import-module PSColor, a no-go. Days pondering and moving on as a low priority. By whim of flailing, tried adding -verbose to the import. Got the clue to find out why it wasn't allowed in, and where to work a fix. You know, because, ... you want verbose imports. :-) Days. No module found for every...
And gripes. Windows Tech Boos get-help output is way too dense, options mixed across lines, resists quick scanning. Got stuck on PSColor, as a trial Gallery install. install-module PSColor, easy peasy. import PSColor, a no-go. Days pondering and moving on as a low priority. By whim of flailing, tried adding -verbose to the import. Got the clue to find out why it wasn't allowed in, and where to work a fix. You know, because, ... you want verbose imports. :-) Days. No module found for every try. Spanned...
And gripes. Windows Tech Boos get-help output is way too dense, options mixed across lines, resists quick scanning. Got stuck on PSColor, as a trial Gallery install. install-module PSColor, easy peasy. import PSColor, a no-go. Days pondering and moving on as a low priority. By whim of flailing, tried adding -verbose to the import. Got the clue to find out why it wasn't allowed in, and where to work a fix. You know, because, ... you want verbose imports. :-) Days. No module found for every try. Spanned...
wsl ldconfig This was new to me. I've been running cobc on Windows inside a WSL Ubuntu container. Just rebuilt v4, and sudo make install. Then got this PS51 C:\Users\btiffin\lang\cobol> wsl cobc --info cobc: symbol lookup error: cobc: undefined symbol: cob_hard_failure_internal Forgot the sudo ldconfig after the install. PS51 C:\Users\btiffin\lang\cobol> wsl cobc --info cobc (GnuCOBOL) 4.0-early-dev.0 Copyright (C) 2022 Free Software Foundation, Inc. ... extended screen I/O : ncursesw variable file...
And gripes. Windows Tech Boos get-help output is way too dense, options mixed across lines, resists quick scanning. Got stuck on PSColor, as a trial Gallery install. install-module PSColor, easy peasy. import PSColor, a no-go. Days pondering and moving on as a low priority. By whim of flailing, tried adding -verbose to the import. Got the clue to find out why it wasn't allowed in, and where to work a fix. You know, because, ... you want verbose imports. :-) Days. No module found for every try. Spanned...
And gripes. Windows Tech Boos get-help output is way too dense, options mixed across lines, resists quick scanning. Got stuck on PSColor, as a trial Gallery install. install-module PSColor, easy peasy. import PSColor, a no-go. Days pondering and moving on as a low priority. By whim of flailing, tried adding -verbose to the import. Got the clue to find out why it wasn't allowed in, and where to work a fix. You know, because, ... you want verbose imports. :-) Days. No module found for every try. Spanned...
That's actually pretty awesome. Thanks for the explore. Cheers, Blue
Distractions If you are using Powershell 7.3, predictive intellisense was turned on. Turn it down a little, if you get freaked out by ghost shadow predictions of what you are about to type like I do, with Set-PSReadLineOption -PredictionSource Plugin or None. The new default, HistoryAndPlugin is a little too much, History alone is what gives the light coloured prediction based on what you have typed before. Plugin alone will allow purpose installed intellisense plugins to do their thing without the...
Distractions If you are using Powershell 7.3, predictive intellisense was turned on. Turn it down a little, if you get freaked out by ghost shadow predictions of what you are about to type like I do, with Set-PSReadLineOption -PredictionSource Plugin or None. The new default, HistoryAndPlugin is a little too much, History alone is what gives the light coloured predition based on what you have typed before. Plugin alone will allow purpose installed intellisense plugins to do their thing without the...
Oh, and I should add, and it needs more documenting. Ron has a marshaling for C and GnuCOBOL layer built into libcob now. What is/will be the official offering from the compiler. https://sourceforge.net/p/gnucobol/code/HEAD/tree/trunk/libcob/cobcapi.c As stated, needs more documenting and at least a few examples and demos of "real world" use. (Given that demos are almost always not real world). ;-) Cheers, Blue
:-) I wrote a thread on this a while ago. GCV, Get C Value. I pressed to get COBOL only sources integrated with C libraries, because we can. But, there is a preprocessor in C that hides a lot of technical detail from cobc, along with other things László touched on already, like the magic numbers from enums, and how big is an int. I still recommend pure COBOL integrations, but there are times when a thin wrapper in C is the smarter way of tackling some problems. I would never try to integrate Perl...
:-) I wrote a thread on this a while ago. GCV, Get C Value. I pressed to get COBOL only sources integrated with C libraries, because we can. But, there is a preprocessor in C that hides a lot of technical detail from cobc, along with other things László touched on already, like the magic numbers from enums, and how big is an int. I still recommend pure COBOL integrations, but there are times when a thin wrapper in C is the smarter way of tackling some problems. I would never try to integrate Perl...
Works in powershell, with an Arnold install for cobc, and an MSYS2 install for some of the other tooling... PS51 C:\Users\btiffin\lang\cobol\win-sound> ls Directory: C:\Users\btiffin\lang\cobol\win-sound Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 2022-12-19 3:50 PM 81.05KB Linus-linux.wav -a---- 2022-12-19 3:50 PM 421 makefile -a---- 2022-12-19 3:50 PM 2.20KB readme.txt -a---- 2022-12-19 3:50 PM 5.05KB tstwinsound.cob -a---- 2022-12-19 3:50 PM 7.02KB winsound.cob -a----...