MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Replacing the data from Another File

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Shankarganesh_gopal
Beginner


Joined: 24 May 2005
Posts: 36
Topics: 20
Location: chennai

PostPosted: Mon Apr 09, 2007 3:23 am    Post subject: Replacing the data from Another File Reply with quote

Hi all,

I need a help.

I have two Input file. One has data with Header that contains date and aonther file has file name in it. I want to take the date from Header from file1 and append to the File name that Presents in File2. Could you please help me to resolve this issue.


Input File1:
11111111111;20070403;20061109;070000;CD;pacs.xxx.dta.gb

Input File2:
REMOTE_USER=mtnsftp
MODE=ASCII
REMOTE_FILE=./TRANSFER/IG3956_E302&CYYYY.&CMM
LOCAL_FILE=/scp/out/ig3956_e003

Now I want to replace &CYYYY.&CMM in File2 with '200704' present in File1.

Thanks,
Shankar
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Mon Apr 09, 2007 7:47 am    Post subject: Reply with quote

Shankarganesh_gopal,

1. Do NOT post the same question in multiple forums.

2. SEARCH before posting. This has been discussed earlier. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=7784&highlight=file1value

Hope this helps...

Cheers

Kolusu

PS : Next time you fail to follow the rules you will loose the privileges to post on this board.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group