The solution that someone finds to a given problem depends on

- the problem, of course
- the tools or skills he or she has available

For me, doing this task with DFSORT would involve long time of manual
reading, and maybe in the end I would find the solution.

With my given skills and tools, other solutions come to mind:

- REXX programming (I have tons of REXX functions reading a file, doing some
reformatting or parsing and writing it out again; I would search one which is similar,
copy and change it and be happy - should be minutes, not hours)

- programming in C or PL/1 or even ASSEMBLER

- loading the CSV to a DB2 table (I have a tool to do this) and do the manipulation of the IP address and the sorting there (strange idea, but it would work, too)

For me, given my actual skill situation, all those approaches are easier (faster) than the DFSORT approach. This is my very personal situation; others may have other situations.

You should in the end FIND a solution, and in a minimum of time.

Regarding DFSORT:

Of course, I use DFSORT sometimes, if I have to sort VERY LARGE files or if I am
building job control for production work, but then there are normally fixed
sort field positions in the file; I never had the need so far to dig deeper
into the more sophisticated features of DFSORT (I know that there are many).

Kind regards

Bernd




Am 16.04.2014 22:48, schrieb Martin Packer:
It's probable DFSORT could do that too. Consider the value of IFTHEN and
"ADD,+1" in OUTREC to increment and check the bounds of the block haven't
been reached.

But I accept that might be a fetishistic approach: Turning everything into
something to be solved by DFSORT.

Cheers, Martin

Martin Packer,
zChampion, Principal Systems Investigator,
Worldwide Banking Center of Excellence, IBM

+44-7802-245-584

email: [email protected]

Twitter / Facebook IDs: MartinPacker
Blog:
https://www.ibm.com/developerworks/mydeveloperworks/blogs/MartinPacker


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to