|
View previous topic :: View next topic
|
| Author |
Message |
varalakshmi.G
New User
Joined: 04 Jun 2007 Posts: 55 Location: Hyderabad
|
|
|
|
hi
//SYSIN DD *
$$DD01 COPY IF=(1,EQ,C'0'),
AND=((2,7,NE,C'MASKING'),
OR=(2,6,NE,C'SORTED'),
OR=(2,6,NE,C'USERID'),
OR=(2,4,NE,C' '))
REPL=(1,C' ')
/*
above control card has an error with file aid utility.this is for replacing the 1st charector with space if the conditions are satisfying.
please correct it na......... |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
| varalakshmi.G wrote: |
hi
//SYSIN DD *
$$DD01 COPY IF=(1,EQ,C'0'),
AND=((2,7,NE,C'MASKING'),
OR=(2,6,NE,C'SORTED'),
OR=(2,6,NE,C'USERID'),
OR=(2,4,NE,C' '))
REPL=(1,C' ')
/*
above control card has an error with file aid utility.this is for replacing the 1st charector with space if the conditions are satisfying.
please correct it na......... |
It would be helpful if you would show us the error message, job output, etc. and please use code to maintain the spacing. |
|
| Back to top |
|
 |
cpuhawg
Active User

Joined: 14 Jun 2006 Posts: 331 Location: Jacksonville, FL
|
|
|
|
They probably should looks something like:
| Code: |
//SYSIN DD *
$$DD01 COPY IF=(1,EQ,C'0'),
AND=(2,7,NE,C'MASKING'),
AND=(2,6,NE,C'SORTED'),
AND=(2,6,NE,C'USERID'),
AND=(2,4,NE,C' '),
REPL=(1,C' ')
/*
|
The logic for NE (not equal to) should be connected with AND, not IF.
If you said position 1 NE C'A' OR position 1 NE C'B', the OR implies that either condition can be TRUE to select a record. If you had a C'B' in position 1, then it is NE (not equal) to C'A' and the record would be selected.
If you said position 1 NE C'A' AND position 1 NE C'B', then if either an C'A' or C'B' is in position 1 of a record, it would not be selected. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|