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
 

 

How to use INREC

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

New User


Joined: 18 May 2010
Posts: 12
Location: chennai

PostPosted: Fri Jun 04, 2010 3:01 pm    Post subject: How to use INREC
Reply with quote

Hi All,

I have pgm like below

Code:
//STEP040  EXEC  SORTD5                               
//SORTIN   DD  DSN=A515322.DCAP.NT.DCA702.DCAFILE.REC2,
//             DISP=SHR                               
//SORTOUT  DD  DSN=A515322.DCAP.NT.DCA702.EDITED.REC2,
//             DISP=(,CATLG,DELETE),               
//             UNIT=SYSDA,SPACE=(CYL,(800,200),RLSE), 
//             DCB=(RECFM=VB,LRECL=133,BLKSIZE=27998) 
//SYSIN  DD  *                                         
 SORT FIELDS=COPY                                     
 INREC FIELDS=(27,133)                                 
/*




I am getting following error


SYSIN :
SORT FIELDS=COPY
INREC FIELDS=(27,133)
WER276B SYSDIAG= 200594, 1009661, 1009661, 1363575
WER164B 8,884K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 1,012K BYTES USED
WER146B 12K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=VB ; LRECL= 299; BLKSIZE= 27998
WER235A INREC RDW NOT INCLUDED
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE

Can any one explain how to rectify
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Jun 04, 2010 3:13 pm    Post subject: Reply to: How to use INREC
Reply with quote

I believe for a VB dataset the correct syntax would be:

INREC FIELDS=(1,4,27,133)
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Jun 04, 2010 3:14 pm    Post subject:
Reply with quote

Quote:
WER235A INREC RDW NOT INCLUDED

FB and VB records are treated differently by the sort products. You need to include the RDW if you are creating/copying a VB file.
Back to top
View user's profile Send private message
madhus

New User


Joined: 18 May 2010
Posts: 12
Location: chennai

PostPosted: Fri Jun 04, 2010 3:28 pm    Post subject: superk said
Reply with quote

INREC FIELDS=(1,4,27,133)


What are 1,4
Back to top
View user's profile Send private message
madhus

New User


Joined: 18 May 2010
Posts: 12
Location: chennai

PostPosted: Fri Jun 04, 2010 3:29 pm    Post subject:
Reply with quote

Where do we have to include RDW
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Jun 04, 2010 3:30 pm    Post subject:
Reply with quote

madhusudhanreddysurakanti wrote:
Where do we have to include RDW

Kevin has shown you the solution. What is the difference between his code and your code.

Also, you will need to amend the LRECL attribute in your JCL to cater for the RDW.

For your question what are 1,4 .................. the RDW perhaps icon_rolleyes.gif
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 What does this INREC do? Lino Pontes DFSORT/ICETOOL 5 Fri Apr 08, 2016 12:17 am
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


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