IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Thu May 12, 2011 3:05 pm
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: 2455
Location: Hampshire, UK

PostPosted: Thu May 12, 2011 3:06 pm
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: 577
Location: USA

PostPosted: Thu May 12, 2011 7:08 pm
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 Developer


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

PostPosted: Thu May 12, 2011 9:59 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
Search our Forums:

Back to Top