Search found 7 matches

by THIYAGARAJAN
Tue Apr 23, 2024 9:15 am
Forum: YAJL-ILE
Topic: Clarification on - YAJL_OBJECT_FIND
Replies: 2
Views: 7221

Re: Clarification on - YAJL_OBJECT_FIND

Thanks Jon.
by THIYAGARAJAN
Thu Apr 18, 2024 10:16 am
Forum: YAJL-ILE
Topic: Clarification on - YAJL_OBJECT_FIND
Replies: 2
Views: 7221

Clarification on - YAJL_OBJECT_FIND

Hi Guys,
I am using YAJL_OBJECT_FIND(DocNode: 'String'); to find a node inside a JSON.
If the node is not present then it will return SPP:NULL else an address of the node. My doubt here is - is there a way to validate whether Node is found or not? .
by THIYAGARAJAN
Mon Jul 10, 2023 5:54 am
Forum: RPG IV
Topic: DB2 SQL query to fetch last five month details
Replies: 0
Views: 26165

DB2 SQL query to fetch last five month details

I have request number created each month, I need to create sql query to show the count of request created for last 5 months, there might be scenario when no request is created but sql query should show that month with value as zero. Below is the query which I am using it but it is not giving expecte...
by THIYAGARAJAN
Wed Jul 05, 2023 12:12 pm
Forum: YAJL-ILE
Topic: YAJL - facing issue with loading JSOn from IFS
Replies: 5
Views: 12680

Re: YAJL - facing issue with loading JSOn from IFS

Thanks scott, I just used a sample json date saved it in my IFS path and was trying to work on it.
by THIYAGARAJAN
Wed Jul 05, 2023 12:10 pm
Forum: YAJL-ILE
Topic: yajl_get_string() issue
Replies: 1
Views: 9554

yajl_get_string() issue

Hi All, I am parsing the Json date into tree using yajl_stmf_load_tree and I was able to get the key value but when I try to get value using yajl_get_string(val) to get the value of the node, I am getting an error saying that Message . . . . : The call to YAJL_GET_S ended in error (C G D F). Message...
by THIYAGARAJAN
Tue Jul 04, 2023 10:00 am
Forum: YAJL-ILE
Topic: YAJL - facing issue with loading JSOn from IFS
Replies: 5
Views: 12680

Re: YAJL - facing issue with loading JSOn from IFS

Hi Scott,
I am new to RPG and JSON. Earlier the CCSID was 37 and it gave me error and I modified the id to 1208 and then there was no error. Can you throw some light on how the CCSID for the Json file is defined?
by THIYAGARAJAN
Sat Jul 01, 2023 4:02 pm
Forum: YAJL-ILE
Topic: YAJL - facing issue with loading JSOn from IFS
Replies: 5
Views: 12680

YAJL - facing issue with loading JSOn from IFS

Hi All, I am trying to load the json file from IFS path into Yajl tree parser but I am getting lexical error - invalid character in the text. I checked the json file in the online validator and it says it is a valid json. docNode = yajl_stmf_load_tree( '/home/tpandian/txt1.json' : errMsg ); ->this i...