View previous topic :: View next topic |
Author |
Message |
mainframebeginner Beginner
Joined: 11 May 2010 Posts: 14 Topics: 5
|
Posted: Mon May 17, 2010 3:11 pm Post subject: Need Help : How to Edit a PS file using REXX |
|
|
Hi,
Can anyone please guide me how to edit a PS file in mainframe using REXX?
Actually i need to change the date in the file as current date.
How to write a rexx code to do this? can you please post one example?
Any response much Appreciated !! |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
mainframebeginner Beginner
Joined: 11 May 2010 Posts: 14 Topics: 5
|
Posted: Tue May 18, 2010 12:12 pm Post subject: |
|
|
Hi kolusu,
Thanks for your prompt reply. i sincerely appreciate your effort, time and support.
With the links above i have written a code which si writing into PS file.
now my question is ..... i need to change a particular values in the PS file records.
EX: assume the PS file has the data like below
123456789000000000000000000000000000
abcdefghijklmnopqrstuvwxyz000000000000
now, i need to change a2b3c4(180510) with current date.
Can you please advice on this? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Tue May 18, 2010 12:35 pm Post subject: |
|
|
mainframebeginner wrote: |
EX: assume the PS file has the data like below
123456789000000000000000000000000000
abcdefghijklmnopqrstuvwxyz000000000000
now, i need to change a2b3c4(180510) with current date.
Can you please advice on this? |
where is a2b3c4 in that data you have shown? You need to do a better job. Do you want replace every instance of a2b3c4 to current date? and what is the format of the current date ? Is it julian format or Gregorian format? and some other format?
Kolusu |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue May 18, 2010 12:39 pm Post subject: |
|
|
I think some explanation of where or why REXX comes into play here would be helpful also (not exactly a circumstance where I would think you'd want to use it). |
|
Back to top |
|
|
mainframebeginner Beginner
Joined: 11 May 2010 Posts: 14 Topics: 5
|
Posted: Tue May 18, 2010 2:10 pm Post subject: |
|
|
Superk,
I am not sure whether i can write a REXX program to my requirement but i am just trying and exploring the things......
Kolusu >> its not a julian format .... the format is MMDDYY but it should be zigzag way... the way i shown above a2b3c4
how would i explain ....hmmm..... let me put it in this way....... when we do a "hex on" on a PS file we get the records write.... now i need to change the date in one particular place.... it shouldn't be like "C ALL" type....
hope this clarifies a bit understanding my requirement.
Sorry if i am still not clear .... please do reply!! |
|
Back to top |
|
|
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Tue May 18, 2010 9:27 pm Post subject: |
|
|
Suggest you post some of the real data as shown with "hex on". Generate a "code" block by using "{code]" and "{/code]" around the hex data (change the {s to [s).
It will cause your data to look like: Code: |
0000000000000000
0123456789ABCDEF | which preserves alignment and makes the post more readable.
Copy/paste the value from your terminal to the Reply text, place the BBCode around the value, and click Preview. If the result looks like what you want, Submit. _________________ All the best,
di |
|
Back to top |
|
|
Dibakar Advanced
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Wed May 19, 2010 11:21 am Post subject: |
|
|
mainframebeginner,
It is still not clear what you are trying to do and what problems your facing. Show some examples with data before and after the change. Check some posts in 'Utilites' forum to see others are explaining their requirement |
|
Back to top |
|
|
|
|