View previous topic :: View next topic
|
Author |
Message |
Bharath Vikraman
New User
Joined: 06 Aug 2017 Posts: 9 Location: India
|
|
|
|
Can any one give a rexx code to create a ps file by getting the LRECL from user and the input file name should be saved in a format with current date and time?
For eg -- aaaa.t(date).h(time) |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
You need lots more than the LRECL: RECFM and an initial data set size. for starters.
In any event, you will learn much more by using the TSO/E REXX Reference and TSO/E REXX User's Guide manuals for your z/OS release and doing it yourself.
Your other option is to hire a consultant, at the appropriate compensation, of course. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
Study the rexx manual. Learn how to:
1. user PARSE ARG to get user specified parameter (the LRECL)
2. use Address TSO to issue the ALLOCATE command
3. use DATE() built in function to get the current. You probably want the Julian date.
4. Use TIME() built in function to get the current time. You will need to strip out the ':' characters. So also learn the TRANSLATE() function.
5. concatenate the data and time with fixed portions of the name.
I am not sure of your convention, re: t(date) and h(time)
Normally, I would expect to see D for date and T for time:
Code: |
PEDRO.D17219.T103701 |
|
|
Back to top |
|
|
Bharath Vikraman
New User
Joined: 06 Aug 2017 Posts: 9 Location: India
|
|
|
|
Pedro wrote: |
Study the rexx manual. Learn how to:
1. user PARSE ARG to get user specified parameter (the LRECL)
2. use Address TSO to issue the ALLOCATE command
3. use DATE() built in function to get the current. You probably want the Julian date.
4. Use TIME() built in function to get the current time. You will need to strip out the ':' characters. So also learn the TRANSLATE() function.
5. concatenate the data and time with fixed portions of the name.
I am not sure of your convention, re: t(date) and h(time)
Normally, I would expect to see D for date and T for time:
Code: |
PEDRO.D17219.T103701 |
|
thanks for the information Pedro.
I have created it. Now i want have a new TSO command like example "TSO ps 80" which means it will create a ps file with LRECL 80. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Well, go and write it. This is the experts forum so you should know how to do such a simple task. We help solve problems, not write/give program specifications. Locked. |
|
Back to top |
|
|
|