I probably already know the answer but does the number of segments/offsets 
change with each record type or would/do they remain the same?  If the later, 
then there is a DFSORT solution.


 On Wed Jun  4 12:59 , Tim Hare <[EMAIL PROTECTED]> sent:

>Really two questions I guess.
>
>1. We have variable length records with the data similar to COBOL 'OCCURS 
>DEPENDING ON' clauses - a count of the number of segments to follow, 
>followed by those segments.  Is there a way to handle these in 
>INREC/OUTREC/OUTFILE ?  I already thought of using IFTHEN  - if the count is 
>at least 1, output data from 1st segment, if at least 2, output from first 2 
>segments, etc. but I don't see how to do that based on the count that's in 
>the record....
>
>2.  Is there a way to describe such segments in DFSORT Symbols?
>
>I've been RTFM and PDFs but without enlightenment.  It seems to me that it 
>requires being able to specify the position field as a calculation rather than 
>a 
>constant (i.e. 'p' = base+
>(seg_number_starting_from_0*seg_length+offset_to_field_in_segment)?
>
>This would also be of use for some SMF records I'd imagine.
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
>Search the archives at http://bama.ua.edu/archives/ibm-main.html
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to