Hi,
I've coded this
//STEP0150 EXEC PGM=IEBCOMPR
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSNAME=V001.AUSZ.DEPOT,
// DISP=SHR
//SYSUT2 DD DSNAME=V002.AUSZ.DEPOT,
// DISP=SHR
//SYSIN DD *
COMPARE TYPORG=PO
/*
and got this Errormessage
STEP0150,5101,D,SYSUT1 ,READ ,WRNG.LEN.RECORD,0000381C000100,BSAM
Both member are defined like this
DSN=V001.AUSZ.DEPOT,
DISP=(NEW,CATLG,DELETE),
DCB=(PDCB,RECFM=FB,LRECL=500),
SPACE=(500,(600,50),RLSE),AVGREC=K
What can I do better ?
Thanks
Michael
IEBCOMPR Error
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: IEBCOMPR Error
The message is telling you there is a difference between the declared DCB attributes of the data set and the actual data in the data set. The most common reason for this problem is the program that was supposed to write data to the data set never wrote anything to the data set.
Another problem is by stating TYPORG=PO in the IEBCOMPR control statement you are claiming the data sets are partitioned data sets, but the definition you show seems to indicate the data sets are sequential data sets. Sequential data sets do not have a PDS directory, and the error message is just telling you IEBCOMPR is trying to read the directory when there is no directory to read.
IEBCOMPR is a very stupid program and is rarely used any more. The SUPERC program that is part of ISPF is far superior.
Another problem is by stating TYPORG=PO in the IEBCOMPR control statement you are claiming the data sets are partitioned data sets, but the definition you show seems to indicate the data sets are sequential data sets. Sequential data sets do not have a PDS directory, and the error message is just telling you IEBCOMPR is trying to read the directory when there is no directory to read.
IEBCOMPR is a very stupid program and is rarely used any more. The SUPERC program that is part of ISPF is far superior.
-
- Posts: 6
- Joined: Thu Jun 18, 2020 3:54 pm
- Skillset: Cobol, DB2, JCL
- Referer: Internetsearch
- Location: Switzerland
Re: IEBCOMPR Error
Thanks for the fast reply !
I know that SuperC would be better - but I was looking for a routine which will work in a batch job. But I saw no example how to use SuperC.
I know that SuperC would be better - but I was looking for a routine which will work in a batch job. But I saw no example how to use SuperC.
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: IEBCOMPR Error
SUPER works nicely in batch too, as a TSO batch command. Sample;
There are lots of options, check the manual for details.
Code: Select all
//SUPERC EXEC PGM=IKJEFT1B
//SYSTSPRT DD SYSOUT=*
//OLDDD DD DISP=SHR,DSN=XX.TEST.LIB1
//NEWDD DD DISP=SHR,DSN=XX.TEST.LIB2
//OUTDD DD SYSOUT=*
//SYSTSIN DD *
ISRSUPC COVSUM NARROW ALLMEMS
//SYSIN DD *
CMPCOLM 1:100
There are lots of options, check the manual for details.
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: IEBCOMPR Error
SUPERC runs just fine in batch, but finding documentation about how to do it is somewhat difficult. The ISPF interface is just doctoring things up so it runs in the ISPF environment and then uses ISPF browse to display the SYSPRINT data set after it runs.
In my opinion, as a result the online displays are not as useful as they could be had it been planned from the start to be exclusively ISPF.
There is documentation in this link, which I found using Google.
In my opinion, as a result the online displays are not as useful as they could be had it been planned from the start to be exclusively ISPF.
There is documentation in this link, which I found using Google.
-
- Posts: 6
- Joined: Thu Jun 18, 2020 3:54 pm
- Skillset: Cobol, DB2, JCL
- Referer: Internetsearch
- Location: Switzerland
Re: IEBCOMPR Error
Thanks to you all - that helps a lot !
Dif-tor heh smusma
Dif-tor heh smusma

-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 1474
-
by sergeyken
View the latest post
Sun Oct 04, 2020 11:33 pm
-
- 0
- 1212
-
by mehi1353
View the latest post
Tue May 28, 2024 2:42 pm
-
- 7
- 3830
-
by jcdm
View the latest post
Tue Jul 25, 2023 11:57 am
-
- 9
- 4643
-
by steve-myers
View the latest post
Sat Nov 13, 2021 12:17 am
-
- 4
- 2114
-
by willy jensen
View the latest post
Tue Apr 20, 2021 1:26 pm