• RAINCODE cobol usage

    From federico priolo@21:1/5 to All on Sat May 8 05:51:09 2021
    Hi all I am just taking a look at raincode compiler. It uses the same cobol syntax of mainframe (that I don't know since I used always powercobol and before RMCOBOL and Microfocus..dialect.)

    So what the beahaviour to get an environment variable running it under window?

    Any examples are welcome

    Federico

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Lee Bieber@21:1/5 to All on Sat May 8 15:20:39 2021
    On Sat, 8 May 2021 05:51:09 -0700 (PDT), federico priolo <federico.priolo@gmail.com> declaimed the following:

    Hi all I am just taking a look at raincode compiler. It uses the same cobol syntax of mainframe (that I don't know since I used always powercobol and before RMCOBOL and Microfocus..dialect.)

    So what the beahaviour to get an environment variable running it under window?

    I'm not sure if I ever got it to create a stand-alone executable... My toy tests required using the DLL and Raincode runner.

    Using rclrun from within the "shell" (launcher.bat) allowed a simple hello_world to compile and run. (I have a shortcut to that which opens a console with the environment set, but for below ran it from within a
    console).

    -=-=-=-
    Microsoft Windows [Version 10.0.19041.928]
    (c) Microsoft Corporation. All rights reserved.

    C:\Users\Wulfraed>"C:\Program Files\Raincode\Compilers\launcher.bat"
    Setting up RainCode Legacy Compilers environment

    C:\Users\Wulfraed>cd Documents\_Hg-Repositories\RCCobol

    C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol>cobrc hello2.cob 1:hello2.cob

    C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol>dir
    Volume in drive C is OS
    Volume Serial Number is 4ACC-3CB4

    Directory of C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol

    05/08/2021 03:09 PM <DIR> .
    05/08/2021 03:09 PM <DIR> ..
    05/08/2021 02:57 PM <DIR> .hg
    03/05/2021 02:57 PM 42 .hgignore
    08/20/2018 10:05 AM <DIR> CobolStudy
    09/11/2017 10:36 PM 6,144 HELLO.exe
    09/11/2017 10:36 PM 17,920 HELLO.pdb
    02/26/2018 12:39 PM 261 hello2.cob
    05/08/2021 03:09 PM 6,656 HELLO2.dll
    05/08/2021 03:02 PM 6,656 HELLO2.exe
    03/13/2020 04:07 PM 1,429 HELLO2.exe.config
    05/08/2021 03:09 PM 24,064 HELLO2.pdb
    03/13/2020 04:06 PM 135,168 RainCodeCobolStats.db
    03/05/2021 02:49 PM <DIR> RFSafety
    03/05/2021 02:49 PM 66,002 RFSafety.exe
    08/20/2018 10:07 AM <DIR> Rw_test
    03/18/2020 10:01 PM <DIR> samples
    03/05/2021 03:15 AM 50,615 Senior74.exe
    09/11/2017 10:33 PM 199 standardopts.resp
    12 File(s) 315,156 bytes
    7 Dir(s) 1,305,215,377,408 bytes free

    C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol>rclrun HELLO2.dll
    HELLO WORLD !
    It is the End of the World

    C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol>
    -=-=-=-

    Note that this built the DLL file. An EXE is created with

    -=-=-=-
    C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol>cobrc :EXE hello2.cob 1:hello2.cob

    C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol>dir
    Volume in drive C is OS
    Volume Serial Number is 4ACC-3CB4

    Directory of C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol

    05/08/2021 03:12 PM <DIR> .
    05/08/2021 03:12 PM <DIR> ..
    05/08/2021 02:57 PM <DIR> .hg
    03/05/2021 02:57 PM 42 .hgignore
    08/20/2018 10:05 AM <DIR> CobolStudy
    09/11/2017 10:36 PM 6,144 HELLO.exe
    09/11/2017 10:36 PM 17,920 HELLO.pdb
    02/26/2018 12:39 PM 261 hello2.cob
    05/08/2021 03:09 PM 6,656 HELLO2.dll
    05/08/2021 03:12 PM 6,656 HELLO2.exe
    03/13/2020 04:07 PM 1,429 HELLO2.exe.config
    05/08/2021 03:12 PM 24,064 HELLO2.pdb
    03/13/2020 04:06 PM 135,168 RainCodeCobolStats.db
    03/05/2021 02:49 PM <DIR> RFSafety
    03/05/2021 02:49 PM 66,002 RFSafety.exe
    08/20/2018 10:07 AM <DIR> Rw_test
    03/18/2020 10:01 PM <DIR> samples
    03/05/2021 03:15 AM 50,615 Senior74.exe
    09/11/2017 10:33 PM 199 standardopts.resp
    12 File(s) 315,156 bytes
    7 Dir(s) 1,305,219,121,152 bytes free

    C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol>
    -=-=-=-

    but it won't run stand-alone

    -=-=-=-
    C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol>HELLO2.exe

    Unhandled Exception: System.TypeInitializationException: The type
    initializer for 'RainCode.Generated.HELLO2' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'rccorlib, Version=1.0.4.0, Culture=neutral, PublicKeyToken=44ab4e15cffad0e3' or one
    of its dependencies. The system cannot find the file specified.
    at RainCodeLegacyRuntime.Module.Module..ctor(String fileName, String
    name, ModuleLanguage language, Int32 memorySize, CallingConvention cc)
    at RainCode.Generated.HELLO2..ctor() in C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol\HELLO2.as:line 0
    at RainCode.Generated.HELLO2.init_6() in C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol\HELLO2.as:line 0
    at RainCode.Generated.HELLO2..cctor()
    --- End of inner exception stack trace ---
    at RainCode.Generated.HELLO2.Main(String[] v_args) in C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol\hello2.cob:line 0

    C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol>rclrun HELLO2.exe [2021-05-08 15:15:00.650] [1] [ERROR] [RainCodeLegacyRuntime]: Could not
    find program HELLO2.exe (or found an incompatible version)

    C:\Users\Wulfraed\Documents\_Hg-Repositories\RCCobol>
    -=-=-=-

    There may be compiler options I'm missing.

    Any real program also requires one to set up a file describing the I/O linkages, which itself is nasty to look at.

    <FileConfigCollection>
    <FileConfig LogicalName="SYSIN">
    <Path>Senior.dat</Path>
    <RecordSize>43</RecordSize>
    <FileOrganization>LineSequential</FileOrganization>
    </FileConfig>

    <FileConfig LogicalName="REPORT">
    <Path>Senior_Report.txt</Path>
    <FileOrganization>LineSequential</FileOrganization>
    </FileConfig>
    </FileConfigCollection>


    --
    Wulfraed Dennis Lee Bieber AF6VN
    wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From docdwarf@panix.com@21:1/5 to wlfraed@ix.netcom.com on Sun May 9 02:15:24 2021
    In article <ihnd9gdjflj43ij7i2q9fthn4m6s18m165@4ax.com>,
    Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
    On Sat, 8 May 2021 05:51:09 -0700 (PDT), federico priolo ><federico.priolo@gmail.com> declaimed the following:

    Hi all I am just taking a look at raincode compiler. It uses the same
    cobol syntax of mainframe (that I don't know since I used always
    powercobol and before RMCOBOL and Microfocus..dialect.)

    So what the beahaviour to get an environment variable running it under window?

    I'm not sure if I ever got it to create a stand-alone executable... My
    toy tests required using the DLL and Raincode runner.

    That was diligent and generous work, Mr Bieber, and you should be thanked
    for it.

    Hey! Someone thank Mr Bieber, would'ja?

    DD

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)