View previous topic :: View next topic
|
Author |
Message |
rmaruri
New User
Joined: 29 Jun 2005 Posts: 13 Location: USA
|
|
|
|
Hi, I have a requirement to verify whether DDNAME is spaces or valid values.
I will be reading each line of JCL in rexx pgm and need to validate whether DD name (start from 3 to 10 bytes - 8 bytes length) is space or valid value. If the DD Name is present, I have to do the processing. If not, I will skip the process.
Looking for verb which does this function.
Appreciate your help.
Regards,
Ravi |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Can you please eloborate on you requirement?
When you say processing what is that you mean?? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
You need a verb?
How about "WRITE", as in "write the code" |
|
Back to top |
|
|
rmaruri
New User
Joined: 29 Jun 2005 Posts: 13 Location: USA
|
|
|
|
Code: |
//SYSIN DD DSN=FILE1,
// DISP=SHR |
I will be reading the above lines one at a time and have to check for position 3 to 11 and see whether I have DD Name present. First line is having the DD Name, so I have to process the line.
Second line doesn't have the DD name, so I have to skip the line.
Let me know if you need additional examples.
Looking for ways of doing it. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Phew you havent explained enough
Are you just trying to get the DDNAME presentt in the job ??
When you say process what does the code do
When you say process what does the code do
When you say process what does the code do
Based upon the term process the answers would vary a lot
For example just trying to understand
Code: |
//SYSIN DD DSN=FILE1,
// DISP=SHR |
Are you going to assign some variable the value as 'FILE1' and do something or what?? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Why don't you WRITE code to do this?
Oh, you want me to do it?
I require prepayment (as do most others on this board) and my rate is a very modest EUR 600 per day, with a minimum of two days. I also require a full complete spec in LibreOffice's ODT format. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Prino,
As a stiff competition
I could charge to get done with the similar requirement at EUR 100 |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Pandora-Box wrote: |
Prino,
As a stiff competition
I could charge to get done with the similar requirement at EUR 100 |
Probably because of the lower gravity. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Second line doesn't have the DD name, so I have to skip the line. |
What about concatenated datasets?
Suggest you also need to look for DD as well. . . |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What if the DD name is a procedure override such as
Code: |
//LKED.SYSLMOD DD ... |
or something like
|
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
Use the WORD function of rexx to isolate the first blank delimited string of the line. Then check the length.
Code: |
string1 = Word(mylines.x, 1) |
|
|
Back to top |
|
|
|