Unix server we knew already. The Mainframe system knows about the data. A program using the data already knows which of the fields involved in each of the REDEFINES to use.
Mainframe: I'm going to give you some numbers in character format. They can have zero to n decimal places or an actual decimal-point (your choice), and can be signed (leading + or -) or unsigned (your choice). They will be fixed-width. What is the most convenient for you? Unix: <some unknown answer> Mainframe: OK, that's fine. For the answers, you use a MASK, with or without an actual decimal place, and, if required, an indicator of the number of decimal places. For the REDEFINES fields, you generate two fields "IF (some condition) use FIELDA and make FIELDB zero, ELSE use FIELDB and make FIELDA zero". The important part is knowing what you want. If you know all at once, it avoids revisits to the task. Once you know what you want, it is easy in SORT. You want to get the "knowing" done first, to avoid multiple changes to the output record-layout. Once you know, describe. The control cards themselves are unproblematic, but until you know, exactly which control cards is problematic. On Thursday, 4 February 2016 16:30:14 UTC, Ron Thomas wrote: > Ok. the file is going to a unix server. Could you please let me know how this > can be done in a sort card as i am not very sure how to do this ? then this > will save some time for me . > > Thanks > Ron T > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
