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
 
Need to replace the below card with Sort card

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Bhuvanakp

New User


Joined: 29 Aug 2007
Posts: 19
Location: Chennai

PostPosted: Mon Sep 15, 2008 2:30 pm    Post subject: Need to replace the below card with Sort card
Reply with quote

Hi,

I need to replace the below card with Sort card:

$$DD01 COPYALL IF=(1,EQ,X'107C001C'),AND=(5,EQ,C'16540210'),
REPL=(5,C'12525V10'),
IF=(1,EQ,X'107C002C'),AND=(5,EQ,C'16540220'),
REPL=(5,C'12525V20')

Please help me.
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2285
Location: @my desk

PostPosted: Mon Sep 15, 2008 2:52 pm    Post subject:
Reply with quote

Quote:
I need to replace the below card with Sort card:
Bhuvanakp,

Could you please explain what exactly you want to do using sort instead of letting others to make a guess out of the above card. Nobody but you knows exactly what your requirement is.

Please post the input/output file attributes and a few sample records if possible.

Thanks,
Arun
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Sep 15, 2008 4:26 pm    Post subject:
Reply with quote

Hi,
you can try this
Code:
  OPTION COPY                                                           
  INREC IFTHEN=(WHEN=(01,4,BI,EQ,X'107C001C',AND,                       
                      05,6,BI,EQ,C'16540210'),                         
                OVERLAY=(5:C'12525V10')),                               
        IFTHEN=(WHEN=(01,4,BI,EQ,X'107C002C',AND,                       
                      05,6,BI,EQ,C'16540220'),                         
                OVERLAY=(5:C'12525V20'))                               



Gerry
Back to top
View user's profile Send private message
Bhuvanakp

New User


Joined: 29 Aug 2007
Posts: 19
Location: Chennai

PostPosted: Fri Sep 19, 2008 1:50 pm    Post subject: Re: Need to replace FileAid Card with Sort Card
Reply with quote

Hi,

Held up with some other works..

Thanks for the reply.

I have replaced the same like below & it is working fine too.

Code:
 SORT FIELDS=COPY                                                 
 INREC IFTHEN=(WHEN=(1,2,PD,EQ,107,AND,3,2,PD,EQ,001,AND,         
                           5,8,CH,EQ,C'16540210'),                 
              OVERLAY=(5:C'12525V10')),                           
       IFTHEN=(WHEN=(1,2,PD,EQ,107,AND,3,2,PD,EQ,002,AND,         
                           5,8,CH,EQ,C'16540220'),                 
                OVERLAY=(5:C'12525V20'))   


Regards,
Bhuvana
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm

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