Posted: Thu Feb 13, 2020 4:25 pm Post subject: REMOVECC Option
Hi guys,
I've been working with FBA data set on INPUT and expected FB on OUTPUT; meanwhile, I got from SORT the following:
Code:
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R12 - 15:57 ON THU FEB 13, 2020 -
INCLUDE COND=(((2,1,CH,EQ,C'I'),OR,(2,1,CH,EQ,C'D')),AND,
(6,9,FS,EQ,NUM))
INREC BUILD=(6,9)
SORT FIELDS=(1,9,CH,A)
OUTFIL BUILD=(1,9),REMOVECC
END
ICE084I 0 EXCP ACCESS METHOD USED FOR SORTIN
ICE750I 0 DC 27930 TC 0 CS DSVNN KSZ 9 VSZ 9
ICE752I 0 FSZ=210 RC IGN=0 E AVG=12 0 WSP=3 C DYN=0 0
ICE231I 0 STORAGE USED FOR OUTFIL : BELOW 16M = 20480, ABOVE 16M = 2126848
ICE210I 0 SORTOUT : EXCP USED, LRECL = 9, BLKSIZE = 27990, TYPE = FBA (SDB)
ICE751I 1 DE-I37956 D5-K91600 D9-K61787 CB-K64632 E8-I37055
Is it (TYPE=FBA for SORTOUT) because of our not the most recent SORT release (V1R12) or perhaps it is VERY NORMAL behavior? Well, to solve my problem I had to add on SORTOUT DCB=RECFM=FB; however, I expected this would have been done by REMOVECC...
Thanks. _________________ Thanks,
knv09
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Thu Feb 13, 2020 7:06 pm Post subject:
knv09,
Removecc applies only to DFSORT reporting ( ex : use of Header or trailer or sections). DFSORT merely copies the DCB properties from SORTIN to SORTOUT, except the LRECL which is calculated based on the INREC/OUTREC
If you want to convert FBA file to FB then you need to code RECFM in the JCL
Btw your control cards can be simplified to the following
Code:
//SORTOUT DD DSN=Your output file of 9 bytes,
// DISP=(,CATLG),
// SPACE=(CYL,(X,Y),RLSE),
// RECFM=FB
//SYSIN DD *
INCLUDE COND=(2,1,SS,EQ,C'I,D',AND,
6,9,FS,EQ,NUM)
Thank you very much, kolusu!
Well, I certainly got confused by the following:
"...
If you don't want the ANSI carriage control characters to appear in the output data set, use the
REMOVECC parameter to remove them. For example, if you specify:
OUTREC=(1,40,80:X),REMOVECC
DFSORT will set the LRECL to 80 instead of 81 and remove the ANSI carriage control character from
each record before it is written.
OUTFIL Control Statements
Page 248 z/OS: DFSORT Application Programming Guide"
As such, I thought, the OUTPUT data set TYPE would be FB (not FBA).
BTW, I run my test (with your more elegant CONTROL statements) and got EXACTLY the same output even though I removed ",REMOVECC" option; just put DCB=RECFM=FB on my SYSOUT. _________________ Thanks,
knv09
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Sat Feb 15, 2020 9:31 am Post subject:
knv09 wrote:
Thank you very much, kolusu!
Well, I certainly got confused by the following:
"...
If you don't want the ANSI carriage control characters to appear in the output data set, use the
REMOVECC parameter to remove them. For example, if you specify:
OUTREC=(1,40,80:X),REMOVECC
DFSORT will set the LRECL to 80 instead of 81 and remove the ANSI carriage control character from
each record before it is written.
OUTFIL Control Statements
Page 248 z/OS: DFSORT Application Programming Guide"
As such, I thought, the OUTPUT data set TYPE would be FB (not FBA). ",REMOVECC" option; just put DCB=RECFM=FB on my SYSOUT.
knv09,
You need to read the entire paragraph and under stand the context. The paragraph beginning explains about the reporting features. Here is the paragraph. I highlighted the parts that you need to pay attention.
DFSORT Application Programming Guide wrote:
The BUILD or OUTREC parameter can be used with any or all of the report parameters(LINES,
HEADER1, TRAILER1, HEADER2, TRAILER2, SECTIONS, BLKCCH1, BLKCCH2, BLKCCT1, and
NODETAIL) to produce reports. The report parameters specify the report records to be produced,
while the BUILD or OUTREC parameter specifies the reformatted data records to be produced.
DFSORT uses ANSI carriage control characters to control page ejects and the placement of the lines in
your report, according to your specifications. You can use the REMOVECC parameter to remove the
ANSI carriage control characters.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum