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 information req.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: sort information req.
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: 2150
Location: At my coffee table

PostPosted: Thu Jun 10, 2010 9:38 pm    Post subject:
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    Post subject: Reply to: sort information req.
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    Post subject: Re: Reply to: sort information req.
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: 2150
Location: At my coffee table

PostPosted: Thu Jun 10, 2010 9:59 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Reply to: sort information req.
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    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 SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm


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