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
Pumpkin
Posts: 55
Joined: Sat Mar 05, 2011 9:12 am
Skillset: jcl,cobol,db2,cics
Referer: google
Contact:

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

enrico-sorichetti
Global moderator
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
Referer: www.ibmmainframes.com

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: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
Referer: www.ibmmainframes.com

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

Code: Select all

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

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

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

Pumpkin
Posts: 55
Joined: Sat Mar 05, 2011 9:12 am
Skillset: jcl,cobol,db2,cics
Referer: google
Contact:

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

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

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

steve-myers
Global moderator
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Skillset: Assembler, JCL, utilities
Referer: zos.efglobe.com

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.

Pumpkin
Posts: 55
Joined: Sat Mar 05, 2011 9:12 am
Skillset: jcl,cobol,db2,cics
Referer: google
Contact:

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

steve-myers
Global moderator
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Skillset: Assembler, JCL, utilities
Referer: zos.efglobe.com

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.

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

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


  • Similar Topics
    Replies
    Views
    Last post