-
Continue reading →: Understanding SYSPARM in SAS Mainframe
SYSPARM is an automatic variable in SAS which allows information to be passed from the operating environment to SAS program steps and it provide means of accessing or using the string while a program is executing. SYSPARM should be used when there is a need to control conditional processing within…
-
Continue reading →: Input Buffer and Program Data Vector in SAS Mainframe-Print _N_ and _Error_
The Data step’s function in SAS program is to bring or format the raw data into a structure or a layout as defined in the INPUT keyword. To bring it into shape, it is evident it needs to be stored in some temporary memory buffer. This is where the concept…
-
Continue reading →: Management class,Storage class,Data Class in JCL
These are the parameters which are in effect only if SMS is enabled in Z/OS Environment. These parameters of storage management subsystem(SMS) helps in simplifying JCLs, i.e., the JCL takes predefined values instead of the programmer keying in the value of DD parameters like UNIT, VOL, LRECL, RECF and others.…
-
Continue reading →: SAS Mainframe – Create PIE Chart using SAS
With the proc chart procedure, the PIE statement will create the PIECHART. The size of a pie represents the percentage that of category of data. In SAS, you can create a pie chart using PROC CHART with the PIE statement. Each slice of the pie shows the percentage for a…
-
Continue reading →: SAS Mainframe Tutorial: Creating Horizontal Bar Diagrams
To achieve horizontal bar diagrams, HBAR has to be used in PROC CHART statements. One feature of HBAR is that, it automatically returns the frequency, cumulative frequency, percentage, and cumulative percent to the right of each bar. Let’s see the output how the same data (as shown in previous posts…
-
Continue reading →: SAS Mainframe Tutorial: Adding Reference Lines in Bar Diagrams
In this post we will see how to add the reference lines in the bar diagrams. Continuing with the previous example, we will have reference lines at intervals 1 and 2 , print the data in descending order and reduce the width of the bars by 2 lines. Let’s look…
-
Continue reading →: Generate Bar Diagrams using PROC CHART in SAS Mainframe
Using the PROC CHART option one can generate few graphs(vertical and Horizental) in mainframe or possibly print it to PDF document via the ODS option. In this post, we will see how proc chart can be used to generate a bar diagram in mainframe (Z/OS) world.The objective here is to…
-
Continue reading →: SAS Mainframe Tutorial on COMPRESS and COMPBL Functions
The COMPRESS Function in SAS is used to remove specific characters from a string. In general dealing with Blanks can be challenging, but SAS provides few functions to do this efficiently. COMPRESS returns character string with specific characters removed from the original string. The syntax is as follows:COMPRESS(string, characters to…
-
Continue reading →: SAS Mainframe Tutorial: Reading Delimited Data using DLM and DSD
Reading input file in SAS Mainframe with delimiter option
-
Continue reading →: Using CALCULATED in PROC SQL in SAS Mainframe
Creating New Variables in PROC SQL (SAS) Using the CALCULATED Keyword In PROC SQL (SAS), you can dynamically create new variables within your query and assign them a name. If a name is not provided, these dynamically created variables will appear in the output without a column heading. For example,…
-
Continue reading →: How to Use PROC SQL in SAS on a Mainframe (z/OS)
When working with SAS on the mainframe, one of the most powerful tools you have is the PROC SQL procedure. Unlike traditional DATA steps or sorting workflows, PROC SQL lets you query, join and manipulate large datasets directly, often with fewer steps and greater resource efficiency. In this guide, you’ll…
-
Continue reading →: PROC SORT in SAS on Mainframe (z/OS)
Running SAS on a mainframe environment like z/OS allows you to process massive enterprise datasets with high performance. Among the most commonly used SAS procedures are PROC SORT, which help you sort, filter, join and organize your data efficiently. What is PROC SORT in SAS on Mainframe? PROC SORT is…
-
Continue reading →: SAS in Mainframe -Tutorial
The powerful data analytics system SAS isn’t just for Windows or UNIX environments—it’s fully capable of running in a mainframe environment like z/OS. In the world of mainframe computing, SAS opens up versatile opportunities for data processing, integration with large‐scale databases (like DB2 or Oracle Database), and high‐volume reporting.Core Components…
-
Continue reading →: CHAR and VARCHAR in COBOL
In IBM DB2, the CHAR data type is used to store fixed-length character strings, meaning the database always allocates the full defined storage length regardless of the actual data size. As a result, CHAR columns can waste disk space when the stored values do not fully utilize the assigned length.…
-
Continue reading →: DB2 Query to check Privilege(C/R/U/D) held by cobol programs on DB2 table
The solution is to use SYSTABAUTH table. Assume the table name is ‘DB1T04’ and we want to find out what all programs performs C(CREATE) R(READ) U(UPDATE) or D(DELETE) operation. A simple query to fetch the matrix would like below: o/p will be generated as : The program names will be…
-
Continue reading →: Identify Connections for Cobol Programs in Z/OS using SYSPLSYSTEM
In Z/OS, the Cobol programs will be running either as online or batch. Going one level deeper the programs are either connected to CICS attachment facility or IMS or DB2. To understand in which environment a program is connected to, rather to understand the type of program, IBM has provided…
-
Continue reading →: TSO Command to identify Dataset Contention in Mainframe-ISRDDN
Most organizations have in house tools to check for dataset contention. Mostly it is a REXX code behind the tool, however, this TSO COMMAND will help to do the same task and find the resource causing the contention. TSO ISRDDN ENQ ‘Data-set Name’If this is run from start menu with…
-
Continue reading →: Understanding COMP and COMP-5 in IBM COBOL
In IBM COBOL, the COMP (computational) data type is used to store numeric values in binary format, ideal for efficient arithmetic operations. This format requires the data to be integers, and the compiler allocates memory in word-sized chunks: Storage Allocation for COMP Variables When defining a variable like WS-NUM PIC S9(n) USAGE IS COMP, the…
-
Continue reading →: DB2 Constraints
DB2 Constraints Constraints help to maintain data integrity without any procedural logic(like triggers, Stored procs). Writing a constraint is quite easy and has two parts to it, namely,the constraint Name & the check condition.The check condition is defined by specifying basic predicates (>, <, =, <>, <=, >=), BETWEEN, IN,…
-
Continue reading →: COMP * Command in JCL
COMP * or COMP * x is a handy command to compare the changes made to a JCL. If this command is issued in modified JCL, it will show the old and new version of the same with === and .QAAAx For example, the program name in the modified JCL…