Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1782
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: 8189
Location: East Dubuque, Illinois, USA

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: 1068
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: 1782
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 -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us