Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] (FOC36355) INVALID TYPE OF ARGUMENT #1 FOR USER FUNCTION YMD

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] (FOC36355) INVALID TYPE OF ARGUMENT #1 FOR USER FUNCTION YMD
 Login/Join
 
Gold member
posted
hi,

I am getting below error for YMD time frame,
Problem i am getting below is because im trying to use EDIT for time frame. but i do not know how to resolve it.do i need to use something else instead of edit here

  
DEFINE FILE ZEROAT
 DUM/A1=' ';
 PR_NAME/A20 = SUBSTR(60,NAM_LINE,1,20,20,'A20');
 P_DATE/A10=EDIT(ACT_DATE,'$$$$99$$')|EDIT(ACT_DATE,'$$$$$$/99/')|
 EDIT(ACT_DATE,'$$99$$$$');
 NUM_OF_REC/I8=1;
 SDA/A6=EDIT(STR_DATE,'$$99$$$$')|EDIT(STR_DATE,'$$$$99$$')|
 EDIT(STR_DATE,'$$$$$$99');
 EDA/A6=EDIT(END_DATE,'$$99$$$$')|EDIT(END_DATE,'$$$$99$$')|
 EDIT(END_DATE,'$$$$$$99');
 TIME_FRAME/I3=YMD(SDA,EDA);
 TF/A10=EDIT(TIME_FRAME)|' Days';
 PR_CTN/A10=EDIT(SUB_NO,'9999999999');
 CREDIT/A10=DECODE CLA_CODE (E 'EMPLOYEE' A 'GOVERNMENT'
  B 'KNOWN' M 'MABEL' D 'POOR' C 'UNKNOWN' ELSE ' ');
 END
 -*
 -RUN
0 ERROR AT OR NEAR LINE     84  IN PROCEDURE blnewzrat_10319FOCEXEC *
 (FOC36355)  INVALID TYPE OF ARGUMENT #1 FOR USER FUNCTION YMD
 -*-----*  Connect to aPP_CODElicational databse ------------------------------*
 -*
 -* extract zero_at_soc_rep table
 TABLE FILE BLZATSOC
 PRINT SOC
 ON TABLE SAVE
 END
 -*
 -*---- Report Definition *-----------------------------------------*
 TABLE FILE ZEROAT
 HEADING
 -INCLUDE gnrphdr.fex



If someone can help me with this issue.

Thanks in advance

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS, Linux
Excel, CSV
 
Posts: 62 | Registered: May 23, 2017Report This Post
Virtuoso
posted Hide Post
Change format of SDA and EDA from A6 to A6YMD.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Gold member
posted Hide Post
hi,

Thanks a lot for ur help. the error is gone but it show me onewarning message as below

(FOC32584) WARNING: FILE SAVE IS EMPTY
is there any way to resolve it


-*
-*****************************************************************************
-*-SET &ECHO=ALL;
-*----------------------------------------------------------------------------
-SET &HOLDLINES=0;
-*----------------------------------------------------------------------------
END
-RUN

(FOC32584) WARNING: FILE SAVE IS EMPTY
+ [ 1 -ne 0 ]
+ sleep 1
ps -ef|grep $PID | grep $CHILD_PID | grep $RUN_T3I|wc -l+ ps -ef
+ grep 29630
+ grep 25714
+ grep blnewzrat_25714.t3i
+ wc -l
+ STOP_FLAG=1


Thanks


WebFOCUS, Linux
Excel, CSV
 
Posts: 62 | Registered: May 23, 2017Report This Post
Master
posted Hide Post
Looking at the documentation, the from_date and to_date should be in
quote:
I, P, or A format with date display options.I6xxx or I8xxx where xxx corresponds to the specified function (DMY, YMD, or MDY).


So try changing your define as follows:
 
SDA/A6YMD=EDIT(STR_DATE,'$$99$$$$')|EDIT(STR_DATE,'$$$$99$$')|EDIT(STR_DATE,'$$$$$$99');
EDA/A6YMD=EDIT(END_DATE,'$$99$$$$')|EDIT(END_DATE,'$$$$99$$')|EDIT(END_DATE,'$$$$$$99'); 


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Master
posted Hide Post
Are you getting the error when it tries to cun this part of the code?
quote:
 -* extract zero_at_soc_rep table
 TABLE FILE BLZATSOC
 PRINT SOC
 ON TABLE SAVE
 END 


It so, does the table BLZATSOC have data in it?


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Gold member
posted Hide Post
hi,

Yes getting error for this part of code only and yes BLZATSOC has no data its empty.
As even if its giving me warning its creating the report correctly.
can u help how can we resolve this error

Thanks

This message has been edited. Last edited by: Genius,


WebFOCUS, Linux
Excel, CSV
 
Posts: 62 | Registered: May 23, 2017Report This Post
Gold member
posted Hide Post
...


WebFOCUS, Linux
Excel, CSV
 
Posts: 62 | Registered: May 23, 2017Report This Post
Virtuoso
posted Hide Post
Genius

What is the purpose of this part of the code. If the file is known to be empty it is of no use and should be removed. Otherwise you need to populate that file with data.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] (FOC36355) INVALID TYPE OF ARGUMENT #1 FOR USER FUNCTION YMD

Copyright © 1996-2020 Information Builders