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

ICETOOL. Record length of the output file


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

New User


Joined: 09 Oct 2006
Posts: 19
Location: Toronto

PostPosted: Tue Mar 02, 2010 1:12 am
Reply with quote

HI,

I have an input file:
record Length = 80. The input file has:
Code:
2006324VAC     01987759149                                                     
2010074MM2     03000339721   


I use ICETOOL:
Code:
OCCUR FROM(INPUT) LIST(OUTPUT) -     
  HEADER('TACTIC ID') ON(1,10,CH) - 
  HEADER('COUNT') ON(VALCNT)   


Out put created is 121 bytes long. the output file has:
Code:
TACTIC ID                        COUNT                                         
--------------------   ---------------                                         
2006324VAC             000000000000001                                         
2010074MM2             000000000000001     


The output file contains the expected value, but why is the record length 121 bytes. In my JCL my DCB & SPACE parameters are coded as:
Code:
DCB=(SRCDSCB,RECFM=FB,LRECL=80),
SPACE=(80,(100,100),RLSE), 


Thanks
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Tue Mar 02, 2010 1:46 am
Reply with quote

siddheart22,

The documentation for OCCURS and DISPLAY operator clearly mentions as to how the LRECL of 121 is set

Code:

LRECL is set to one of the following:

    * If WIDTH(n) is specified, LRECL is set to n. Use WIDTH(n) if your LRECL must be set to a particular value (for example, if you use DISP=MOD to place several reports in the same data set).

    * | If WIDTH(n) is not specified and NOCC is not specified , LRECL is set to 121 or to the calculated required line length if it is greater than 121 characters.

    * | If WIDTH(n) is not specified and NOCC is specified, LRECL
      | is set to 120 or to the calculated required line length
      | if it is greater than 120 characters.


Read it here

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA40/6.8.4
Back to top
View user's profile Send private message
siddheart22

New User


Joined: 09 Oct 2006
Posts: 19
Location: Toronto

PostPosted: Tue Mar 02, 2010 2:53 am
Reply with quote

Thanks Kolusu.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
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
Search our Forums:

Back to Top