User Activity

  • Posted a comment on discussion Help getting started on GnuCOBOL

    Thank you Mike. . I did get it solved some time ago; but appreciate you taking the time to respond. Hopefully it will help others who are trying to set their file names externally, eliminating the need to recompile everytime the file name might change.

  • Posted a comment on discussion Help getting started on GnuCOBOL

    Got it now. Was looking for a simple move; but that was not going to happen. Ended up mapping and interpreting the binary nibbles as 4 digit values so that 0001=1, 0010=2, etc. and by this means building a hexidecimal number.. and then interpreting the hex values back into decimal (by multiplying the rightmost position in the hex number by 1, the next column by 16, the third by 256 (16 squared), the next column by 1024 (256 * 16) and so on.. Once I had the decimal value, I could use it as I wanted...

  • Posted a comment on discussion Help getting started on GnuCOBOL

    Wanted to share this with the group. An admin on another site posted this link: https://github.com/TheBATeam/GetInput-By-Aacini?fbclid=IwAR1wiYXMbv79YcRlttDk5NwyrgswUDdaNLKcP5zfmoRi2IXpFlC7acGXVg8 to an app called GetInput, that does like my original Reply.com.. and returns an ErrorLevel code for any keys pressed. This works well within a batch file, as does the Choice command, which Arnold describes below. The difference between the two is that GetInput returns a value for any key pressed, allowing...

  • Posted a comment on discussion GnuCOBOL on GnuCOBOL

    Slight revision.. Screen field was Z(6).99.. Using the Display after the Accept of the Amount field saved me 35 lines of unnecessary code I had previously installed.. Tested the Add, Inquire and Delete. All good.

  • Posted a comment on discussion GnuCOBOL on GnuCOBOL

    I just tried a new variation that seems to work okay. I had coded with SPACES and also had a version that inputted the original numeric fields. That, of course, looked wonky, although it appeared the numbers stored properly. My latest twist is a simple Display of the Screen field I ACCEPT as Numeric Editied.. and Joila.. it appears as a true number. What I am describing is a Screen Pic of Z(6)9.99, a using field of S9(07)V99 and an input amount like 123.45 After the ACCEPT the field (without the...

  • Posted a comment on discussion GnuCOBOL on GnuCOBOL

    Hi Eugenio, Thank you. Am looking at your coding example and will try that approach as well. Great job documenting. Excellent work. Thanks again, Steve

  • Posted a comment on discussion GnuCOBOL on GnuCOBOL

    Solved.. Coded around it.. Had to switch my screen to PIC X logic and rebuild my numeric fields, as Simon and Bryan alluded. Thanks for the feedback, guys.

  • Posted a comment on discussion Help getting started on GnuCOBOL

    Thank you. Will do. Thought perhaps I was missing a compiler option. This worked fine under Microsoft COBOL. Was surprised to see that GnuCOBOL screen handling did not accept numeric fields.

View All

Personal Data

Username:
steve-m
Joined:
2021-05-21 05:55:08
Location:
Minneapolis / United States / CDT
Gender:
Male

Projects

  • No projects to display.

Personal Tools