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
 

 

Sort to find records which have “Y” in the 7th position

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
sandhya89

New User


Joined: 12 May 2011
Posts: 1
Location: chennai

PostPosted: Thu May 12, 2011 2:18 pm    Post subject: Sort to find records which have “Y” in the 7th position
Reply with quote

Write a sort for the below requirement:

a) To get the current system date in the output file
b) To get the records which have “Y” in the 7th position of the input file

need a help regarding this
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: Thu May 12, 2011 3:05 pm    Post subject:
Reply with quote

And you haven't given us the standard details.

Input and output files DSORG, RECFM, LRECL
Sort product and release level that you have installed.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1755
Location: UK

PostPosted: Thu May 12, 2011 3:06 pm    Post subject:
Reply with quote

Get the system date in the output file - as a record? or as part of the dataset name?

For the other point - read the manual particularly about COPY and the INCLUDE keyword
Back to top
View user's profile Send private message
sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 578
Location: USA

PostPosted: Thu May 12, 2011 7:08 pm    Post subject:
Reply with quote

sandhya89
Quote:

a) To get the current system date in the output file
b) To get the records which have “Y” in the 7th position of the input file

Where/which position do you want system date? Did you mean header or trailer records or populate system date at certain position for all records?

Please provide RECFM and LRECL for input/output files. Also,if possible provide a sample input and expected output.

Thanks,
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Thu May 12, 2011 9:59 pm    Post subject:
Reply with quote

narmadha,

You haven't given enough details for anyone to help you.

Please show an example of the records in your input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input file.
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 -> DFSORT/ICETOOL 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 Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


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