Skip to Content
Author's profile photo Sudheer Anugu

SAP PI Integration with Mainframe/Data set creation

Recently I worked on interface development to create a mainframe data set file on mainframe FTP server and below are some inputs which can save your development time

SAP note 1530149 already available which explains to use command to pass few parameters to create datasets using File/FTP adapter, below are few parameters listed in sap note


  • RECFM > Record format
  • LRECL > Record Length
  • BLKIZE > Block Size

You can find additional optional paraments in below link, we can use them as per business requirements


To create Data set using SAP PI we must use command along with MVS parameters and optional parameters as per requirements, below is the figure which explains difference between Fixed record format (RECFM = F) and (RECFM =FB)

For Fixed records

  • When (BLKSIZE = LRECL) then Record format is (RECFM = F)
  • When (BLKSIZE = n * LRECL) then Record format is (RECFM = FB)


In below screen I am using RECFM = FB as (BLKSIZE = n * LRECL)

In below screen I am using RECFM = F as (BLKSIZE = LRECL)


If data set mode is “NEW” select file construction mode as create

If data set mode is “UPDATE” select file construction mode as append


We got below error where data set is out of space and we tried with standard MVS parameters and we got error as command was unable to read the cylinder parameter then after some analysis we changed the parameters to primary and secondary cylinders and it worked perfectly




For every successful data set creation, you will get RC=200

Note: 200 is not a value, it’s a return code for successful transaction




Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.