Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : programming pearls - Good judgement comes from experience, and experience comes from bad judgement.

Google
 
Web mainframegurukul.com


Visit mainframe jobs page to search mainframes jobs on top job websites.


how to sort a flat file skipping first record?

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL
  View previous topic :: View next topic  
Author Message
ShilpaA
Member


Joined: 24 Sep 2009
Posts: 2
Location: Pune

PostPosted: Tue Feb 02, 2010 9:46 pm    Post subject: how to sort a flat file skipping first record? Reply with quote

I want to sort a flat file let's say with 10 records but I don't want first record from sort. I tried with following sort card but got syntax error,
sort fields=(1,5,ch,a),
skiprec=01

pls help....
_________________
Shilpa
Back to top
View user's profile Send private message Send e-mail

Frank Yaeger
Moderator


Joined: 18 Feb 2006
Posts: 443
Location: San Jose, CA

PostPosted: Tue Feb 02, 2010 9:58 pm    Post subject: Reply with quote

The correct DFSORT control statements would be:

Code:

//SYSIN DD *
   SORT FIELDS=(1,5,CH,A)
   OPTION SKIPREC=1
/*


or

Code:

//SYSIN DD *
  SORT FIELDS=(1,5,CH,A),   
  SKIPREC=01               

_________________
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort/


Last edited by Frank Yaeger on Mon Feb 22, 2010 11:26 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Hi plz help me out 4 Guest 4346 Tue Jun 16, 2009 5:58 pm
dbzTHEdinosauer View latest post
No new posts IAM BEGINNER IN JCL ...PLZ HELP ME 2 Guest 9848 Sun May 14, 2006 6:10 pm
Guest View latest post
No new posts File-Aid Help 1 Nicholas 7269 Thu Apr 13, 2006 2:12 pm
rangab View latest post
No new posts Search Batch file-aid help 6 frenchman 8072 Tue Mar 28, 2006 5:30 pm
Guest View latest post
No new posts executing java program thru JCL 1 Guest 5900 Fri Mar 17, 2006 10:14 am
arrbee View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB