how to get rid of last 8 number of ps file



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

how to get rid of last 8 number of ps file

Postby Pumpkin » Fri May 20, 2011 4:39 pm

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!
You do not have the required permissions to view the files attached to this post.
-------------------
Pumpkin
Pumpkin
 
Posts: 55
Joined: Sat Mar 05, 2011 9:12 am
Has thanked: 0 time
Been thanked: 0 time

Re: how to get rid of last 8 number of ps file

 

Re: how to get rid of last 8 number of ps file

Postby enrico-sorichetti » Fri May 20, 2011 4:58 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: how to get rid of last 8 number of ps file

Postby enrico-sorichetti » Fri May 20, 2011 5:09 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: how to get rid of last 8 number of ps file

Postby NicC » Fri May 20, 2011 5:59 pm

You could try NUM ON followed by UNNUM followed by NUM OFF
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: how to get rid of last 8 number of ps file

Postby Pumpkin » Sat May 21, 2011 6:47 am

thanks
it works!
-------------------
Pumpkin
Pumpkin
 
Posts: 55
Joined: Sat Mar 05, 2011 9:12 am
Has thanked: 0 time
Been thanked: 0 time

Re: how to get rid of last 8 number of ps file

Postby dick scherrer » Sat May 21, 2011 8:03 am

Well, good to hear it is working, but your reply would be more helpful to others if you posted "the solution" you used . . . :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: how to get rid of last 8 number of ps file

Postby steve-myers » Sat May 21, 2011 11:43 pm

NicC wrote:You could try NUM ON followed by UNNUM followed by NUM OFF
UNNUM in ISPF EDIT automatically does NUM OFF.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: how to get rid of last 8 number of ps file

Postby Pumpkin » Sun May 22, 2011 1:29 pm

i use UNNUM,
sometimes,use num off, it doesn't work.
-------------------
Pumpkin
Pumpkin
 
Posts: 55
Joined: Sat Mar 05, 2011 9:12 am
Has thanked: 0 time
Been thanked: 0 time

Re: how to get rid of last 8 number of ps file

Postby steve-myers » Sun May 22, 2011 2:40 pm

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.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: how to get rid of last 8 number of ps file

Postby dick scherrer » Mon May 23, 2011 1:41 am

i use UNNUM,

Thank you for letting us know :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post