IBM Z and LinuxONE IBM Z

IBM Z

The enterprise platform for mission-critical applications brings next-level data privacy, security, and resiliency to your hybrid multicloud.

 View Only
  • 1.  Timezone in Cobol apps ?

    Posted Mon April 25, 2022 06:18 AM

    Classification: Confidential

    Hi,

    We are in the process of consolidating a bunch of Cobol and RPG apps into an existing sysplex.

    These applications are today running in a different time zone.

    I know that a the clock can be different in different Lpar in the sysplex.

    But what about Language Environment (LE), will a non posix cobol program use the _TZ  environment variable as a c/c++ program do if specified ?

    If it works will then the Cobol intrinsic functions like Current-Date use it ?

    As I understand a posix cobol program will use the TZ  environment variable, but this is mostly non posix cobol.

    I cannot find out the answers by reading the LE manuals......

    Any other suggestions to run applications who want to see different times/dates matching different time zones in the same Lpar(s) ?

    Or am I forced to run this new load in a dedicated Lpar ?

     

    Best Regards

    Alf

     

     

     

    Alf Thunberg

    Associate General Manager

    Mainframe Service Development

    GSS Mainframe & IBMi Service Design

    HCL Technologies.

    DA1S, Gunnar Engellaus väg 3, 418 78 Göteborg

    Mob: +46 76 521 72 76

    www.hcltech.com

    http://www.hcl.com

    Fact_File_d8

     

     

    ::DISCLAIMER::

    The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.



  • 2.  RE: Timezone in Cobol apps ?

    Posted Thu May 12, 2022 09:45 AM
    Hi Alf,

    Sadly, both TZ (with POSIX(ON)) and _TZ (with POSIX(OFF)) are specific to the C/C++ runtime and not to the base LE functions used by the COBOL runtime.
    I'm inclined to think that a time shifting product like Hourglass, which can alter the time on a per job basis, may be the easiest resolution. That said, I've not had any dealings with Hourglass in many years.

    Bernie

    ------------------------------
    Bernie Rataj
    Senior Software Developer
    IBM Canada Ltd.
    Markham ON Canada
    https://www.ibm.com/marketplace/ibm-compilers
    ------------------------------