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

Reg: Formatting the output.


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

New User


Joined: 03 Aug 2006
Posts: 42
Location: Chennai

PostPosted: Sat Dec 22, 2007 5:37 pm
Reply with quote

Hi,

After copying a data from file1 i want to write it in a new file and in a new column using file-aid.

for e.g:

File1:

123455677 Number = 10


In this file i want to copy the "Number = 10" and write it a another file like

File2:

Number = 10.



Someone please guide me to do that.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Dec 24, 2007 2:22 am
Reply with quote

MK,

You can use FILEAID/SORT Utilities to create the output file. Please provide us few more details on your requirement. Do you want all the fields starting from column 11 till the end to be copied to the output file?
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Mon Dec 24, 2007 11:48 am
Reply with quote

Code:
//STEP0100 EXEC PGM=FILEAID
//SYSPRINT DD  SYSOUT=*     
//DD01     DD  *           
----+----1----+----2----+---
123455677 NUMBER = 10       
/*                         
//DD01O    DD  SYSOUT=*     
//SYSIN    DD  *           
$$DD01 COPY MOVE=(1,11,11) 
/*                         


output DD01O:
Code:
NUMBER = 10
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts XDC SDSF output to temp dataset CLIST & REXX 4
Search our Forums:

Back to Top