Topic
  • No replies
stan0110
stan0110
3 Posts

Pinned topic About AMODE 24 for COBOL V5.1

‏2014-01-06T15:06:34Z |

Dear All,

We plan migrate to COBOL V5.1 version.

From migration Guide, we found

Enterprise COBOL V5 programs continue to support dynamic CALL to or from AMODE 24 programs. For example:
    Enterprise COBOL V5 programs may dynamically CALL AMODE 24 programs created by prior versions of Enterprise COBOL.
    AMODE 24 COBOL programs created by prior versions of Enterprise COBOL may dynamically CALL Enterprise COBOL V5 programs.
    Enterprise COBOL V5 programs may dynamically CALL AMODE 24 assembler language programs.

(1). Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V5 programs ??

       Because we have many program were AMODE24 assembler CALL Enterprise COBOL V3.2 (AMODE24 and AMODE31)

      Need to clearly know, Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V5 programs??

(2). Existing modules (Enterprise COBOL V3.4)  that without re-compiler with COBOL V5.1,

      Could it Normal running for old existing modules in COBOL V5.1 and z/OS V1.13 Language environment ??

      For existing assembler, Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V3.4 program in New z/OS V1.13 Language environment ??

      Just for Existing modules( without re-compiler for V5.1), Could it normal running in New Language environment ?? Thanks,

.

Any advice is welcome, thanks.

