|
|
| Author |
Message |
meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 70 Location: India
|
|
|
|
Trying to understand
OUTREC FIELDS=(1:21,80,X,82:177,10,92:1,200)
Please help. |
|
| Back to top |
|
 |
References
|
|
 |
arcvns
Senior Member
Joined: 17 Oct 2006 Posts: 756 Location: Chennai, India
|
|
|
|
| Do you have a manual....?? |
|
| Back to top |
|
 |
meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 70 Location: India
|
|
|
|
No, i am browsing the web, but different examples,
could you pls provide me the manual? and let me know what exactly this step is doing. |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Moderator
Joined: 15 Feb 2005 Posts: 4613 Location: San Jose, CA
|
|
|
|
The DFSORT books are available at:
www.ibm.com/systems/support/storage/software/sort/mvs/srtmpub.html
| Code: |
OUTREC FIELDS=(1:21,80,X,82:177,10,92:1,200)
|
OUTREC reformats the input records as follows:
1:21,80 - copies input positions 21-100 to output positions 1-80
X - inserts a blank at output position 81 (not needed since 82: does the same thing).
82:177,10 - copies input positions 177-186 to output positions 82-91
92:1,200 - copies input positions 1-200 to output positions 92-291.
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. |
|
| Back to top |
|
 |
meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 70 Location: India
|
|
|
|
| Thanks a lot. |
|
| Back to top |
|
 |
meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 70 Location: India
|
|
|
|
Frank,
Please check my understanding, correct me where i am wrong--
The soultion by u--
1:21,80 - copies input positions 21-100 to output positions 1-80
X - inserts a blank at output position 81 (not needed since 82: does the same thing).
82:177,10 - copies input positions 177-186 to output positions 82-91
92:1,200 - copies input positions 1-200 to output positions 92-291.
**********
21+80-1 and u are saying 21-100 to 1-80( as X is between and next field is at 82)
177+10-1 and 177-186 to 82-91(as next field is at 92)
1+200-1 and 1-200 to 92-291(please let me know about 291, is it(200+92-1(1 as 92:1)) or something else)
Please let me know. |
|
| Back to top |
|
 |
meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 70 Location: India
|
|
|
|
One more thing--
In the existing layout on which sort is done there 1:200 is the label for the copybook like--
--------- FIELD LEVEL/NAME ---------- -PICTURE- -NUMBER START END LENGTH
SDNIRPS 1 200 200
5 SPT-PIN-NBR X(12) 1 1 12 12
5 SPT-FILLER1 XX 2 13 14 2
Please let me know how how will i pre pare new copy book wih this. |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Moderator
Joined: 15 Feb 2005 Posts: 4613 Location: San Jose, CA
|
|
|
|
Meenakshi,
I''m not sure I understand what you're asking.
| Quote: |
| please let me know about 291, is it(200+92-1(1 as 92:1)) or something else) |
It's 92+200-1 = 291.
92 is the output start position. 200 is the length. |
|
| Back to top |
|
 |
arcvns
Senior Member
Joined: 17 Oct 2006 Posts: 756 Location: Chennai, India
|
|
|
|
| Quote: |
| 1+200-1 and 1-200 to 92-291(please let me know about 291, is it(200+92-1(1 as 92:1)) or something else) |
First 200 characters get copied to the position from 92 to 291.
You ll find more info in the manual as Frank suggested.
Thanks,
Arun |
|
| Back to top |
|
 |
|
|