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
 

 

need a column of a large file to put in a new file

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

New User


Joined: 16 May 2008
Posts: 36
Location: Kolkata,India

PostPosted: Wed Feb 10, 2010 1:59 pm    Post subject: need a column of a large file to put in a new file
Reply with quote

Hi,

I need to put a particular column of an I/P file to a new file (from 201th column of length 6 )
I am using the below SYSIN for the sort card but getting an error.

Code:
//SYSIN DD *             
  SORT FIELDS=COPY       
  OUTREC FIELDS=(1:201,6)
/*                       


error
Code:
WER235A  INREC    RDW NOT INCLUDED
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: Wed Feb 10, 2010 2:03 pm    Post subject:
Reply with quote

1) This is SYNCSORT so should be posted in the JCL forum.

2) The error message tells you exactly what the problem is. Have you bothered to read the product documentation for yourself.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Thu Feb 18, 2010 1:04 am    Post subject:
Reply with quote

Kamlesh,

Assuming your original input file was variable length and you want a variable length output file, then you can code the following:
Code:
//SYSIN DD *             
  INREC FIELDS=(1,4,5:201,6)
  SORT FIELDS=COPY       
/*         

However, if you want a fixed-length output file, then you can code this instead:
Code:
//SYSIN DD *   
  SORT FIELDS=COPY       
  OUTREC FIELDS=(201,6),CONVERT
/*         

or
Code:
//SYSIN DD *   
  SORT FIELDS=COPY       
  OUTREC FIELDS=(201,6),VTOF
/*         
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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