IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What each field indicates in OUTREC FIELDS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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: 1436
Location: Bangalore,India

PostPosted: Fri Aug 24, 2007 3:14 pm
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
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 Developer


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

PostPosted: Fri Aug 24, 2007 8:31 pm
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:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top