MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VB to VB copy

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
madisand
Beginner


Joined: 29 Aug 2005
Posts: 19
Topics: 7

PostPosted: Thu Mar 01, 2007 6:42 am    Post subject: VB to VB copy Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Mar 01, 2007 7:04 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
madisand
Beginner


Joined: 29 Aug 2005
Posts: 19
Topics: 7

PostPosted: Thu Mar 01, 2007 8:12 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Mar 01, 2007 8:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Mar 01, 2007 8:24 am    Post subject: Reply with quote

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
View user's profile Send private message
madisand
Beginner


Joined: 29 Aug 2005
Posts: 19
Topics: 7

PostPosted: Thu Mar 01, 2007 8:27 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group