Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PARSE VALUE DATE Error 1

Status
Not open for further replies.

Gringgo

Programmer
May 14, 2004
2
US
I have a REXX program that is using the PARSE VALUE DATE function to convert a date. It was working fine and all of a sudden I am getting the following error.

IRX0040I Error running WCS675R1, line 79: Incorrect call to routine

Line 79 below:
PARSE VALUE DATE('S',CREATYY||CREATDDD,'J') WITH CCYY 5 MM 7 DD

I am working with my systems programmers and they stated that some z/os patches were installed since the last run of the program, but no definite links at this point.

Any and all assistance is greatly appreciated.

John
 
Have you run this with TRACE to see what the intermediate values are? I suspect you've generated a Julian date with an incorrect format. Running this with 'trace ?i' will expose the data built from the concatenation.

If that's the problem, you'll need to recast that line as
Code:
PARSE VALUE DATE('S',Right(CREATYY,2,0)Right(CREATDDD,3,0),'J') WITH,
         CCYY 5 MM 7 DD


Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Thanks, Rexxhead. Bad data was the problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top