Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
Because the solution for sort related questions may vary from product to product, please ensure that you state clearly which sort product you are using.
If you are not sure, then by running a simple sort step shown below, you will be able to find out for yourself.
If the messages start with ICE then your product is DFSORT. Please also post the output of the complete line which has a message code ICE201I, as this will enable our DFSORT experts to determine which release of DFSORT that you have installed. This may also affect the solution offered.
If the messages start with WER or SYT then the product is SYNCSORT and the topic will be moved into the JCL forum by one of the moderators. Please also post the information telling which version of SYNCSORT is installed, as this may also affect the solution offered.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
When I run the DFSORT job you show with the input you show, I get the output you say you want:
Code:
COLOR FLOWER STATUS PER POT
------- -------------- --------- -------
LILAC DAISIES SOLDOUT 12
ORANGE DAISIES SOLDOUT 6
YELLOW DAISIES INSTOCK 2
PINK ROSES SOLDOUT 4
RED ROSES INSTOCK 3
YELLOW ROSES ORDERED 6
If you're not getting that output, then I suspect the input is really not what you've shown (different starting position somewhere), or something else is going on that you're not telling us about.
Here's what my input files look like with ubb codes to show them in a fixed font:
SORTJNF1:
Field 1 starts in position 1
Field 2 starts in position 16
Field 3 starts in position 20
SORTJNF2:
Field 1 starts in position 1
Field 2 starts in position 10
Field 3 starts in position 26
& I m getting o/p as :
Code:
********************************* TOP OF DATA ****
COLOR FLOWER STATUS PER POT
------- -------------- --------- -------
******************************** BOTTOM OF DATA **
Bt I want the o/p As :
Code:
COLOR FLOWER STATUS PER POT
------- -------------- --------- -------
LILAC DAISIES SOLDOUT 12
ORANGE DAISIES SOLDOUT 6
YELLOW DAISIES INSTOCK 2
PINK ROSES SOLDOUT 4
RED ROSES INSTOCK 3
YELLOW ROSES ORDERED 6