Posted: Wed Apr 27, 2005 9:29 am Post subject: Variable length fields separated by delimiters
Hello,
I have a file, RECFM=FB, RECL=80, and all the words(variable length) have a . as the delimiter. I need to separate these words onto separate lines. Is it possible using JCL? Delimiter . is hex 25. Also a word may continue onto the next line. Thanks!
No SAS and no Rexx too - I was just wondering shouldnt the traditional sort/icetool etc have such a mechanism, or something similar, as comma, etc delimited data could be a possiblity in any situation. _________________ Thanks & Regards,
Manoj.
Usually, when you are dealing with delimited data types, you are dealing with data that is in a specific format, such as ANSI X.12, EDIFACT, or XML. Processing this type of data requires much more than just un-wrapping the files. It typically requires looping structures, data and field validations, sequence counters, etc. Companies that use this type of data typically use products that are designed to handle the data, typically referred to as "data mapping engines". Products along these lines include Gentram Mercator, Cloverleaf, Harbinger, Trusted Link, etc.
(This could probably be much simpler, but the idea is there)
But I'm fascinated that most of the questions here say No Rexx, no common utilities, no programming... nothing but "jcl" which, of course, means a flavor of SORT.
Why is programming not allowed in these questions?
Its not that programming is "not" allowed. I know its possible to do it with a program, but I was looking into other ways to do this. _________________ Thanks & Regards,
Manoj.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Thu May 04, 2006 12:02 pm Post subject:
Here's a DFSORT/ICETOOL job that use the new PARSE function available with z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) to handle these delimited fields. For complete details on all of the new DFSORT and ICETOOL functions available with the April, 2006 PTFs, see:
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum