Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What each field indicates in OUTREC FIELDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sanjayis01
Warnings : 1

New User


Joined: 13 Jun 2007
Posts: 55
Location: banaglore

PostPosted: Fri Aug 24, 2007 2:52 pm    Post subject: What each field indicates in OUTREC FIELDS
Reply with quote

Hi can any one please suggest me what each field indicates.
OUTREC FIELDS=(1:1,5, 6:6,1,CHANGE(1,C'U',C'C',C'D',C'C'),NOMATCH=(6,1))
Back to top
View user's profile Send private message

SCANDY

New User


Joined: 08 Aug 2007
Posts: 10
Location: Dalian, China

PostPosted: Fri Aug 24, 2007 3:07 pm    Post subject:
Reply with quote

Quote:
OUTREC FIELDS=(1:1,5, 6:6,1,CHANGE(1,C'U',C'C',C'D',C'C'),NOMATCH=(6,1))

<pos1:pos2,length>
Pos1-->the pos of the out record
Pos2-->the pos from the input record
length--> the number of bytes selected from the input record from Pos2
p, m,CHANGE=(v,find,set,...) to give the position and length of the input field, the length of the output field, and the &#8243;table&#8243; consisting of pairs of find constants, and set constants or set fields.
NOMATCH=(set) to set the output value when an input field value does not match any of the find constants.

for your statement,It will select the first 6 bytes from the input as the output record, and l change 'U' to 'C' and 'D' to 'C' in the position 6 of the input file, for others, just remain the same.
Back to top
View user's profile Send private message
sanjayis01
Warnings : 1

New User


Joined: 13 Jun 2007
Posts: 55
Location: banaglore

PostPosted: Fri Aug 24, 2007 3:10 pm    Post subject:
Reply with quote

Thanks a lot scandy
Back to top
View user's profile Send private message
SCANDY

New User


Joined: 08 Aug 2007
Posts: 10
Location: Dalian, China

PostPosted: Fri Aug 24, 2007 3:14 pm    Post subject:
Reply with quote

sorry,
Quote:
&#8243;table&#8243;
stands for "table", it seems to be tanslated automatically.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Fri Aug 24, 2007 3:14 pm    Post subject:
Reply with quote

Sanjay,

I belive you had copied the sort card from one of the previous posts. At the bottom of the post, user dbzTHEdinosauer had provided the link for the sort material.
Back to top
View user's profile Send private message
sanjayis01
Warnings : 1

New User


Joined: 13 Jun 2007
Posts: 55
Location: banaglore

PostPosted: Fri Aug 24, 2007 3:33 pm    Post subject:
Reply with quote

yes, i didnt get that , thats why i copied.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Aug 24, 2007 8:31 pm    Post subject:
Reply with quote

Sanjay,

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. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us