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 

OVERLAY with variable file -SYNCSORT

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


Joined: 05 Oct 2005
Posts: 28
Topics: 20
Location: INDORE

PostPosted: Wed Nov 29, 2006 5:05 pm    Post subject: OVERLAY with variable file -SYNCSORT Reply with quote

Hi,
I am trying to change a header record of a variable file.The file looks like below.

I/P file :
Record format . . . : VB
Record length . . . : 3156
Block size . . . . : 27998

Display of the header record.

Code:

----+----1----+----2---
***********************
......HDR@20061128     
...............................................ASWS..............
...............................................KWQEWEWE.........



I used the below SORT card.

Code:


//JS020    EXEC PGM=SORT                                         
//SYSOUT   DD SYSOUT=(,)                                         
//SORTIN   DD DSN=XXX.IN,       
//            DISP=SHR                                           
//SORTOUT  DD DSN=XXXX.OUT,           
//            DISP=(,CATLG,DELETE),                             
//            UNIT=SYSDA,                                       
//            SPACE=(TRK,(25,25),RLSE),                         
//            DCB=*.SORTIN                                       
//SYSIN    DD *                                                 
  SORT FIELDS=COPY                                               
  INREC IFTHEN=(WHEN=(15,8,CH,EQ,C'20061128'),                   
        OVERLAY=(C'20061127'))                                   
//*                                                             


I am getting th error
WER231A INREC - ILLEGAL DATA FIELD
.

I just need to change the date in the header record and produce the file as it is from the input file.

Can any body tell me my mistake ?

Thanks
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Nov 29, 2006 5:27 pm    Post subject: Reply with quote

this is a variable length file; are you sure that the header record is 23 char long (or 19 + 4 RDW). With which Utility are you viewing the file? Are you sure you are not viewing the records with their VLI (variable length indicator)?

you may need a parm to indicate range length of acceptable records, but maybe not, I don't know syncsort.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Nov 29, 2006 5:47 pm    Post subject: Reply with quote

tempuser,

You are getting the error because you did not specify the position to overlaid . so change your control cards to the following(assuming that you wanted to overlay the same field as the look up field.)

Code:

//SYSIN    DD *                                                 
  SORT FIELDS=COPY                                               
  INREC IFTHEN=(WHEN=(15,8,CH,EQ,C'20061128'),                   
        OVERLAY=(15:C'20061127'))                                   
//*


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
tempuser
Beginner


Joined: 05 Oct 2005
Posts: 28
Topics: 20
Location: INDORE

PostPosted: Wed Nov 29, 2006 6:02 pm    Post subject: Reply with quote

Oh! Thanks a lot Kolusu!

Thank you
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