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

sort information req.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
baljinders

New User


Joined: 21 Aug 2006
Posts: 72

PostPosted: Thu Jun 10, 2010 9:19 pm
Reply with quote

Hi,

I have to extract data of a particular date from a varibale length file. What should be the sort card for this ?

Code:
//SYSIN   DD *                             
        SORT FIELDS=COPY                   
        INCLUDE COND=(59,8,CH,EQ,C'20100610')


The date filed is defined as s9(9) compe-3.

In file aid , when i browse the file, the position of the filed is given as
Code:
5/PS   
(59-63)
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Jun 10, 2010 9:38 pm
Reply with quote

Something like INCLUDE COND=(59,5,PD,EQ,20100610)
Back to top
View user's profile Send private message
baljinders

New User


Joined: 21 Aug 2006
Posts: 72

PostPosted: Thu Jun 10, 2010 9:55 pm
Reply with quote

Thanks CICS Guy,

does that mean i don't have to worry the 4 byte RDW while specifing the field postion in the sort card as this is a VBS file ?
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Thu Jun 10, 2010 9:57 pm
Reply with quote

baljinders wrote:
Thanks CICS Guy,

does that mean i don't have to worry the 4 byte RDW while specifing the field postion in the sort card as this is a VBS file ?


You DO need to consider the RDW and add 4 bytes to the actual position for Variable length files.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Jun 10, 2010 9:59 pm
Reply with quote

Good point, I'm not familiar with file aid and missed that.... icon_redface.gif
Back to top
View user's profile Send private message
baljinders

New User


Joined: 21 Aug 2006
Posts: 72

PostPosted: Thu Jun 10, 2010 10:02 pm
Reply with quote

That means my sort card will become
Include cond=(63,5,PD,EQ.C'20100610')

instead of
Include cond=(59,5,PD,EQ,C'20100610')

as my field is S9(9) Comp-3.

Right ?
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Thu Jun 10, 2010 10:18 pm
Reply with quote

baljinders,


No, it should be

Code:

Include cond=(63,5,PD,EQ,20100610)
Back to top
View user's profile Send private message
baljinders

New User


Joined: 21 Aug 2006
Posts: 72

PostPosted: Thu Jun 10, 2010 10:22 pm
Reply with quote

Thanks a ton CICS Guy and Skolusu for your replies. I'll let you guys know the outcome once the job gets done.

Thanks again...
Back to top
View user's profile Send private message
baljinders

New User


Joined: 21 Aug 2006
Posts: 72

PostPosted: Fri Jun 11, 2010 7:22 pm
Reply with quote

Thanks Guys,

It worked and i got the desired resutls

Thanks again
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Alternative of JoinKeys in SORT DFSORT/ICETOOL 2
No new posts Sort SMF records? SYNCSORT 6
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts Simplify SORT CARD to combine INREC a... DFSORT/ICETOOL 6
No new posts Sort card to generate the DSN DFSORT/ICETOOL 17
Search our Forums:


Back to Top