Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Getting error in using Repattern in PL1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Getting error in using Repattern in PL1
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: 1753
Location: Bloomington, IL

PostPosted: Fri Jul 13, 2012 7:32 pm    Post subject:
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: 8003
Location: Bellevue, IA

PostPosted: Fri Jul 13, 2012 7:35 pm    Post subject:
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: 1005
Location: Oostende, Belgium

PostPosted: Fri Jul 13, 2012 7:48 pm    Post subject:
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: 1753
Location: Bloomington, IL

PostPosted: Fri Jul 13, 2012 8:26 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us