Page 1 of 1

Outrec Build

PostPosted: Fri Dec 05, 2014 1:20 am
by swatmf14
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))

/*

Re: Outrec Build

PostPosted: Fri Dec 05, 2014 10:17 am
by swatmf14
Can anyone please help me ?

Re: Outrec Build

PostPosted: Fri Dec 05, 2014 3:02 pm
by BillyBoyo
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.