MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

delete records using Filadaid or any other Utilities in JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
ldushkin
Beginner


Joined: 05 Apr 2006
Posts: 56
Topics: 20

PostPosted: Fri Sep 01, 2006 9:44 am    Post subject: delete records using Filadaid or any other Utilities in JCL Reply with quote

Hi,

Can we delete records using Filadaid or any other Utilities in JCL

ex

input file
Code:

---------+---------+---------+---------+---------+
      COUNT  RQST_STUS_CD  RQST_STUS_DESC         
---------+---------+---------+---------+---------+
       6520             3  SUCCESSFUL             
       2844             4  REJECTED               

output file
Code:

       6520             3  SUCCESSFUL           
       2844             4  REJECTED             

thank you for your help
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Fri Sep 01, 2006 9:53 am    Post subject: Reply with quote

Try this untested job

Code:


//STEP010  EXEC PGM=FILEAID                             
//DD01     DD *                                         
---------+---------+---------+---------+---------+       
COUNT RQST_STUS_CD RQST_STUS_DESC                       
---------+---------+---------+---------+---------+       
6520 3 SUCCESSFUL                                       
2844 4 REJECTED                                         
//DD01O    DD SYSOUT=*                                   
//SYSPRINT DD SYSOUT=*                                   
//SYSIN    DD *                                         
$$DD01 DROP IF=(1,EQ,C'-------'),                       
          ORIF=(1,EQ,C'COUNT')                           
/*                                                       
//

________
genetically modified food


Last edited by coolman on Sat Feb 05, 2011 1:52 am; edited 1 time in total
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12367
Topics: 75
Location: San Jose

PostPosted: Fri Sep 01, 2006 9:54 am    Post subject: Reply with quote

ldushkin,

If your header appers only once then you can use the option skiprec from sort and skip the titles as shown below. However I am guessing that it is the output of spufi then you have the headers for every page. So in that case I suggest that you use DSNTIAUL (unload utility) which will not write out the headers.

Code:

//STEP0100 EXEC PGM=SORT                         
//SYSOUT   DD SYSOUT=*                           
//SORTIN   DD *                                   
---------+---------+---------+---------+---------+
      COUNT  RQST_STUS_CD  RQST_STUS_DESC         
---------+---------+---------+---------+---------+
       6520             3  SUCCESSFUL             
       2844             4  REJECTED               
//SORTOUT  DD SYSOUT=*                           
//SYSIN    DD *                                   
  SORT FIELDS=COPY                               
  OPTION SKIPREC=3                               
/*                                               


Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ldushkin
Beginner


Joined: 05 Apr 2006
Posts: 56
Topics: 20

PostPosted: Fri Sep 01, 2006 10:25 am    Post subject: Reply with quote

Thank you all,
Yes this is output of spufi.

Thank you again
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group