View previous topic :: View next topic
|
Author |
Message |
siddheart22
New User
Joined: 09 Oct 2006 Posts: 19 Location: Toronto
|
|
|
|
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 |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
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 |
|
|
siddheart22
New User
Joined: 09 Oct 2006 Posts: 19 Location: Toronto
|
|
|
|
Thanks Kolusu. |
|
Back to top |
|
|
|