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
 

 

Reg: Formatting the output.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
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    Post subject: Reg: Formatting the output.
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: 1288
Location: Chennai, India

PostPosted: Mon Dec 24, 2007 2:22 am    Post subject: Reply to: Reg: Formatting the output.
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    Post subject:
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    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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am


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