Menu

Sort

2019-06-25
2021-01-05
  • Maurizio Bongini

    Hi
    may be it is a silly question so forgive me ..
    env: Windows 8 ,gnucobol 3.0-rc1 and 2.0.0
    reading gnucobol "faq and how" it talks about gcsort
    i try to run from cmd line gcsort but is not recognized as a pgm
    looking in the sourceforge site i find ocsort ,but reading INSTALL

    *Requirements
    GNU C compiler (version ???, work with 4.3.2)
    GNU Make (version ???, work with 3.81)
    GNU Bison (version ???, work with 2.4.1)
    GNU Flex (version ???, work with 2.5.35)

    it seems related to a linux environment
    does gcsort is built in with gnucobol ?
    i'm little confused ,please clarify me ...
    thanks in advance
    Maurizio

     
  • Maurizio Bongini

    forgive me...it is late now....reading programmer guide i find now the SORT instruction...

     
  • Maurizio Bongini

    I'm studing gnucobol returning home from work sometimes i'm very tired ... looking at "FAQ & how to" and i see 2 examples about using the SORT instruction ...i will update this discussion only if i get problem understanding how it works...my apologyzes...

     
  • Vincent (Bryan) Coen

    It is the Cobol SORT verb but it is easy to use but make use of any books on COBOL to show you the details..

     
  • Simon Sobisch

    Simon Sobisch - 2019-06-26

    I'd suggest to also grab the current COBOL draft for the upcoming standard to have a good semi-technical description and maybe some more details (or not, didn't check) about the verb..

     
  • Simon Sobisch

    Simon Sobisch - 2019-06-26

    GCSort (formerly ocsort) is avaiable at https://sourceforge.net/p/open-cobol/contrib/HEAD/tree/trunk/tools/GCSORT/ - you'd have to compile and install it from source and only can use it afterwards.
    It is an external tool that is similar to MFSORT or DFSORT, normally called from command line.

    The COBOL SORT statement works fine and "is included in the compiler/runtime", called only from within a COBOL program.

     
  • Maurizio Bongini

    Hi ...thanks to all for the support,
    in the mean time i implemented cobol SORT,i was able to sort datasets both directly and with
    input/output procedures,and also to sort a table in memory,,,
    i look at the GCSORT and it list as prereq other than gcc ,bison and win_flex...in the past i compiled pgm from source in linux env ,but i never try this operation in windows env....

     
  • Anshul Agrawal

    Anshul Agrawal - 2021-01-05

    Thank you @sf-mensch.

    I will use gnucobol instead open-cobol .

     

Anonymous
Anonymous

Add attachments
Cancel