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 

Need Help : How to Edit a PS file using REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
mainframebeginner
Beginner


Joined: 11 May 2010
Posts: 14
Topics: 5

PostPosted: Mon May 17, 2010 3:11 pm    Post subject: Need Help : How to Edit a PS file using REXX Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon May 17, 2010 3:19 pm    Post subject: Reply with quote

mainframebeginner,

Read the following topics

http://www.mvsforums.com/helpboards/viewtopic.php?t=5367

http://www.mvsforums.com/helpboards/viewtopic.php?t=5275


once you get a hang of the edit macro's I suggest you read these topics

http://www.mvsforums.com/helpboards/viewforum.php?f=24

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mainframebeginner
Beginner


Joined: 11 May 2010
Posts: 14
Topics: 5

PostPosted: Tue May 18, 2010 12:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue May 18, 2010 12:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue May 18, 2010 12:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
mainframebeginner
Beginner


Joined: 11 May 2010
Posts: 14
Topics: 5

PostPosted: Tue May 18, 2010 2:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Tue May 18, 2010 9:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Wed May 19, 2010 11:21 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF 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