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

OUTREC fill bytes restants


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

New User


Joined: 12 Feb 2015
Posts: 6
Location: México,D.F.

PostPosted: Thu Apr 16, 2015 12:40 am
Reply with quote

Hi,

anyone of you knows the parameter, which allows
automatically fill the remaining fields on a outrec to DFSORT .
look in the manuals ibm , but I did not find solution.

example :

LRECL = 926

Outrec length = 900

The remaining 26 bytes must be filled automatically by X'00 '

thx
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Apr 16, 2015 1:02 am
Reply with quote

If your records are fixed-length
Code:

  INREC OVERLAY=(901:26Z)


If your records are variable-length what do you want to do?
Back to top
View user's profile Send private message
josessegura

New User


Joined: 12 Feb 2015
Posts: 6
Location: México,D.F.

PostPosted: Thu Apr 16, 2015 10:04 pm
Reply with quote

Bill Woodger wrote:
If your records are fixed-length
Code:

  INREC OVERLAY=(901:26Z)


If your records are variable-length what do you want to do?


I am migrating CA -Sort to DFSORT , and found cards that outrec bytes are less than the defined in SPACE , CA fills these MISS bytes , and DFSORT does not.

thx
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Apr 16, 2015 11:44 pm
Reply with quote

Post the sysout from a CA-SORT step and the output from your DFSORT step, please, and we can see.
Back to top
View user's profile Send private message
josessegura

New User


Joined: 12 Feb 2015
Posts: 6
Location: México,D.F.

PostPosted: Fri Apr 17, 2015 12:06 am
Reply with quote

Bill Woodger wrote:
Post the sysout from a CA-SORT step and the output from your DFSORT step, please, and we can see.


The output is as follows:

Code:
            SORT FIELDS=(50,12,CH,A)                                           
            INCLUDE COND=(8,2,CH,EQ,C'FE')                                     
            OUTFIL FNAMES=SORTOUT1,                                             
                  OUTREC=(50,12,62,5,152,30,182,5,8,2,187,3,190,1,             
                          191,1,192,1,193,1,194,1,195,1,196,2,198,2,           
                          200,8,208,2,15,1,210,10,474,4,478,1,479,7,           
                          486,30,220,15,235,2,237,3,240,5,245,1,246,           
                          1,247,2,249,110,359,110,469,5,516,47,563,279,         
                          22,3,25,3,10,2)                                       
ICE201I H RECORD TYPE IS F - DATA STARTS IN POSITION 1                         
ICE222A 0 718 BYTE FIXED RECORD LENGTH IS NOT EQUAL TO 926 BYTE LRECL FOR SORTOU
ICE751I 0 C5-K62149 C6-K90026 C7-K58148 C8-K67572 E4-K58148 E7-K70685           
ICE052I 3 END OF DFSORT                                                         


The input and output has a length of 926
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Apr 17, 2015 2:43 pm
Reply with quote

If you add the lengths of the fields you are placing in OUTREC, you'll see they add to 718 - which is what DFSORT is reporting in the ICE222A message. If you change the last line as Bill suggested you'll get the record padded as required.
Code:
22,3,25,3,10,2,901:26Z)


Garry
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 Masking variable size field - min 10 ... DFSORT/ICETOOL 4
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts Sort w/OUTREC Question DFSORT/ICETOOL 2
No new posts total number of bytes PL/I & Assembler 10
No new posts Getting OUTREC - SHORT REC error for ... DFSORT/ICETOOL 12
Search our Forums:

Back to Top