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 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 Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts Getting information (RECFM/LRECL/BLKS... Tim Van Holder COBOL Programming 3 Wed Mar 14, 2018 2:10 pm
No new posts How to Generate JCL using Sort naveen katkuri DFSORT/ICETOOL 7 Tue Mar 13, 2018 3:50 pm

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