Ifthen overlay in sort jcl

    ifthen in sort
    ifthen in sort jcl
    ifthen overlay in sort jcl
    inrec ifthen in sort jcl
  • Ifthen in sort
  • Push in sort jcl!

    OUTREC Reformatting records with IFTHEN

    The OUTREC statement with the IFTHEN parameter allows us to apply conditional reformatting to records.

    Ifthen in sort jcl examples

  • Hit=next in sort jcl
  • Push in sort jcl
  • Findrep=(in sort jcl)
  • Outrec ifthen multiple conditions
  • IFTHEN is used to check for specific conditions in the records and apply formatting changes such as inserting data, replacing fields, or modifying records based on those conditions.

    Syntax -

    IFTHEN clause is classifed as 5 types -

    • WHEN=INIT - used to apply BUILD, FINDREP or OVERLAY items to all input records.

      WHEN=INIT and WHEN=GROUP options are processed before any other WHEN starts processing.

    • WHEN=GROUP - used to multiply fields, identifiers and sequence numbers within specified groups of records.
    • WHEN=(logexp) - used to apply BUILD, FINDREP or OVERLAY items to the input records that meet specified criteria.

      It is satisfied when the logical expression evaluates as true.

    • WHEN=ANY - used to apply additional BUILD, FINDREP or OVERLAY items to the input records if they satisfied the criteria for any of the preceding WHEN=(logexp) clauses.
    • WHEN=NONE - used to apply additional BUILD, FINDREP or OVERLAY items to the inpu

        ifthen build in sort jcl
        multiple inrec ifthen in sort jcl