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

How to extract particular field from a file using ICETOOL


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Minu Mary Raju

New User


Joined: 20 Nov 2007
Posts: 5
Location: Chennai

PostPosted: Tue Nov 20, 2007 4:28 pm
Reply with quote

i have one input file with a record length of 7549 and i want to extract one field from this file (positioned at col 23 and of length 20) to an output file when the first bit of the filed at position 4907 is populated with 'Y' in input file. Any pointers to the same will be appreciated.

regards,
Minu.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Nov 20, 2007 4:35 pm
Reply with quote

Hi , welcome to forums
Here is the DFSORT/ICETOOL JCL for your requirement
Code:

//STEP1    EXEC PGM=ICETOOL                             
//TOOLMSG  DD SYSOUT=*                                   
//DFSMSG   DD SYSOUT=*                                   
//IN       DD DSN=...   I/P FILE                                   
//OUT      DD DSN=...   O/P FILE                                   
//TOOLIN   DD *                                         
COPY FROM(IN) TO(OUT) USING(CP01)               
/*                                                       
//CP01CNTL DD *                                         
   INCLUDE COND=(4907,1,CH,EQ,C'Y')                   
   OUTREC BUILD=(23,20)                               
/*                                                       
//*                                                     
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top