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

Getting OUTREC error for the Varible Length File


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
BRKS

New User


Joined: 20 Apr 2007
Posts: 14
Location: pune

PostPosted: Mon Oct 29, 2007 10:28 am
Reply with quote

Hi all ,

i am getting the OUTREC error

I have the input file of LRECL=612 and i am soring the file on particular field from the postion 11-16 and writing the sorted filed in the output file
when i am using the below OUTREC syntax it is giving me the following error


ICE000I J - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 01:40 ON SAT OCT
SORT FIELDS=(15,6,PD,A)
SUM FIELDS=NONE
OUTREC FIELDS=(5:15,10,ZD,602X)
ICE201I J RECORD TYPE IS V - DATA STARTS IN POSITION 5
ICE126A J INCONSISTENT *OUTREC IFTHEN 0 REFORMATTING FIELD FOUND
ICE052I J END OF DFSORT



Code:

//STEP00   EXEC PGM=SORT                                         
//SYSPRINT DD  SYSOUT=*                                         
//SYSLIST  DD  SYSOUT=*                                         
//SYSOUT   DD  SYSOUT=*                                         
//SORTIN   DD  DSN=ZPFCB.PBI.C0710.CR125T01.XVP.COPY,
//            DISP=SHR ,DCB=(LRECL=612,RECFM=VB,BLKSIZE=0)                                         
//SORTOUT  DD  DSN=ZPFCB.PBI.C0710.CR125T01.XVP.SRT1,   
//*            DISP=OLD,                                         
//            DISP=(NEW,CATLG,DELETE),                           
//            DCB=(LRECL=616,RECFM=vB,BLKSIZE=0),               
//            SPACE=(CYL,(100,100),RLSE)                       
//SYSIN    DD  *                                                 
  SORT FIELDS=(15,6,PD,A)                                       
  SUM FIELDS=NONE                                               
  OUTREC FIELDS=(5:15,10,ZD,602X)
/*


Please give the solution

Please give me the OUTREC syntax for both the fixed length and variable length file.

Regards,
BRKS.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Oct 29, 2007 10:32 am
Reply with quote

BRKS,

Quote:
OUTREC FIELDS=(5:15,10,ZD,602X)

Your OP file is 616 in lenght. But your outrec statement is 612 in lenght. Include RDW bytes in your outrec stattement.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Oct 29, 2007 10:42 am
Reply with quote

BRKS,

Please ignore my prev post. Provided wrogn suggestion (may be out of my mind because of work load).

Also you had provided wrong outrec statement. Verify that alos.


Moderators,

Could you remove my prev post. Please.
Back to top
View user's profile Send private message
BRKS

New User


Joined: 20 Apr 2007
Posts: 14
Location: pune

PostPosted: Mon Oct 29, 2007 10:44 am
Reply with quote

hi murmohk1

still i am getting the same error after adding the RDW also

ICE143I 0 BLOCKSET SORT TECHNIQUE SELECTED
ICE250I 0 VISIT www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 16:10 ON MON OCT
SORT FIELDS=(15,6,PD,A)
SUM FIELDS=NONE
OUTREC FIELDS=(5:15,10,ZD,606X)
ICE201I E RECORD TYPE IS V - DATA STARTS IN POSITION 5
ICE126A 2 INCONSISTENT *OUTREC IFTHEN 0 REFORMATTING FIELD FOUND
ICE751I 0 C5-K21008 C6-K90007 C7-K90000 C8-K90007 E7-K11698
ICE052I 3 END OF DFSORT


Can you please send the Syntax or both the fixed length and variable length file.

Regards,
BRKS
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Oct 29, 2007 10:48 am
Reply with quote

BRKS,

Change your OUTREC to -

Code:
OUTREC FIELDS=(1,4,5:15,10)


Try and let us know.
Back to top
View user's profile Send private message
BRKS

New User


Joined: 20 Apr 2007
Posts: 14
Location: pune

PostPosted: Mon Oct 29, 2007 11:14 am
Reply with quote

hi murmohk1
thanks for the reply

it is working
but with your OUTREC statment it is giving the DATA in the PD format

but I want the field to be converted to ZD, when i am using the ZD it is giving the following error

ICE143I 0 BLOCKSET SORT TECHNIQUE SELECTED
ICE250I 0 VISIT www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 16:38 ON MON OCT
SORT FIELDS=(15,6,PD,A)
SUM FIELDS=NONE
OUTREC FIELDS=(1,4,5:15,10,ZD)
ICE201I E RECORD TYPE IS V - DATA STARTS IN POSITION 5

Regards
BRKS
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Oct 29, 2007 11:25 am
Reply with quote

BRKS,

Code:
I want the field to be converted to ZD

Try this -

Code:
OUTREC FIELDS=(1,4,5:15,10,PD,TO=ZD,LENGTH=n)


Change 'n' value according to your requirement.
Back to top
View user's profile Send private message
BRKS

New User


Joined: 20 Apr 2007
Posts: 14
Location: pune

PostPosted: Mon Oct 29, 2007 11:44 am
Reply with quote

thanks murmohk1

it is working

Regards,
BRKS.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Oct 29, 2007 1:01 pm
Reply with quote

BRKS,

I had slipped sortcard for FB from your OP-
Code:
OUTFIL OUTREC=(...... your req .....),VTOF


Quote:
thanks murmohk1

You are welcome.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
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
Search our Forums:

Back to Top