Stan Yang.

 

  • Tom.Ross
    Tom.Ross
    21 Posts
    ACCEPTED ANSWER

    Re: About AMODE 24 for COBOL V5.1

    ‏2014-01-08T00:41:57Z  

    Hi Stan, some answers below >>

    (1). Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V5 programs ??

    >> "Dynamic CALL" is a COBOL term, to describe a dynamic COBOL CALL verb/statement.  With COBOL dynamic CALL the

    >> run-time can do "mode switching" between AMODE 24 and AMODE 31 programs  Assembler programs can do

    >> different kinds of CALLs also, but typically assembler CALLs are similar to COBOL static CALL, which means the called program

    >> is linked together with the calling assembler program at bind time.  This is not supported with AMODE 24 assembler calling

    >> COBOL V5 programs.  The short answer is that you cannot call COBOL V5 programs from AMODE 24 assembler programs.

           Because we have many program were AMODE24 assembler CALL Enterprise COBOL V3.2 (AMODE24 and AMODE31)

          Need to clearly know, Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V5 programs??

    >> You could only do this by providing a intermediate assembler program that switches modes to AMODE 31 before calling COBOL V5.

    >> AMODE 24 assembler programs cannot call COBOL V5 programs

    (2). Existing modules (Enterprise COBOL V3.4)  that without re-compiler with COBOL V5.1,

          Could it Normal running for old existing modules in COBOL V5.1 and z/OS V1.13 Language environment ??

    >> I can't quite understand the question, but if you are asking if you can mix COBOL V5 programs with COBOL V3,4 programs,

    >> the answer is YES.  You must have all of the required service installed on your Language Environment and Binder, but then mixing

    >> old (V3R4) and new is fully supported

          For existing assembler, Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V3.4 program in New z/OS V1.13 Language environment ??

    >> Yes, you can still run COBOL V3 (and V4) in AMODE 24.  This means it can be called by AMODE 24 assembler.

          Just for Existing modules( without re-compiler for V5.1), Could it normal running in New Language environment ??

    >> Yes, existing modules are not affected by the new COBOL V5 runtime support in LE.

  • Tom.Ross
    Tom.Ross
    21 Posts

    Re: About AMODE 24 for COBOL V5.1

    ‏2014-01-08T00:41:57Z  

    Hi Stan, some answers below >>

    (1). Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V5 programs ??

    >> "Dynamic CALL" is a COBOL term, to describe a dynamic COBOL CALL verb/statement.  With COBOL dynamic CALL the

    >> run-time can do "mode switching" between AMODE 24 and AMODE 31 programs  Assembler programs can do

    >> different kinds of CALLs also, but typically assembler CALLs are similar to COBOL static CALL, which means the called program

    >> is linked together with the calling assembler program at bind time.  This is not supported with AMODE 24 assembler calling

    >> COBOL V5 programs.  The short answer is that you cannot call COBOL V5 programs from AMODE 24 assembler programs.

           Because we have many program were AMODE24 assembler CALL Enterprise COBOL V3.2 (AMODE24 and AMODE31)

          Need to clearly know, Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V5 programs??

    >> You could only do this by providing a intermediate assembler program that switches modes to AMODE 31 before calling COBOL V5.

    >> AMODE 24 assembler programs cannot call COBOL V5 programs

    (2). Existing modules (Enterprise COBOL V3.4)  that without re-compiler with COBOL V5.1,

          Could it Normal running for old existing modules in COBOL V5.1 and z/OS V1.13 Language environment ??

    >> I can't quite understand the question, but if you are asking if you can mix COBOL V5 programs with COBOL V3,4 programs,

    >> the answer is YES.  You must have all of the required service installed on your Language Environment and Binder, but then mixing

    >> old (V3R4) and new is fully supported

          For existing assembler, Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V3.4 program in New z/OS V1.13 Language environment ??

    >> Yes, you can still run COBOL V3 (and V4) in AMODE 24.  This means it can be called by AMODE 24 assembler.

          Just for Existing modules( without re-compiler for V5.1), Could it normal running in New Language environment ??

    >> Yes, existing modules are not affected by the new COBOL V5 runtime support in LE.

  • stan0110
    stan0110
    3 Posts

    Re: About AMODE 24 for COBOL V5.1

    ‏2014-01-08T03:51:12Z  
    • Tom.Ross
    • ‏2014-01-08T00:41:57Z

    Hi Stan, some answers below >>

    (1). Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V5 programs ??

    >> "Dynamic CALL" is a COBOL term, to describe a dynamic COBOL CALL verb/statement.  With COBOL dynamic CALL the

    >> run-time can do "mode switching" between AMODE 24 and AMODE 31 programs  Assembler programs can do

    >> different kinds of CALLs also, but typically assembler CALLs are similar to COBOL static CALL, which means the called program

    >> is linked together with the calling assembler program at bind time.  This is not supported with AMODE 24 assembler calling

    >> COBOL V5 programs.  The short answer is that you cannot call COBOL V5 programs from AMODE 24 assembler programs.

           Because we have many program were AMODE24 assembler CALL Enterprise COBOL V3.2 (AMODE24 and AMODE31)

          Need to clearly know, Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V5 programs??

    >> You could only do this by providing a intermediate assembler program that switches modes to AMODE 31 before calling COBOL V5.

    >> AMODE 24 assembler programs cannot call COBOL V5 programs

    (2). Existing modules (Enterprise COBOL V3.4)  that without re-compiler with COBOL V5.1,

          Could it Normal running for old existing modules in COBOL V5.1 and z/OS V1.13 Language environment ??

    >> I can't quite understand the question, but if you are asking if you can mix COBOL V5 programs with COBOL V3,4 programs,

    >> the answer is YES.  You must have all of the required service installed on your Language Environment and Binder, but then mixing

    >> old (V3R4) and new is fully supported

          For existing assembler, Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V3.4 program in New z/OS V1.13 Language environment ??

    >> Yes, you can still run COBOL V3 (and V4) in AMODE 24.  This means it can be called by AMODE 24 assembler.

          Just for Existing modules( without re-compiler for V5.1), Could it normal running in New Language environment ??

    >> Yes, existing modules are not affected by the new COBOL V5 runtime support in LE.

    Dear Tom bro,

    Thanks for your clearly description, thanks very much !!

     

    Stan yang

     

  • m.soliman
    m.soliman
    1 Post

    Re: About AMODE 24 for COBOL V5.1

    ‏2014-08-06T11:27:37Z  
    • Tom.Ross
    • ‏2014-01-08T00:41:57Z

    Hi Stan, some answers below >>

    (1). Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V5 programs ??

    >> "Dynamic CALL" is a COBOL term, to describe a dynamic COBOL CALL verb/statement.  With COBOL dynamic CALL the

    >> run-time can do "mode switching" between AMODE 24 and AMODE 31 programs  Assembler programs can do

    >> different kinds of CALLs also, but typically assembler CALLs are similar to COBOL static CALL, which means the called program

    >> is linked together with the calling assembler program at bind time.  This is not supported with AMODE 24 assembler calling

    >> COBOL V5 programs.  The short answer is that you cannot call COBOL V5 programs from AMODE 24 assembler programs.

           Because we have many program were AMODE24 assembler CALL Enterprise COBOL V3.2 (AMODE24 and AMODE31)

          Need to clearly know, Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V5 programs??

    >> You could only do this by providing a intermediate assembler program that switches modes to AMODE 31 before calling COBOL V5.

    >> AMODE 24 assembler programs cannot call COBOL V5 programs

    (2). Existing modules (Enterprise COBOL V3.4)  that without re-compiler with COBOL V5.1,

          Could it Normal running for old existing modules in COBOL V5.1 and z/OS V1.13 Language environment ??

    >> I can't quite understand the question, but if you are asking if you can mix COBOL V5 programs with COBOL V3,4 programs,

    >> the answer is YES.  You must have all of the required service installed on your Language Environment and Binder, but then mixing

    >> old (V3R4) and new is fully supported

          For existing assembler, Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V3.4 program in New z/OS V1.13 Language environment ??

    >> Yes, you can still run COBOL V3 (and V4) in AMODE 24.  This means it can be called by AMODE 24 assembler.

          Just for Existing modules( without re-compiler for V5.1), Could it normal running in New Language environment ??

    >> Yes, existing modules are not affected by the new COBOL V5 runtime support in LE.

    DEAR  Mr TOM

    first time sharing this wonderful  forum<

    i'd like to inform you that i had a problem relating  calling cobol v5 pgm(amode32)

    from an assembler pgm(amode24) and i was trying many solutions as we are migrating to cobol v5 and have a lot of programs like that situation. 

    looking at ur very describtive & clear reply to Mr stan0110 .......finaly i  resolve it . 

    just want to thanks u a looooot..hope u all success.

    eng /mona soliman

  • solaris
    solaris
    1 Post

    Re: About AMODE 24 for COBOL V5.1

    ‏2014-08-21T07:10:41Z  
    • Tom.Ross
    • ‏2014-01-08T00:41:57Z

    Hi Stan, some answers below >>

    (1). Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V5 programs ??

    >> "Dynamic CALL" is a COBOL term, to describe a dynamic COBOL CALL verb/statement.  With COBOL dynamic CALL the

    >> run-time can do "mode switching" between AMODE 24 and AMODE 31 programs  Assembler programs can do

    >> different kinds of CALLs also, but typically assembler CALLs are similar to COBOL static CALL, which means the called program

    >> is linked together with the calling assembler program at bind time.  This is not supported with AMODE 24 assembler calling

    >> COBOL V5 programs.  The short answer is that you cannot call COBOL V5 programs from AMODE 24 assembler programs.

           Because we have many program were AMODE24 assembler CALL Enterprise COBOL V3.2 (AMODE24 and AMODE31)

          Need to clearly know, Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V5 programs??

    >> You could only do this by providing a intermediate assembler program that switches modes to AMODE 31 before calling COBOL V5.

    >> AMODE 24 assembler programs cannot call COBOL V5 programs

    (2). Existing modules (Enterprise COBOL V3.4)  that without re-compiler with COBOL V5.1,

          Could it Normal running for old existing modules in COBOL V5.1 and z/OS V1.13 Language environment ??

    >> I can't quite understand the question, but if you are asking if you can mix COBOL V5 programs with COBOL V3,4 programs,

    >> the answer is YES.  You must have all of the required service installed on your Language Environment and Binder, but then mixing

    >> old (V3R4) and new is fully supported

          For existing assembler, Does AMODE 24 assembler language programs CALL(statically or dynamically) a Enterprise COBOL V3.4 program in New z/OS V1.13 Language environment ??

    >> Yes, you can still run COBOL V3 (and V4) in AMODE 24.  This means it can be called by AMODE 24 assembler.

          Just for Existing modules( without re-compiler for V5.1), Could it normal running in New Language environment ??

    >> Yes, existing modules are not affected by the new COBOL V5 runtime support in LE.

    Hello,

    Does the following technote / APAR change the behavior in Stan Yang's (stan0110) scenario?

    Thank you & Regards,

    Kelvin

    Support for AMODE 24 added to Enterprise COBOL for z/OS V5.1.1

    http://www-01.ibm.com/support/docview.wss?uid=swg21667752

    APAR PM93583 and its PTFs change the Enterprise COBOL for z/OS V5.1 compiler to support AMODE 24 execution of programs. In addition, APAR PM93583 and its PTFs change Enterprise COBOL V5.1.0 to Enterprise COBOL V5.1.1 so that you can easily see if you have the AMODE 24 functionality in your compiler.

    APAR PI12151 and its PTFs change the Enterprise COBOL for z/OS V5 runtime to support AMODE 24. This allows Enterprise COBOL for z/OS V5.1.1 users to run Enterprise COBOL V5.1.1 programs with AMODE 24.

     

  • Tom.Ross
    Tom.Ross
    21 Posts

    Re: About AMODE 24 for COBOL V5.1

    ‏2014-08-21T15:57:57Z  
    • solaris
    • ‏2014-08-21T07:10:41Z

    Hello,

    Does the following technote / APAR change the behavior in Stan Yang's (stan0110) scenario?

    Thank you & Regards,

    Kelvin

    Support for AMODE 24 added to Enterprise COBOL for z/OS V5.1.1

    http://www-01.ibm.com/support/docview.wss?uid=swg21667752

    APAR PM93583 and its PTFs change the Enterprise COBOL for z/OS V5.1 compiler to support AMODE 24 execution of programs. In addition, APAR PM93583 and its PTFs change Enterprise COBOL V5.1.0 to Enterprise COBOL V5.1.1 so that you can easily see if you have the AMODE 24 functionality in your compiler.

    APAR PI12151 and its PTFs change the Enterprise COBOL for z/OS V5 runtime to support AMODE 24. This allows Enterprise COBOL for z/OS V5.1.1 users to run Enterprise COBOL V5.1.1 programs with AMODE 24.

     

    Kelvin,

      Yes, APAR  PM93583 did change the answer to Stan's question.  We now have the same behavior with respect to AMODE 24 programs in COBOL V5 that we had with COBOL V3 and V4.  AMODE 24 programs can call COBOL V5 programs, and COBOL V5 programs can statically or dynamically call AMODE 24 programs, with the same set of restrictions that we had in COBOL V3 and V4.

    Tom