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!
how to get rid of last 8 number of ps file
-
- 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
You do not have the required permissions to view the files attached to this post.
-------------------
Pumpkin
Pumpkin
-
- 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
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
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
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
-
- 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
follow on
for sort use something along the lines of
adjust the 72 according to Your lrecl
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
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
-
- 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
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
Regards
Nic
- 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
Well, good to hear it is working, but your reply would be more helpful to others if you posted "the solution" you used . . .
d

d
-
- 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
UNNUM in ISPF EDIT automatically does NUM OFF.NicC wrote:You could try NUM ON followed by UNNUM followed by NUM OFF
-
- 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
i use UNNUM,
sometimes,use num off, it doesn't work.
sometimes,use num off, it doesn't work.
-------------------
Pumpkin
Pumpkin
-
- 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
NUM OFF does not remove existing numbers, but any new lines inserted into the dataset will not have line numbers.Pumpkin wrote:i use UNNUM,
sometimes,use num off, it doesn't work.
- 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
i use UNNUM,
Thank you for letting us know

d
-
- Similar Topics
- Replies
- Views
- Last post
-
-
compare number lines of two dataset
by samb01 » Wed Nov 13, 2024 8:46 pm » in DFSORT/ICETOOL/ICEGENER - 6
- 2173
-
by sergeyken
View the latest post
Fri Nov 15, 2024 12:41 pm
-
-
-
EZIOE004 Logical I/O error on file occurred reading VB file
by savitha_y » Mon Feb 15, 2021 7:54 pm » in CA-Easytrieve - 3
- 4970
-
by savitha_y
View the latest post
Wed Feb 17, 2021 5:02 am
-
-
-
File Handling 3 input files and 1 output file by using EZT
by pavan426 » Thu Sep 09, 2021 12:17 am » in CA-Easytrieve - 0
- 4437
-
by pavan426
View the latest post
Thu Sep 09, 2021 12:17 am
-
-
-
Need to check whether file is ESDS file or not by using REXX
by Devrana » Sat Oct 05, 2024 2:28 pm » in CLIST & REXX - 6
- 3297
-
by sergeyken
View the latest post
Tue Oct 08, 2024 5:25 pm
-
-
- 6
- 2528
-
by MFDEV
View the latest post
Fri Sep 11, 2020 9:04 am