Simple Mainframe Universe
Home Tutorials Interview Q&A Quiz Mainframe Memes Contact us About us

ISPF Tips & Tricks


Wrap text to any width with TF (TF20)

In our project, we had file which was 80 character long. But due to some reason we wanted text to be wrapped into 20 character on each line. We know this kind of command is available in Microsoft Word so we thought there should be something similar on Mainframe too. Finally below is solution we got:-

Open your dataset in edit mode

In the first line of dataset issue command TF20. This will automatically wrap whole content of that file into 20 char each line

Below is where we passed TF20:-

Screenshot 1

After issue TF20, my file was modified as shown below

Screenshot 2




© copyright mainframebug.com
Privacy Policy
MainframeBug Assistant