Hi- Just wanted to correct something. I got thinking at work why did I put a null terminating character at the end of the string constant named foo. The above initial post I made is wrong: It should look something like : char * p = "foo"; NOT char * p = "foo\0"; sorry. It didn't seem right at the time when I added that. I don't know why my mind was in a funk. It was already null terminated when I assiged the string constant. I agonized about this when I got thinking at work, and I was like people...
Hi- Just wanted to correct something. I got thinking at work why did I put a null terminating character at the end of the character pointer. The above initial post I made is wrong: It should look something like : char * p = "foo"; NOT char * p = "foo\0"; sorry. It didn't seem right at the time when I added that. I don't know why my mind was in a funk. It was already null terminated when I assiged the string constant. I agonized about this when I got thinking at work, and I was like people will think...
Hi- I sent the authors a quick message. I hope some day if they are not too busy they can update it to run with newer tools. I can find lots of stuff to do otherwise in case they can't get to it soon. thx.- J. McNamara
Hi- I tried to build ocesql. The most recent version I can find is ocesql 1.1. My cygwin environment won't let me ./configure make make install with that old of a version of libtool. I could only find one project on github. That is 1.0 from 2013. The link in the faq points to 1.1. ocesql. The latest I could find for a reference of an update is 2015. Even if they could rebuild with more recent tools without implementing new features that would be cool. It looks like using postgresql with ocesql is...
Hi- Hi all- I recently posted a thread or two about the C++ branch with soci and ultimate++ being possible ways to extend db in the future. That would require extra work for someone to build an interface, and I realize people already put cool contributions out there and that takes an inordinate amount of time. I kept searching for a way to get more advanced db access because I was unaware how powerful ocesql for postgres actually was until I read about it a second time. I didn't see the relationship...
Hi- Hi all- I recently posted a thread or two about the C++ branch with soci and ultimate++ being possible ways to extend db in the future. That would require extra work for someone to build an interface, and I realize people already put cool contributions out there and that takes an inordinate amount of time. I kept searching for a way to get more advanced db access because I was unaware how powerful ocesql for postgres actually was until I read about it a second time. I didn't see the relationship...
Hi again, Simon/Martin- The next section in my book I haven't read yet talks exactly about my question. I will spend tonight reading and go from there. I need to pay careful attention to when to do the different file options when using the different scenarios. When I tried the extend command it kept the records from before. I passed low-value to the key and then the old records showed up with extend. I will hammer it out reading in my text book tonight. Thanks for the cool help! thx. - Jim
Hi Simon/Martin- I will try Martin's suggestion first and report back. I am working through thane hubbells book. I found that it helps to skip around a little as Martin is indicating. Tonight, I will do light coding and more emphasis on reading. thx. for the cool tips, J. McNamara
Hi- I'm not sure but I may be able to use something like extend. I will read up on it. I looked for append and came across the command extend. Kind of like updating a master file. thx. J. McNamara
Hi- I've got some code that creates a .dat file from a data entry screen. I then read the indexed .dat file with another screen. If I execute each of these programs in sequence, I can read the data. If I start again and enter data, when I go to read input, the previous data is lost the second time I read the .dat file. I am using gnucobol 2.2 with berkley DB (recent version). I know about start and if I trick it to use alternate key by name with like "A" the data at the beginning just isn't there....
hi brian- I will pass on this one. I came up with zed. I will still continue to try to practice gnucobol. I just will wait and see if anyone else has any luck with firebird and see if they have any tips. for now, I will only fool with ocesql japan postgress. that guy from banktrade that is the cool developer has postgress through odbc but I am not sure I want to try to install it. I will stick with ocesql japan. thx. -jim
hi brian- just like with gnucobol i built firebird with --enable-debug. I am picking up an error that I didn't get last time around. I am troubleshooting right now. thx - jim
Brian- Paul Beach from firebird wrote back at firebird mailing list pointing to that same set of instructions. I spent many hours on this thinking I could gain ground but then running in to something not quite right still. The last error is one I can't get past which is attempt to referene unallocated memory. I can get ocesql from Japan to work though. I thought I'd try firebird gpre as it seemed to have a little more power in the docs. None of this is anything I actually really need for a job right...
Brian- Paul Beach from firebird wrote back at firebird mailing list pointing to that same set of instructions. I spent many hours on this thinking I could gain ground but then running in to something not quite right still. The last error is one I can't get past which is attempt to referene unallocated memory. I can get ocesql from Japan to work though. I thought I'd try firebird gpre as it seemed to have a little more power in the docs. None of this is anything I actually really need for a job right...
cobc -x -free -v -L/usr/local/lib -lfbembed -lstdc++ ./simple10.cbl -o simple gcc -Wl,--export-dynamic -o "simple" "/tmp/cob14987_0.o" -L/usr/local/lib -lcob -lm -lgmp -lncursesw -ldb -ldl -l"fbembed" -l"stdc++" -L"/usr/local/lib" -L"/usr/local/firebird/lib" hi - I am getting this error: attempt to reference unallocated memory (signal SIGSEGV) abnormal termination - file contents may be incorrect i think -l"fbembed" and -l"stdc++" might be causing it. the other libraries don't have a " symbol around...
Hi- I will take careful notes. I got it to build and will be testing it tonight. I want to see it work before I post any more notes. Maybe later tonight or tomorrow some time. thx - jim
hi- I am getting feedback. Evidently I may be able to use an older version of gcc and or use some flags to mitigate the problem of the newer standard with old code. I will report back if/when I make some more progress towards those ends. thx. -jim
Hi Brian- firebird mailing list I am asking the developers to give me update on an error I got with gpre. I went and got the source for firebird 2.5. Then I used ./configure -with-gpre-cobol -with-system-icu. When I tried make I get gpre errors. I am wondering if it is the new standard and that I am using a more recent version of gcc. I hope this link shows up so you can find out what the outcome is. thx. - jim
okay. i will work on it this week in the evengings. thx. very much brian :-) have a cool night - jim
First problem, by default, Firebird only comes with the pre-compiler for C/C++ enabled, so we will need to build our own version of Firebird from the source to include Cobol pre-compiler support: ./configure –with-gpre-cobol make hi- i found a guide that says that i missed a step. but I already installed firebird. so this is for another night. all is well. i have plenty of time to fool with it in the evenings this weekend. thx.-jim
Hi all- I am fooling with the gpre. I have this code that is lower level that has been preprocessed and fooled with by me a bit bit below. I used cobc -free -x crazytown.cbl -L/usr/local/lib -lcob after running it through the preprocessor to execute the output file. Here is the free format mess. I am getting the error ./crazytown.exe libcob: cannot find module 'isc_compile_request2' Does anyone know what I am missing from firebird I need in my project for the compiler? I am just trying to get a successful...
Hi Brian- I like that link you provided. It is really cool. So many great tricks! Thanks very much. Have a cool weekend :-) jim
Hi Brian- I fired up linux this time around to get the job done. This afternoon I had to install cobol and other stuff in my virtualbox linux guest. I got it figured out quicker than last time. I saw some things that I did wrong and found new articles to help me. I ran this cobol code successfully: IDENTIFICATION DIVISION. PROGRAM-ID. Hello as "Tctcl_Init". ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 77 TSCR PIC X(512). 77 THREE PIC X(80). 77 EOSTR pic X value LOW-VALUES. 77 CNT...
Hi Brian- I am looking at how to look up symbols. I think I will try to work on this myself for a while. There is no deadline. I can look at symbols and options for gcc. thx. - jim
That is really funny. I will look at gcc options some more and check. How would you test out the symbol? Is it easy? I set up virtualbox with linux guest. I switch back and forth between windows, cygwin, and fedora linux. I am trying to use windows because the place where I work is a windows shop. I am just clerical hybrid extraordinaire. I thought they'd like to know that gnucobol can thrive on windows. I am not brave enough for dual boot. The boot loader if it is shared is supposed to be 500 mb....
I thought that adding windows.h might work. I tried to recompile the file with that added windows.h header and link again. I am right back to square one where you offered to check dynamic exports. I tried initTcl and Inittcl change in case in the c file implementation. I don't know where the c prototypes for the functions are. Maybe they are not needed - just definitions? No joy yet. Most recent error ... cannot find inittcl or InitTcl etc. If I take out InitTcl then it complains on the next api...
Hey Brian- #ifdef WINDOWS #include <windows.h> BOOL _export WINAPI DllEntryPoint (HINSTANCE hInstance, DWORD seginfo, LPVOID lpCmdLine) { /* Microsoft ONLY MAKES CRAP!!!!!!!! THIS DUMB FUNCTION EXISTS ONLY TO FULFILL MS-WINDOWS NEEDS. Bill Gates will burn in HELL. */ return TRUE; } #endif This code might give me problems. It is from his tcl API code for c. I am thinking I don't have windows.h. If it is #include "windows.h" then if I even had the file on my machine it would be in the directory that...
HI Brian- It got past that with the switch. Now it says can't find a module InitTcl. The module is from rildo pragana's code. The tctcl Application Program Interface (API) InitTcl Must be used before any other call. mtdew@BLASTER-6000 ~/gnu-cobol-2.0/cobc $ wish8.6 % load a.dll tctcl libcob: cob_init() has not been called mtdew@BLASTER-6000 ~/gnu-cobol-2.0/cobc $ wish8.6 % load a.dll tctcl libcob: cannot find module 'InitTcl' mtdew@BLASTER-6000 ~/tctcl $ ls a.dll cscode.tcl hello.tcl tclgui.lis tctcl.c...
Hi Brian I got a new message: mtdew@BLASTER-6000 ~/gnu-cobol-2.0/cobc $ tclsh % load a.dll Tctcl cannot find symbol "Tctcl_Init": No such process % exit mtdew@BLASTER-6000 ~/gnu-cobol-2.0/cobc $ tclsh % load a.dll tctcl libcob: cob_init() has not been called I don't know if the message cob_init means I got closer. Any ideas? IDENTIFICATION DIVISION. PROGRAM-ID. Hello as "Tctcl_Init". ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 77 TSCR PIC X(512). 77 THREE PIC X(80). 77 EOSTR pic...
hi- my final guess of the night is I am having trouble because some files in cygwin in lib are in the form libm.a. I am not an expert at this but it seems that things are missing when ldd is run! I also see stuff in lib in cygwin like libncurses.a and then libncurses.dll.a. I am headed to bed. I am exhausted. I have to deal with lots of stress tomorrow. thx. - jim
mtdew@BLASTER-6000 ~/tctcl $ ldd tctcl.dll ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x76f10000) KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x74d60000) KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x74d60000) KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll (0x74460000) libtcl8.6.dll => /usr/bin/libtcl8.6.dll (0x50820000) cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000) libtk8.6.dll => /usr/bin/libtk8.6.dll (0x506e0000) cygX11-6.dll => /usr/bin/cygX11-6.dll...
hi all- I am trying to run the following sample program... IDENTIFICATION DIVISION. PROGRAM-ID. Hello. ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 77 TSCR PIC X(512). 77 THREE PIC X(80). 77 EOSTR pic X value LOW-VALUES. PROCEDURE DIVISION. CALL "initTcl" * Source (load) our script into the tcl interpreter String "source hello.tcl" EOSTR into TSCR Call "stcleval" using TSCR THREE. * Make it stay with control * The variable "ok" is modified String "tkwait variable ok" EOSTR into TSCR...
those are some wicked posts... very cool info - thx. brian
Hi- I am seeing that this may be possible using firebird gpre. Here is a quote you...
Hi- I didn't notice a host parameter for ocesql in the lib directory for the header....
Hi - I am testing some code I found in faq. I have it catching function keys but...
Hi- when I start a program from xterm like ./myprog it launches in a black screen....
Hi Luke- thx. for writing. I will check this out at a later date. I bookmarked it....
Hi- Yes Simon. I did not use compat. thx. I had the steps down but only for a night...
Hi David- I saw low-values. I will check that out now. I kind of skipped over it...
Hi- I solved it. I needed to move some spaces to initialize values. thx. J. McNa...
any ideas how to stop funny characters in sequential data file? 01 Switches. 03 END-OF-PROG1-SWITCH...
I found this under the mac install instruction. I am using linux but similar. This...
I can probably figure something out. [pseudo code manual locking](https://support.microfocus.com/documentation/books/ocds42/fhmusr.htm...
HI- Can someone give a very quick example of locking a record when updating? 6.1.11.2...
Hi- I tried to post as annoynmous hours ago. I am reposting with my username to speed...
Hi Brian- Your work on sharing data/passing data with TCL will attract many programmers...
okay ... cool! thx again, brian- jim
Brian- I am taking a break posting for one month. I am going to be practicing writing...
Hi Brian- Well for some reason the by content z"::argstr" I had taken the z out....
brian- I am taking a break from cobol for now. I can run the hello world script in...
hi- this one adds "/usr/include" bb1519da@trusty:~/tinycobol101$ cobc -xv gnucobol-jim.cob...
hi brian- here it is down to just one include: bb1519da@trusty:~/tinycobol101$ ./gnucobol-jim...
brian- this one reads a little better. I fixed the include versus lib issue in the...
Hi Brian- I hope I inched further along. Here is the result of what I thought you...
I don't use an amd processor. Should that matter?
Hi Brian- Are you using ubuntu/debian? Are using something like microfocus or you...
Hi Brian- bb1519da@trusty:~/tinycobol101$ cd /usr/lib/x86_64-linux-gnu/ bb1519da@trusty:/usr/lib/x86_64-linux-gnu$...
Hi Brian- I just fooled around and added jimtcl .76-2. I had to install from debian...
Hi- I ran some of the tests and the ones I ran were all passing. I also noticed you...
test link
Russell- I wonder if this could be related to the code in getting started https://sourceforge.net/p/open-cobol/discussion/help/thread/4786433b/...
Hi Brian- I put suversion on system and make clean the other one and switch to newer....
hi brian- is gnucobol 1.1 on sourceforge new enough for this example? bb1519da@trusty:~/tinycobol101$...
Hi Brian- I thought about how you might be making these code files. I have a good...
Hi Brian- thx. for the very cool update! jim
hi- oh... and I guess you could put set args "" for a default arg or some error trapping...
++filename: fs.tcl++ proc srcfile { filename args } { global argv set argv $args...
thanks -Brian. I will definitely check this new information out.. THX!
Hi- Please don't reply to the above posts in my thread. I studied the faq swig and...
from tinycobol.... Pag. 4/13 They are interpreted, and TRES contains the result of...
I thought a little more about it. I am not sure but the pic x(80) return result might...
hi- Without getting into a lot of details, do you think it is possible to not use...
Hi Brian and Simon- Some of your magic must have rubbed off on me. I will post a...
hi Brian and Simon- WoW- very cool stuff. I will be busy reading tonight. I will...
oops... I meant for this thread to be listed in the help getting started list. sorry...
Hi Brian or others that have Tcl/Tk working. With GTK+, Brian added the last 2 lines...
Hi Simon- I cut and pasted the second of your two solutions into a terminal. I don'...
Hi- This is my last query for help tonight. Here is some more data on my configure....
Hi- I am someone that doesn't do a lot of custom builds in linux. I usually install...
hi- I am off to a better start tonight. This time I installed from the sourceforge...
http://searchdatacenter.techtarget.com/definition/ISAM Hi- In the link above it pretty...
Hi- The data is there but it is hiding. I did a cat filename.dat. Now I have a frame...
Hi Brian- I just read about jimtcl. It is very cool that there are 2 ways. I translated...
Hi Brian- Wow...thanks for the response. I am very interested in GnuCobol, C++, swig,...
okay Oscar. That is very cool!- jim. thx.
Hi- Is the C++ branch really close? It looks it. Hey... I am just thinking that if...
Hi- I just took a break from studying. I am wondering until they do more work on...
Hi- I have a book on make which I think is different from autotools. I think I once...
Hi- Are the programmers using TK with GnuCOBOL mixing the screen section (old style...
Hi- I googled and found my answer re: db. A prior post in your forums gave me the...
Hi- I like this screen too... I found these cool retro cobol screen shots! http://preview.tinyurl.com/hq2kjxh...
Hi- Can anyone provide a few screenshots with samples of GUI forms in a GnuCOBOL...
Hi- Can you use more than labels, lists, and textboxes for gnucobol with TK? If not,...
I am running with the following: if 0 { insert comment } now and I can read fine....
Hi- Is there any way I can change the comments so they are easier to see? thanks