Page 1 of 1

Losing data when inserting data into record

PostPosted: Tue Oct 05, 2010 9:26 pm
by ctrevino
Here is the original data record.

         1         2         3         4         5         6
    5    0    5    0    5    0    5    0    5    0    5    0
.FHS|¬~\&|FLDOCOBIS|FLDOC¬FLDOCMEDICAL|||201009300848||||||.

Code'd

I am trying to get this

.FHS|¬~\&|FLDOCOBIS|FLDOC¬FLDOCMEDICAL|UOFFL|UOFFL|201009300848||||||.

But I am getting this:

.FHS|¬~\&|FLDOCOBIS|FLDOC¬FLDOCMEDICAL|UOFFL|UOFFL|48||||||.

This is the input I am using:
//SYSIN    DD *                                                 
    SORT FIELDS=COPY                                             
  OUTREC  IFTHEN=(WHEN=(2,3,CH,EQ,C'FHS'),                       
          BUILD=(1:1,39,40:C'UOFFL',45:10,1,46:C'UOFFL',51:10,1,
          52:52,25))                                             
/*                                                               

Re: Losing data when inserting data into record

PostPosted: Tue Oct 05, 2010 11:26 pm
by dick scherrer
Hello,

Maybe start in 42 rather than 52?

Re: Losing data when inserting data into record

PostPosted: Tue Oct 05, 2010 11:52 pm
by ctrevino
Thanks, Dick.

I have been functioning in an allergy fog today. Lots of these DUH moments.

Sorry to bug you,.......again!

Re: Losing data when inserting data into record

PostPosted: Wed Oct 06, 2010 2:07 am
by dick scherrer
You're welcome :)

Sorry to bug you,.......again!
Surely not a problem 8-)

Be well,

d