IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Getting error in using Repattern in PL1


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Md Immrann

New User


Joined: 12 Jun 2012
Posts: 4
Location: India

PostPosted: Fri Jul 13, 2012 7:08 pm
Reply with quote

Hi . I am using repattern to convert a date from format YYMMDD to YYYYMMDD s below. I ma not getting any compilation error , but the below error when I execute the program.

Error message :
'IBM0517S ONCODE=2117 X in SECS(X,Y) did not match the picture specification. From entry point MOVE_LEADS at compile unit offset +000000B2 at entry offset +000000B2 at address 23193562. '

Code I am using :

COMP_DATE =
Repattern(PGMKORT.RUN_DATE,'YYYYMMDD','YYMMDD',1950);

I declared COMP_DATE as char(8), when it didnt work I tried giving Fixed Dec(8,0)

Could you please let me know what am I doing wrong
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Jul 13, 2012 7:32 pm
Reply with quote

What is the value of PGMKORT.RUN_DATE? That is what is involved in the error.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 13, 2012 7:35 pm
Reply with quote

Have you looked at the data to verify what format it is in? Particularly for that one record causing the ONCODE?

And of course you got no compile error -- what you are seeing is a RUNTIME error; you cannot -- EVER-- see a runtime error at compile time. Runtime errors are generally data related, hence cannot be found until the program is actually executing.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Fri Jul 13, 2012 7:48 pm
Reply with quote

You are talking bullsh*t!

You show us usage of the REPATTERN builtin, yet the error message clearly mentions the SECS builtin.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Jul 13, 2012 8:26 pm
Reply with quote

prino wrote:
You are talking bullsh*t!

You show us usage of the REPATTERN builtin, yet the error message clearly mentions the SECS builtin.

But that's the message that you'll get if you pass REPATTERN a datetime string of, say, '120713 ' and a source pattern of 'YYMMDD'. REPATTERN is either calling SECS "under the covers", or LE can't be bothered to generate a different message for REPATTERN.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top