I am guessing that jagjit was trying to browse a tape file from ISPF. (3.4) .
ISPF does not support tape browsing. You need to have the file on DASD. you can use the following DFSORT JCL to copy the contents of the tape file onto a dasd file . I suggest that you copy only a few records say 1000 or else you might run into B37 space errors.
Thanks for your kind help. May i Know if it is possible to get first 100 and last 100 records of tape file in my output DASD file. Actually my tape file contains header and trailer which i need to verify. Please help for the same
I think i am not clear in my words. let me try once again.
I have TAPE file having 50 lakhs records. In ISPF i can't view tape file so for that i will create a DASD file and using DFSORT i wil copy records from TAPE file i.e. input file to output file.
Now i want to see or move only 1st 100 and last 100 records of my TAPE input file to my DASD file.
If you see in the very first screen shot given by Skolusu he is moving 1000 records to DASD file. Instead of that i want 1st 100 and last 100 records to be moved in my output DASD file. I hope this will give you clear idea about my requirement. Thanks Loverj24 for patience.
Yes Jagjit, Did you try running the JCL that is given, In the Third step of the JCL you will get the file with the first 100 and the last 100. You will need to change the Skiprec and the Stopaft to the values that you want to have in the First and the second file
With the SKIPREC and STOPAFT solution, you have to know the number of records in the input file and figure out the SKIPREC and STOPAFT values.
You can do what you want much more easily using DFSORT's new SUBSET function. You don't have to know the number of records in the input file or do any calculations. Here's the DFSORT/ICETOOL job you can use: