View previous topic :: View next topic |
Author |
Message |
madisand Beginner
Joined: 29 Aug 2005 Posts: 19 Topics: 7
|
Posted: Thu Mar 01, 2007 6:42 am Post subject: VB to VB copy |
|
|
Hi,
I am trying to copy a VB file into another VB file, but I am getting error.
Here is my control card
OPTION COPY
OUTREC FIELDS=(1,16104)
input file has LRECL=16104.
This is my sortout file
//SORTOUT DD DSN=AAAA.RED,
// DISP=(,CATLG,DELETE),SPACE=(CYL,(25,10),RLSE)
// DCB=(LRECL=16104,RECFM=VB)
However I am getting a syncsort error message as follows
WER108I SORTIN : RECFM=VB ; LRECL= 16104; BLKSIZE= 27998
WER237I OUTREC RECORD LENGTH = 16104
WER110I SORTOUT : RECFM=VB ; LRECL= 16104; BLKSIZE= 27998
WER244A OUTREC - SHORT RECORD
Tried to search in the forum. Couldnt find any. The error seems to be because some input records donot entriely fill outrec.
I have to use outrec only as the above requirement is only a subset of some editing with ALTSEQ parameter. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Mar 01, 2007 7:04 am Post subject: |
|
|
madisand,
For VB files you don't have to specify the length. However you do need to specify the RDW . Let us say you want to change the first 10 bytes with altseq then try this
Code: |
OPTION COPY
ALTSEQ CODE=(FFTT)
OUTREC FIELDS=(01,04,
05,10,TRAN=ALTSEQ,
15)
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
madisand Beginner
Joined: 29 Aug 2005 Posts: 19 Topics: 7
|
Posted: Thu Mar 01, 2007 8:12 am Post subject: |
|
|
Hi Kolusu,
Let me be more specific as to what I wanted to achieve. I wanted to change all occurences of X'D1' to X'40' in the input record.
So this is what I had given.
SORT FIELDS=COPY
ALTSEQ CODE=(D140)
OUTREC FIELDS=(5,16100,TRAN=ALTSEQ)
Now I accomodated for RDW with
OUTREC FIELDS=(1,4,
5,16100,TRAN=ALTSEQ)
Again it failed with the message as above.
So I removed length parameter & gave as below
OUTREC FIELDS=(1,4,
5,TRAN=ALTSEQ)
Now it ran successfully. But I didnot understand the significance of 15 in OUTREC. What is that for ? Are you outputting 15 bytes with 10 characters altered by ALTSEQ? |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Mar 01, 2007 8:16 am Post subject: |
|
|
Quote: |
But I didnot understand the significance of 15 in OUTREC. What is that for ? Are you outputting 15 bytes with 10 characters altered by ALTSEQ?
|
madisand,
If you had read my post clearly you would have got the answer . I said
Quote: |
Let us say you want to change the first 10 bytes with altseq then try this
|
as you mentioned that you only want to change a subset of records.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Mar 01, 2007 8:24 am Post subject: |
|
|
Kolusu
I have to admit that, having read the query about what the 15 stood for I wondered as well but then I READ the MANUAL and NOW i UNDERSTAND |
|
Back to top |
|
 |
madisand Beginner
Joined: 29 Aug 2005 Posts: 19 Topics: 7
|
Posted: Thu Mar 01, 2007 8:27 am Post subject: |
|
|
Thanks kolusu.
Your tip may come in hand in future though. You & Frank have always been outstanding with your quick solutions.
Cheers |
|
Back to top |
|
 |
|
|