Answered Questions

  • send email from mainframe

    I need to send an email from mainframe using the parmcard which has HELO MAIL FROM:RCPT TO:DATAFROM: TO: SUBJECT:etcbut i also need to get the system date and time each time I do so.How do I get that when I submit the jcl which uses this parmcard as input?

  • In the example below

    05 WS-VAR1 PIC X(5),05 WS-VAR2 REDEFINES WA-VAR1 PIC 9(5),PROCEDURE DIVISION MOVE 'ABCDE' TO WS-VAR1.Now what is the value of WS-VAR1 and WS-VAR2 ?

    Jeevan Poojar

    • Apr 25th, 2021

    WS_VAR1 - ABCDE
    WS-VAR2 - A CDE

    supriya

    • Sep 5th, 2017

    Here given 05 WS-VAR2 redefines WA-VAR1 pic 9(5). means WA-VAR1 should be defined in working storage so while compiling it will throw the error. but excluding this next statement in procedure division is move abcde to ws-var1. means value of ws-var1 is =abcde

  • What is SET TO TRUE all about, anyway?

    In COBOL II the 88 levels can be set rather than moving their associated values to the related data item. (Web note: This change is not one of COBOL II's better specifications.)

    Nath

    • Sep 13th, 2013

    @poojaDeep & @gilbat82, As you said, I have three doubts. 1. While starting execution of the program after declaring in working storage as you said, what are the initial values (TRUE or FALSE) are s...

  • What is the difference between comp and comp-3 usage? Explain other COBOL usages?

    Comp is a binary usage, while comp-3 indicates packed decimal. The other common usages are binary and display. Display is the default. 3/28/00 Dave Herrmann: 'I was reading your FAQ on Cobol, as an fyi Comp is defined as the fastest/preferred numeric data type for the machine it runs on. IBM Mainframes are typically binary and AS400's are packed.'

    vjjammi

    • Aug 8th, 2010

    Here are the details of the COMP, COMP-1, COMP-2, COMP-3. When the usage of COMP is specified, the numeric data item is represented in the BINARY FORMAT. The item declared must be an INTEGER. Dependin...