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

Syncsort - how to select some of the fields for output


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Fri Nov 13, 2009 8:51 pm
Reply with quote

murmohk1 - in an unrelated topic wrote:
You cannot view few columns of a flat file. Use DFSORT for reformatting or extracting the required columns into another file. Sample JCL is as -

Code:
//sortin dd dsn=your.ipfile,disp=shr
//sortout dd dsn=your.opfile,disp=.......
//sysin dd *
   option copy
   outrec fields=(1,20,             * column 1
                        35,21,           * column 2
                        100,25)         * column 3
/*


The OP file contains only the required fileds


Hi,

I tried this, I am getting a error message " OUTREC RDW NOT INCLUDED "

Could you please help me ?

Here is my code;
//SYSIN DD *
OPTION COPY
OUTREC FIELDS=(7,6,
42,3,
244,4)
/*
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Nov 13, 2009 9:24 pm
Reply with quote

Hello,

Why do you believe this is a tso/ispf question?

Which sort product is used on your system?

Why add your question as a reply to a topic that has been inactive for 2.5 years. . .
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Fri Nov 13, 2009 9:43 pm
Reply with quote

Hi Dick,

SYNCSORT FOR Z/OS is used in my system...i just searched in web for my doubt, found this page..replied it...did not check this is a TSO or REXX or other forum.

Sparrow.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Nov 13, 2009 9:49 pm
Reply with quote

Hello,

You now have your own topic icon_smile.gif

If your input is a variable length file, positions 1-4 are the RDW. The actual data begins in pos 5.
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Fri Nov 13, 2009 10:11 pm
Reply with quote

Thanks Dick
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 Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
Search our Forums:

Back to Top