Category: Mainframe

Special-Names in COBOL :: A Fancy thing in Vintage Language ?

Special-Names in COBOL :: A Fancy thing in Vintage Language ?

It bring you out of the dull zone when you come across things like Special-Names  in cobol, otherwise English like programming language which may bore some of us. Of course we are talking about COBOL here. Let’s create a scenario first. Let’s assume in some requirement we need to validate an Email Address i.e. we …

+ Read More

Static & Dynamic SQL in COBOL :: A Walk-Through

Static & Dynamic SQL in COBOL :: A Walk-Through

COBOL allows SQL queries to be executed both Statically and dynamically. However it’s often confusing that when Static SQL is to be used and when  Dynamic SQL. This will be quite clear once you know the exact difference between the two. Difference Between Static & Dynamic SQL: Static SQL SQL is static when we know …

+ Read More

IEBPTPCH :: Merge PDS Members in a PS File.

IEBPTPCH :: Merge PDS Members in a PS File.

IBM provides a utility, IEBPTPCH, to merge members of PDS (Partitioned Dataset) into a PS (Physical Sequential) file. However the sole purpose of this utility is to Print or Punch all or part of datasets (PS or PDS). So we will be needing at least one statement i.e. either PRINT or PUNCH in the sysin …

+ Read More

PS File Record Format :: Fixed block or Variable block?

PS File Record Format :: Fixed block or Variable block?

Most commonly used file formats for a PS file are Fixed Block (FB) & Variable Block (VB). At times when we are uncertain of the file format, we can easily deduce that using LISTDS command with IKJEFT01 utility in JCL. LISTDS will list all the attributes for e.g. Record Format,Record length etc.  of the dataset …

+ Read More

IGYWCLG :: COBOL File handling in JCL SYSIN Card.

IGYWCLG :: COBOL File handling in JCL SYSIN Card.

In previous post we have seen how to execute a COBOL program (Add 2 numbers) in JCL Sysin Card. This post is concentrating more on how to accomplish a complex task for e.g. File handling using IGYWCLG. All we got to do is – write your COBOL program which handles certain files in COBOL.SYSIN. Only …

+ Read More

Legacy Programming Languages: Need of the hour ?

Legacy Programming Languages: Need of the hour ?

On the 50th anniversary of COBOL in Aug 2009, a blogger Jeff Atwood shared some interesting statistics regarding COBOL (one of many legacy languages) and explained why COBOL is found “Everywhere & Nowhere”. You may call the statistics outdated now but mere 3.5 years will hardly make any difference to the 50 years of setup of 250 …

+ Read More

Legacy Programming Languages: Need of the hour ?

Legacy Programming Languages: Need of the hour ?

On the 50th anniversary of COBOL in Aug 2009, a blogger Jeff Atwood shared some interesting statistics regarding COBOL (one of many legacy languages) and explained why COBOL is found “Everywhere & Nowhere”. You may call the statistics outdated now but mere 3.5 years will hardly make any difference to the 50 years of setup of …

+ Read More