Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to omit records in file aid

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
View previous topic :: :: View next topic  
Author Message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 64

PostPosted: Tue Jul 25, 2006 4:05 pm    Post subject: how to omit records in file aid
Reply with quote

I am reading a file through file aid in JCL. I want to write the records to another by adding date to the input file, but i dont want to add the date to the header and trailer records. How to do this?


The file aid code i am using is like this

$$DD01 USER MOVE=(1,80,1),
MOVE=(49,C'20060725'),
WRITE=OUT01

If i use this all the records will be copied with the date in column 49. I dont want date in the header and trailer records.

Can any one help me. I am waiting for your replies.
Back to top
View user's profile Send private message

cpuhawg

Active User


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

PostPosted: Tue Jul 25, 2006 6:23 pm    Post subject: Re: how to omit records in file aid
Reply with quote

You need to do a COPYALL:

Code:

//FILEAID EXEC PGM=FILEAID                             
//SYSPRINT DD  SYSOUT=*                                 
//DD01     DD DSN=INPUT.FILE,DISP=OLD                   
//DD01O    DD DSN=OUTPUT.DATASET,                       
//            DISP=(NEW,CATLG),                         
//            UNIT=(SYSDA),SPACE=(TRK,(5,5),RLSE),     
//            DCB=(RECFM=FB,LRECL=80,BLKSIZE=27920)     
//SYSIN    DD  *                                       
$$DD01 COPYALL IF=(1,NE,C'HEADER'),                     
          IF=(1,NE,C'TRAILER'),                         
          MOVE=(1,80,1),                               
          MOVE=(49,C'20060725')                         


This utility copies all records to DD01O and assumes the word HEADER and TRAILER are in position 1 of the input file.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us