I have a data file and need to do transpose in awk handling non-existent values also.
id|type|cost|date|ship 0|A|223|201603|PORT 0|A|22|201602|PORT 0|A|422|20