I am pasting sas code below to create a data set of sentences. The HPTMINE proc requires a Text Miner…