View previous topic :: View next topic
|
Author |
Message |
apandey
New User
Joined: 31 Aug 2009 Posts: 73 Location: Mumbai
|
|
|
|
How can I find the position in a particular record/field where space is found? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Are you looking for the position of the first space? All spaces if there are multiple? The position of the first space of trailing spaces?
If you post some sample data (using the "Code" tag for alignment and readability) showing the result(s) you want from that sample data, it will help someone help you.
Also, please mention the recfm and lrecl of the data. |
|
Back to top |
|
|
apandey
New User
Joined: 31 Aug 2009 Posts: 73 Location: Mumbai
|
|
|
|
Actually my requirement is, my input file contains many records/fields,
what my cobol code does is,it checks length of each and every field and writes in output file. Now i wanted to do this thru JCL SORT, is it possible?
can any one please tell me? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
can any one please tell me? |
No one can tell you until you describe what you want to do in detail.
Your "explanation" of what you want to do is not helpful.
Show an example of the records in your input file and what you expect for output. Explain the "rules" for getting from input to output. Give the RECFM and LRECL of the input file. Give the starting position, length and format of all relevant fields. |
|
Back to top |
|
|
|