IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

While Spliting the input file the output file record length


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sanjayis01
Warnings : 1

New User


Joined: 13 Jun 2007
Posts: 55
Location: banaglore

PostPosted: Thu Jun 28, 2007 12:26 pm
Reply with quote

Hi All

While Spliting the input file using following condition
SORT FIELDS=COPY
OUTFIL FILES=01,
INCLUDE=(05,1,CH,EQ,C'B',AND,6,1,CH,EQ,C'N')

the output file record length should remain same or what ? if i changed it to more or less than the actual length what will happen .

If i increse the length , i m getting abend ABENDU0425

please give appropriate answer


please let me knowfor more detail?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jun 28, 2007 12:50 pm
Reply with quote

Hello,

Please post all of the info from your job - the jcl, control statements, and the output (other than any dumps - we won't want a dump here).
Back to top
View user's profile Send private message
sanjayis01
Warnings : 1

New User


Joined: 13 Jun 2007
Posts: 55
Location: banaglore

PostPosted: Thu Jun 28, 2007 1:01 pm
Reply with quote

//A028968A JOB (TDEV,TST),'A028968',MSGCLASS=9,
// CLASS=C,NOTIFY=A028968,TIME=(1,20)
//* $ACFJ219 ACF2 ACTIVE TGTMPLS
//*
//JOBLIB DD DISP=SHR,DSN=SYS1.SCEERUN
// DD DSN=NDVRPRD.MUNIT.TGT.LE.LOADLIBB,
// DISP=SHR
// DD DSN=NDVRPRD.CPROD.TGT.LE.LOADLIBB,
// DISP=SHR
//STEP010 EXEC PGM=SORT
//SORTIN DD DSN=SEDT.NT.SEDD001.LOC.MEAS.REC,DISP=SHR
//SORTOF01 DD DSN=SEDT.NT.SEDD001.LOC.MEAS.HDR.DATA,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(15,15),RLSE),
// DCB=(DSCB1,BLKSIZE=0,LRECL=130,RECFM=FB)


This is job card used to split the file the input file lenght is 125 if increase the o/p file legth to 130 its giving abend mentioned above, and if decrese the lenght to 100 , its working fine.

My question is In sort utility while spliting the file the o/p file record length should be same or less?

can any one aswer this please
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Thu Jun 28, 2007 1:11 pm
Reply with quote

If you increase file length from 125 to 130, then code
OUTREC=(1,125,130:X)
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Jun 28, 2007 7:55 pm
Reply with quote

Sanjay,

If you run the job you showed with DFSORT, you'll get this error message:

ICE222A 0 125 BYTE FIXED RECORD LENGTH IS NOT EQUAL TO 130 BYTE LRECL FOR SORTOF01

I don't know where the U0425 you mention is coming from.

With OUTFIL, the output LRECL must match the output record length. In your case, the output record length is 125, but the output LRECL is 130 (LRECL=130) so you'll get that error message. If you want the output record length to be 130, you can use:

Code:

  SORT FIELDS=COPY
  OUTFIL FILES=01,
     INCLUDE=(05,1,CH,EQ,C'B',AND,6,1,CH,EQ,C'N') ,
     OVERLAY=(130:X)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top