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 splitting of file using XMITIP abdulrafi TSO/ISPF 3 Mon Mar 27, 2017 3:01 pm
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm


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