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
This topic is locked: you cannot edit posts or make replies. how to get Job information from IOF u... rsshanmugam CLIST & REXX 13 Mon Feb 05, 2018 4:22 pm
No new posts Why is SORT rearranging records that ... cschablow DFSORT/ICETOOL 4 Wed Jan 24, 2018 10:14 pm
No new posts Need to obtain VTOC information via R... djeffbland CLIST & REXX 10 Thu Jan 11, 2018 4:13 am
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts JCL INFORMATION - Need to know what t... gauravd01 JCL & VSAM 8 Wed Nov 29, 2017 12:54 pm

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