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: 1722
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 find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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