UNSTRING statement

Intrinsic Functions in COBOL Programs

COBOL Intrinsic Functions provides many ways to manipulate data. These are a set of functions that return values from a specific algorithm on input arguments. Intrinsic Functions are available for mathematics, character manipulation, date/time and statistics, and financial work. These functions are elementary data items that will return a numeric (whole or decimal) or an

Intrinsic Functions in COBOL Programs Read More »

PDSE

PARSE fields using IFTHEN parameter

PARSE and IFTHEN PARSE are new options that allow you to extract variable position/length fields into fixed-length parsed fields defined as %nn fields. It gives you powerful new capabilities for handling variable fields such as delimited fields, comma-separated values (CSV), tab-separated values, blank-separated values, keyword-separated fields, null-terminated strings, and many other types. The PARSE parameter

PARSE fields using IFTHEN parameter Read More »

PDSE

Paired records F1 using SORT

Paired records F1 – Below example illustrates how you can select only paired records from one of two files. In this case, we will select the F1 records that have a match in F2 on the specified keys (for example, key1=Development and key2=Master). The F1 records are in comma-delimited form so we will parse them

Paired records F1 using SORT Read More »

STOPAFT SKIPREC condition in SORT JCL

STOPAFT SKIPREC are two powerful control parameters in IBM DFSORT that allow you to precisely control which records are processed during sorting, merging, or copying operations. These parameters help optimize performance by reducing the amount of data processed and enable selective record processing without requiring complex programming logic. STOPAFT and SKIPREC are optional parameters and can

STOPAFT SKIPREC condition in SORT JCL Read More »

INCLUDE OMIT

INCLUDE OMIT condition in SORT JCL

INCLUDE OMIT conditions in SORT JCL (DFSORT, Syncsort) are powerful filters that decide which input records are passed on for sorting, copying, or merging and which are discarded. By pushing this filtering logic into the sort utility, jobs often run faster and more efficiently because unnecessary records are removed before the heavier operations run. You

INCLUDE OMIT condition in SORT JCL Read More »

PDSE

DATE functions using SORT Utility – JCL

There are multiple Date Functions by which you can reformat input dates. Modern mainframe jobs frequently need to stamp files with run-date timestamps, convert between Julian and Gregorian calendars, subtract business days, and generate aging metrics. DFSORT’s powerful DATE functions—available through INREC, OUTREC, OUTFIL, and ICETOOL—let you accomplish all of this with a few control-card

DATE functions using SORT Utility – JCL Read More »

HEADER

Header Trailer using SYNCSORT – JCL

Header and trailer records are a common requirement in mainframe reporting, especially when you want to present a clean business report instead of raw input records. In SYNCSORT, you typically use OUTFIL with HEADER1, HEADER2, TRAILER1, and TRAILER2 to generate report titles, page headings, summary lines, counts, and totals. HEADER DETAILS Headers are used to provide a report, page, and section headings

Header Trailer using SYNCSORT – JCL Read More »

Scroll to Top