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 does this INREC do?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Lino Pontes

New User


Joined: 04 Apr 2016
Posts: 2
Location: US

PostPosted: Fri Apr 08, 2016 12:17 am    Post subject: What does this INREC do?
Reply with quote

Please help me understand the following statement:

Code:
INREC FIELDS=(01,18,                     
             21,01,CHANGE=(02,C'7',C'19',
                              C'8',C'19',
                              C'9',C'19'),
                          NOMATCH=(C'20'),
             21,80)


Trimmed and code'd
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Fri Apr 08, 2016 1:32 am    Post subject:
Reply with quote

funny, anyways look here and should be posted under dfsort
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Fri Apr 08, 2016 2:54 am    Post subject:
Reply with quote

Quote:
Hi! This is your First post in our Forums! So please be sure to 1) Use meaningful and descriptive Topic Title 2) Try to post your query in the relevant forum category 3) Make sure your query is not already posted and solved in our forums, Use the Search facility and avoid Reposts! If you are following the above rules, delete this message and post your query here!

I presume you did not delete the message because you did not follow points 2 and 3. Ylu also got point 1 wrong - iINREC is not a JCL statement/keyword/parameter/whatever. It is a DFSORT keyword.

Moved to correct part of the forum.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1238
Location: Richfield, MN, USA

PostPosted: Fri Apr 08, 2016 7:05 pm    Post subject:
Reply with quote

Also, please use Code tags to preserve original spacing:
Code:
INREC FIELDS=(01,18,
 21,01,CHANGE=(02,C'7',C'19',
 C'8',C'19',
 C'9',C'19'),
 NOMATCH=(C'20'),
 21,80)
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Fri Apr 08, 2016 7:15 pm    Post subject: Reply to: What does this INREC do?
Reply with quote

It is adequately described in the manual, but here we go:

Code:
INREC FIELDS=(01,18,                     
             21,01,CHANGE=(02,C'7',C'19',
                              C'8',C'19',
                              C'9',C'19'),
                          NOMATCH=(C'20'),
             21,80)


Firstly, better as BUILD. BUILD is not overloaded, and always means the same thing wherever you see it. This is not so for FIELDS.

Code:
INREC BUILD=(01,18,                     
             21,01,CHANGE=(02,C'7',C'19',
                              C'8',C'19',
                              C'9',C'19'),
                          NOMATCH=(C'20'),
             21,80)


It will make a new version of the current record, sourced from the current record. It will copy the first 18 bytes, then use the 21st byte to make a two-digit value (the first item in the bracket is the length), '7', '8' and '9' will become '19', and all other values will become '20' (the NOMATCH). Then bytes 21 for a length of 80 are copied, completing the new version of the record. Bytes 19 and 20 from the source are ignored, and byte 21, the source for the source of the CHANGE, is repeated as-is.
Back to top
View user's profile Send private message
Lino Pontes

New User


Joined: 04 Apr 2016
Posts: 2
Location: US

PostPosted: Fri Apr 08, 2016 8:49 pm    Post subject:
Reply with quote

Thank you for the prompt reply. Much appreciated.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INREC and OUTREC together in SORT mkk157 DFSORT/ICETOOL 1 Mon Dec 01, 2014 12:29 pm
No new posts Is it possible to have a next line us... boyti ko DFSORT/ICETOOL 12 Mon Nov 24, 2014 4:10 pm
No new posts How to Choose between INREC and OUTREC subdalal SYNCSORT 3 Thu Jun 05, 2014 7:41 pm
No new posts INREC vs OUTREC for empty input file charanmsrit DFSORT/ICETOOL 6 Thu Feb 06, 2014 8:21 pm
No new posts INREC and IFTHEN combination not work... Raymond Sachs JCL & VSAM 3 Tue Mar 06, 2012 12:25 pm


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