Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

ICETOOL. Record length of the output file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: ICETOOL. Record length of the output file
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    Post subject: Reply to: ICETOOL. Record length of the output file
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

http://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    Post subject: Reply to: ICETOOL. Record length of the output file
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us