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 solution for the sort

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

New User


Joined: 29 May 2007
Posts: 50
Location: hyderabad

PostPosted: Fri Nov 20, 2009 7:27 am    Post subject: Need solution for the sort
Reply with quote

I have an input file like:

Code:
001122       PIGGOTT HOSPITAL            2009-10-012009-10-01
004017    FT. SMITH RIM & BOW CO.                           
004951      BANK OF LAKE VILLAGE         2009-10-012009-10-01


for the second record at position 42 position there is no data

in my outfile I want only those records which have data at 42 onwards...
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Nov 20, 2009 8:07 am    Post subject: Reply to: Need solution for the sort
Reply with quote

Can't you just OMIT any records where column 42 is a space?
Back to top
View user's profile Send private message
bnveena

New User


Joined: 29 May 2007
Posts: 50
Location: hyderabad

PostPosted: Fri Nov 20, 2009 8:36 am    Post subject: Reply to: Need solution for the sort
Reply with quote

yeh.... i got it by omiting the records in the sort.. thnks
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 20, 2009 9:55 am    Post subject:
Reply with quote

Hello,

Does your solution handle the situation where 42 is blank but 43 has data? Is this even a possibility?

When you post jcl, code, data, screen info, etc it is best to use the "Code" tag. This will preserve alignment and improve readability. The original data has been "Code"d.
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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm


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