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

Exclude selected* members while File aid copy


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

New User


Joined: 10 Jul 2014
Posts: 1
Location: India

PostPosted: Thu Jul 10, 2014 8:35 pm
Reply with quote

# I need to exclude selected* PDS members while copying in file-aid batch.
# The exclusion is based on particular strings presence inside the source PDS member.
#Member should be copied only when the mentioned string is NOT present in the source PDS member.

JCL :-

SYSIN DD *
$$DD01 COPYMEM IF=(1,0,C'&PLIB')
MEMBERS=*
OUT=0
This will copy PDS member if my string '&PLIB' is present. i need reverse as in copy when this string is not present. Such option is not available when we search whole line i.e EQ or NE in --> IF=(1,0,C'STR')

I tried using USER function however it only drops the line from the member and copy it. I need to drop member it self. Same is case with DROP.

Please suggest.
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 Unable to interpret a hex value to De... COBOL Programming 4
No new posts Copy only TEXT or String from a record SYNCSORT 4
No new posts how to eliminate null indicator value... DB2 7
No new posts Use Copy Utility DB2 7
No new posts Format Binary file to EBCDIC JCL & VSAM 4
Search our Forums:

Back to Top