Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

batch Fileaid how to use CO 1

Status
Not open for further replies.

mutual33

Programmer
Jul 3, 2002
5
US
I need to select all records from file that have a string,for example 'jj'.File format is variable.It must be done in batch. I tried FileAid(batch) using CO relational operand but was not succesful(got message-something wrong with control card). Is anybody know how control card looks like ? Is there any other way to this task witout writing program ? Please help....
My control card looks like this

$$dd01 copy if=(1,co,c'jj')
 
Hi Mutual,
It's a long time since I used fileaid in batch and I don't recognise the CO operand. I think that if I had wanted to code this I would have used EQ ie.

COPY IF=(1,EQ,C'jj')

As I said, it's been a while, adn I've no idea where my manuals have gone, but HTH
Marc
 
EQ operand in your card will find 'jj' in position 1 only.

CO operand('contains') looking for this string in any place of record.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top