Page 1 of 1
how to get rid of last 8 number of ps file
Posted:
Fri May 20, 2011 4:39 pm
by Pumpkin
hi,
some times,i found some ps dataset(LRECL=80,RECFM=FB), there are numbers in the last 8 byte,and can't be deleted by edit or by "num off" .
is there ways to get rid of it?
thanks!
Re: how to get rid of last 8 number of ps file
Posted:
Fri May 20, 2011 4:58 pm
by enrico-sorichetti
if You can edit the file ...
c p'^' ' ' 73 80 all
73 80 is for a 80 bytes record, adjust accordingly for Your lrecl
if You cannot edit
use SORT
Re: how to get rid of last 8 number of ps file
Posted:
Fri May 20, 2011 5:09 pm
by enrico-sorichetti
follow on
for sort use something along the lines of
000015 //SYSIN DD *
000016 SORT FIELDS=COPY
000017 OUTFIL BUILD=(01,72,8X)
000018 //*
adjust the 72 according to Your lrecl
Re: how to get rid of last 8 number of ps file
Posted:
Fri May 20, 2011 5:59 pm
by NicC
You could try NUM ON followed by UNNUM followed by NUM OFF
Re: how to get rid of last 8 number of ps file
Posted:
Sat May 21, 2011 6:47 am
by Pumpkin
thanks
it works!
Re: how to get rid of last 8 number of ps file
Posted:
Sat May 21, 2011 8:03 am
by dick scherrer
Well, good to hear it is working, but your reply would be more helpful to others if you posted "the solution" you used . . .
d
Re: how to get rid of last 8 number of ps file
Posted:
Sat May 21, 2011 11:43 pm
by steve-myers
NicC wrote:You could try NUM ON followed by UNNUM followed by NUM OFF
UNNUM in ISPF EDIT automatically does NUM OFF.
Re: how to get rid of last 8 number of ps file
Posted:
Sun May 22, 2011 1:29 pm
by Pumpkin
i use UNNUM,
sometimes,use num off, it doesn't work.
Re: how to get rid of last 8 number of ps file
Posted:
Sun May 22, 2011 2:40 pm
by steve-myers
Pumpkin wrote:i use UNNUM,
sometimes,use num off, it doesn't work.
NUM OFF does not remove existing numbers, but any new lines inserted into the dataset will not have line numbers.
Re: how to get rid of last 8 number of ps file
Posted:
Mon May 23, 2011 1:41 am
by dick scherrer
i use UNNUM,
Thank you for letting us know
d