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
 

 

Syncsort - how to select some of the fields for output

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Syncsort - how to select some of the fields for output
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

Site Director


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

PostPosted: Fri Nov 13, 2009 9:24 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Nov 13, 2009 9:49 pm    Post subject:
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    Post subject:
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    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 Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm


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