IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

File aid control card error


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
varalakshmi.G

New User


Joined: 04 Jun 2007
Posts: 55
Location: Hyderabad

PostPosted: Fri Nov 16, 2007 9:46 pm
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Nov 16, 2007 10:17 pm
Reply with quote

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
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Fri Nov 16, 2007 11:13 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top