Skip to Content

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 ftp.site 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

http://publibfi.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/ezaa2200/4.10.6?DT=19921102155455#TBLFLSITE

 

To create Data set using SAP PI we must use ftp.site 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 ftp.site 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

 

 

 

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply