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

How to use INREC


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Fri Jun 04, 2010 3:13 pm
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: 8797
Location: Welsh Wales

PostPosted: Fri Jun 04, 2010 3:14 pm
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
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Jun 04, 2010 3:30 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INREC PARSE used to sort a CSV file DFSORT/ICETOOL 2
No new posts INREC IFTHEN question SYNCSORT 2
No new posts Total using INREC DFSORT/ICETOOL 1
No new posts Optimize sort inrec parse DFSORT/ICETOOL 6
No new posts INREC PARSING and dictionary items SYNCSORT 6
Search our Forums:

Back to Top