Results 1 to 6 of 6

Thread: Cobol

  1. #1
    Join Date
    Nov 2003
    Location
    India
    Posts
    22

    Wink Unanswered: Cobol

    Subroutine in COBOL

    Is any one give me clear idea about the Subroutines in COBOL. how can we create it?

    as for as i have search, I found many coding just shows it as subroutines with out any explanation.

    Is any one help me to overcome from this.

    thanks in advance

    apa

  2. #2
    Join Date
    Oct 2003
    Posts
    706
    In classic COBOL, subroutines are implemented by the PERFORM... and PERFORM...THRU statements. They are not quite classic subroutines. They do not, for example, have local variables. They can be confounded by GOTO statements.

    A good textbook on COBOL is pretty much an absolute necessity.

    "COBOL! Why did it have to be COBOL?!"
    -- Indiana Jones and the Temple of Computers
    ChimneySweep(R): fast, automatic
    table repair at a click of the
    mouse! http://www.sundialservices.com

  3. #3
    Join Date
    Nov 2003
    Location
    India
    Posts
    22

    Cobol Subroutine

    Actually i have look over the Cobol subroutine code like follows;

    CALL 'SQLConnect'
    using by content ptrSQLConnect
    by content strAUTOCOMMIT
    by content bolFALSE
    by content 0
    by content numINTEGER
    giving RetCode

    with this code Where can I find the coding written in 'SQLConnect' or the program associated with this string literal?.

    can any one helps me overcome this...

    thanks in advance

    apa.

  4. #4
    Join Date
    Oct 2003
    Posts
    706

    Re: Cobol Subroutine

    Originally posted by arunchp
    Actually i have look over the Cobol subroutine code like follows;

    Code:
    CALL 'SQLConnect'
                     using by content ptrSQLConnect
                           by content strAUTOCOMMIT
                           by content bolFALSE
                           by content 0
                           by content numINTEGER
                     giving RetCode
    with this code Where can I find the coding written in 'SQLConnect' or the program associated with this string literal?.

    This is a call to an external library (not written in COBOL, probably) containing the SQL interface software provided by your database management system. The source code probably does not exist. It will be found in a library declared to your compiler/linker when you compile the COBOL program.
    ChimneySweep(R): fast, automatic
    table repair at a click of the
    mouse! http://www.sundialservices.com

  5. #5
    Join Date
    Oct 2003
    Posts
    706

    Re: Cobol Subroutine

    Originally posted by arunchp
    Actually i have look over the Cobol subroutine code like follows;

    Code:
    CALL 'SQLConnect'
                     using by content ptrSQLConnect
                           by content strAUTOCOMMIT
                           by content bolFALSE
                           by content 0
                           by content numINTEGER
                     giving RetCode
    with this code Where can I find the coding written in 'SQLConnect' or the program associated with this string literal?.

    This is a call to an external library (not written in COBOL, probably) containing the SQL interface software provided by your database management system. The source code probably does not exist. It will be found in a library declared to your compiler/linker when you compile the COBOL program.
    ChimneySweep(R): fast, automatic
    table repair at a click of the
    mouse! http://www.sundialservices.com

  6. #6
    Join Date
    Nov 2003
    Location
    India
    Posts
    22
    thank you sundialsvcs.

    Currently they write this subroutine 'SQLConnect' to connect to DB2. So There is some way to provides SQL interface to establish connection between DB2 and COBOL.

    To write such subroutines what we have (must) to know ?

    Can you please give me some ideas to create such SQL interface to establish connetion between COBOL and MySQL.?

    thanks in advance...

    apa.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •