| Author |
Message |
kalaikala
New User
Joined: 21 Jul 2007 Posts: 11 Location: Chennai
|
|
|
|
Hi Mr. Frank Yeager,
I am getting error in below sort card when i use variable length file as an input. If i use Fixed length file its working fine.
SORT FIELDS=(07,8,CH,A,
15,04,BI,A,
19,15,CH,A,
44,10,CH,A),EQUALS
OUTFIL FNAMES=(SORTOUT),REMOVECC,NODETAIL,CONVERT
SECTIONS=(07,27,TRAILER3=(7,101))
Can you help me to solve this problem.  |
|
| Back to top |
|
 |
References
|
Posted: Tue Apr 29, 2008 12:58 pm Post subject: Re: How do i use Sections and Trailers with variable length reco |
 |
|
|
 |
Frank Yaeger
DFSORT Moderator
Joined: 15 Feb 2005 Posts: 3798 Location: San Jose, CA
|
|
|
|
Kalai,
For the OUTFIL statement, you need a comma after CONVERT (VTOF) and you need a BUILD operand. Since you have NODETAIL, the BUILD operand can just have nX where n is the LRECL you want for the FB output data set. Something like this (note that TRAILER3 will pick up the data from the input record, not from the BUILD operand):
| Code: |
OUTFIL FNAMES=SORTOUT,REMOVECC,NODETAIL,VTOF,
BUILD=(128X),
SECTIONS=(07,27,TRAILER3=(7,101))
|
|
|
| Back to top |
|
 |
kalaikala
New User
Joined: 21 Jul 2007 Posts: 11 Location: Chennai
|
|
|
|
Thanks you very much Mr. Frank Yaeger. Its works fine now.  |
|
| Back to top |
|
 |
|
|
|