Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us