Sujet : Cobol (was: Re: Fun trick)
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vmsDate : 03. Feb 2025, 03:55:52
Autres entêtes
Organisation : SunSITE.dk - Supporting Open source
Message-ID : <67a03039$0$713$14726298@news.sunsite.dk>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Mozilla Thunderbird
On 2/2/2025 8:37 PM, Arne Vajhøj wrote:
On 2/2/2025 8:30 PM, Arne Vajhøj wrote:
> On 1/14/2025 11:06 AM, Arne Vajhøj wrote:
>> On 1/13/2025 9:11 PM, John Reagan wrote:
>>> COBOL paragraphs behave like C. First routine/PARAGRAPH gets a WEAK
>>> transfer address. Linker finds the first one.
>>
>> I have many prejudices about COBOL developers.
>>
>> One of them is that they don't create shareable images.
>>
>> :-)
>
> But let us say that someone wanted to create a shareable
> image in Cobol.
>
> A typical Cobol program just have all the paragraphs that
> get performed and they share state. Simple.
>
> To make them entry points with arguments in a shareable image,
> then I assume one need to make them programs with linkage section
> and procedure division using.
>
> Normal variables are just passed as arguments. Seems entirely
> unproblematic to me.
>
> But how does one share open files between modules?
>
> Fortran and Basic numeric identifiers work across modules.
> Pascal can share via inherit. C can use global variables
> or just pass as argument.
>
> But how does one do that in Cobol?
>
> Can one mark an fd as global or can one pass a fd as argument?
Did some reading.
IS GLOBAL in one module and IS EXTERNAL in the other modules?
And what to put in SELECT if FD is EXTERNAL?
Arne
Date | Sujet | # | | Auteur |
8 Jan 25 | Fun trick | 39 | | Arne Vajhøj |
8 Jan 25 |  Re: Fun trick | 1 | | Lawrence D'Oliveiro |
8 Jan 25 |  Re: Fun trick | 11 | | John Reagan |
8 Jan 25 |   Re: Fun trick | 10 | | Arne Vajhøj |
8 Jan 25 |    Re: Fun trick | 9 | | John Reagan |
8 Jan 25 |     Re: Fun trick | 2 | | Arne Vajhøj |
8 Jan 25 |      Re: Fun trick | 1 | | Arne Vajhøj |
8 Jan 25 |     Re: Fun trick | 6 | | Arne Vajhøj |
14 Jan 25 |      Re: Fun trick | 5 | | John Reagan |
14 Jan 25 |       Re: Fun trick | 4 | | Lawrence D'Oliveiro |
14 Jan 25 |        Re: Fun trick | 3 | | Arne Vajhøj |
14 Jan 25 |         Re: Fun trick | 1 | | Arne Vajhøj |
15 Jan 25 |         Re: Fun trick | 1 | | John Reagan |
8 Jan 25 |  Re: Fun trick | 26 | | hb0815 |
8 Jan 25 |   Re: Fun trick | 25 | | Arne Vajhøj |
8 Jan 25 |    Re: Fun trick | 24 | | hb0815 |
9 Jan 25 |     Re: Fun trick | 23 | | Arne Vajhøj |
9 Jan 25 |      Re: Fun trick | 22 | | hb0815 |
13 Jan 25 |       Re: Fun trick | 11 | | Arne Vajhøj |
17 Jan 25 |        GNU diff command, was: Re: Fun trick | 10 | | Simon Clubley |
17 Jan 25 |         Re: GNU diff command, was: Re: Fun trick | 9 | | Craig A. Berry |
17 Jan 25 |          Re: GNU diff command, was: Re: Fun trick | 8 | | Craig A. Berry |
19 Jan 25 |           Re: GNU diff command, was: Re: Fun trick | 7 | | hb0815 |
21 Jan 25 |            Re: GNU diff command, was: Re: Fun trick | 6 | | Craig A. Berry |
22 Jan 25 |             Re: GNU diff command, was: Re: Fun trick | 5 | | hb0815 |
22 Jan 25 |              Re: GNU diff command, was: Re: Fun trick | 4 | | Lawrence D'Oliveiro |
23 Jan 25 |               Re: GNU diff command, was: Re: Fun trick | 3 | | Robert A. Brooks |
24 Jan 25 |                Re: GNU diff command, was: Re: Fun trick | 2 | | Simon Clubley |
25 Jan 25 |                 Re: GNU diff command, was: Re: Fun trick | 1 | | Dave Froble |
13 Jan 25 |       Re: Fun trick | 10 | | Arne Vajhøj |
13 Jan 25 |        Re: Fun trick | 9 | | Lawrence D'Oliveiro |
13 Jan 25 |         Re: Fun trick | 8 | | Arne Vajhøj |
14 Jan 25 |          Re: Fun trick | 6 | | John Reagan |
14 Jan 25 |           Re: Fun trick | 5 | | Arne Vajhøj |
3 Feb 25 |            Cobol (was Re: Fun trick) | 1 | | Arne Vajhøj |
3 Feb 25 |            Re: Fun trick | 3 | | Arne Vajhøj |
3 Feb 25 |             Cobol (was: Re: Fun trick) | 2 | | Arne Vajhøj |
5 Feb 25 |              Re: Cobol | 1 | | Arne Vajhøj |
14 Jan 25 |          Re: Fun trick | 1 | | Lawrence D'Oliveiro |