Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1894
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us