Outrec Build



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

Outrec Build

Postby swatmf14 » Fri Dec 05, 2014 1:20 am

HI
I am using Outrec Build for reformatting ip file
I want to change all arrangements ending with A with First like B with Second. My problem is i have so many arrangements ending with A,B,C. I tried the code below which is working but i want know can i use wild entried e.g %%A or %%B for this ? Instead of C'AAA' or any other method is there ?
// sysin dd *
Sort fields = copy
Outrec build = ( 1,25,tran=ltou,26,3, -
                            Change = (c'AAA',C'First'), -
                                               (c'CAA',C'First'), -
                                               (C'ABB',C'Second'),-
                             Nomatch =(26,3))

/*
swatmf14
 
Posts: 11
Joined: Fri Jan 17, 2014 10:06 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Outrec Build

Postby swatmf14 » Fri Dec 05, 2014 10:17 am

Can anyone please help me ?
swatmf14
 
Posts: 11
Joined: Fri Jan 17, 2014 10:06 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Outrec Build

Postby BillyBoyo » Fri Dec 05, 2014 3:02 pm

If you consult the index in the manual, you'll see there are no wildcards.

There are several ways to do what you want, for instance you can test position 28 and if it is A B or C, make 26 and 27 blank.

When posting code, please past from your emulator when possible. SORT does not like lowercase, or the spacing you have given, or you missing out necessary items (like length). We don't want to spend time chasing typos.

Good work on finding CHANGE, it is very powerful. SORT is high-performance. Don't expect it to give you things like wildards which would suck up CPU at run-time when you can code very simply and with only typing a few more characters.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post