The 41st position has a value "0". I want it to be replaced with "2010", current year. If the same JCL is used in 2020, the "0" should be replaced with "2020"........
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Posted: Fri Jan 08, 2010 2:47 pm Post subject: not working for other values
Hi, Frank.
Thank you very much for the quick reply. This solution is working only on value '0' in 41st position. How to modify it for other than '0' value in 41st position?
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Jan 08, 2010 5:39 pm Post subject:
Quote:
This solution is working only on value '0' in 41st position.
Yes, that's what you asked for in your original post, so that's what I gave you.
Quote:
How to modify it for other than '0' value in 41st position?
Your changed requirement isn't clear. Do you want to check for only certain characters in 41? If so, you can use SS notation, e.g. to check for 0-2:
Code:
WHEN=(41,1,SS,EQ,C'012'),
or do you want to check for any nonblank character in 41? If so, you can use:
Code:
WHEN=(41,1,CH,NE,C' '),
or do you want something else? If so, what exactly?
Quote:
How to prefix only the first three digits of current year (201) in front of '0' or '1' or '2'? Is this possible?
You can use symbol subset notation for that:
Code:
//SYMNAMES DD *
CURYR,S'&YR4(1:3)'
That will set CURYR to the first 3 characters of the current 4-digit year. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Posted: Sun Jan 10, 2010 10:51 am Post subject: using DFSORT v1.5
Hi,
Thanks for the details. The info is really useful to me. I would like to know why the SYMNAMES with "CURYR,S'&YR4'" does not work with DFSORT v1.5? Why that restriction? It shows "$" sign right below the "S" character after job ends with MAXCC=16.
I also would like to know, after changing the value from "0006" to "2010006", how to convert it to "2010-01-06" using DFSORT v1.5?
Thanks for your patience. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Mon Jan 11, 2010 12:07 pm Post subject:
S constants have been available with z/OS DFSORT V1R5 since April, 2006. So your site must be very behind in installing PTFs. Ask your System Programmer to install z/OS DFSORT V1R5 PTF UK51706 (Nov, 2009). That will get you up to date on all of the DFSORT functional PTFs.
Quote:
I also would like to know, after changing the value from "0006" to "2010006", how to convert it to "2010-01-06" using DFSORT v1.5?
Please show an example of your input records and what you expect for output for this requirement. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Jan 12, 2010 11:50 am Post subject:
Quote:
We are using DFSORT v1.5. No upgrades to be done till 2011.
As I said, it's not that you're using DFSORT V1R5 - it's that you don't have the functional PTFs applied. In order to see if/how you can do what you want with your level of DFSORT, I need to know what that level is. So please run this DFSORT job and post the //SYSOUT messages you receive.
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Thu Jan 14, 2010 1:26 pm Post subject:
If I understand it correctly, you want to change the year and also convert a julian date (ccyyddd) to a gregorian date (ccyy-mm-dd).
You can certainly do that with the latest level of DFSORT (Nov, 2009), but your site is very behind in installing DFSORT functional PTFs, so I don't see a way to do it at your level. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Jan 15, 2010 11:44 am Post subject:
z/OS DFSORT V1R5 is used for z/OS 1.8 and 1.9. z/OS DFSORT V1R10 is used for z/OS 1.10 and 1.11. You don't need a new version of DFSORT for the new functions - you just need to install the appropriate Nov, 2009 DFSORT PTF on your current version of DFSORT.
At this point, I'm not sure exactly which requirement we're talking about. Is it the one where you have 0, 1, 2 in 41 and you want to insert the first 3 digits of the current year, and/or is it the one where you want to change the julian date to a gregorian date, or what? For the situation you want the job for, please show an example of the records in the input file and what you expect for output, and explain the "rules" for getting from input to output. Once I know what you want, I can show you the job. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Posted: Sun Jan 17, 2010 9:28 am Post subject: your guess is correct.
Hi, Frank.
Quote:
the one where you have 0, 1, 2 in 41 and you want to insert the first 3 digits of the current year, and/or is it the one where you want to change the julian date to a gregorian date, or what?
Yes. Your guess is correct. I want to achieve the both. For requirement one, you have provided the solution. Would you please provide it for requirement two?
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
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