Search found 19 matches

by kathan.p@gmail.com
Wed Jun 22, 2022 10:00 pm
Forum: RPG IV
Topic: Binary to Integer
Replies: 3
Views: 2977

Re: Binary to Integer

Field was part of DS and i was not fetching data correctly from the particular length. I fixed it.

Thank you!!
by kathan.p@gmail.com
Tue Jun 21, 2022 7:12 pm
Forum: RPG IV
Topic: Binary to Integer
Replies: 3
Views: 2977

Binary to Integer

I have SQL table with Binary field Data Field Buffer Buffer Field Type Length Length Position PKEY BINARY 18 0 8 15492 When i retrieve the value in program in 20I variable it comes as 4629771061636907072 But the data in the actual file field is - (getting below value using STRSQL) 19,461,757 Not sur...
by kathan.p@gmail.com
Thu Jun 09, 2022 2:37 pm
Forum: YAJL-ILE
Topic: Data-INTO issue Reason Code 6
Replies: 5
Views: 9187

Re: Data-INTO issue Reason Code 6

Used YAJL and it worked!! Thanks!!
by kathan.p@gmail.com
Tue Jun 07, 2022 8:49 pm
Forum: YAJL-ILE
Topic: Data-INTO issue Reason Code 6
Replies: 5
Views: 9187

Data-INTO issue Reason Code 6

Json Received - { "start_time": "2022-06-06T00:00:06.000Z", "data_extract": { "expected_end_datetime": "2022-06-07T00:00:00", "stop_idle_fuel_used": 0, "distance_drive": 353.1, "drive_time": 442.25, "performance_gro...
by kathan.p@gmail.com
Tue Feb 08, 2022 5:14 pm
Forum: RPG IV
Topic: Array has too many omitted index - Compile Time Error
Replies: 2
Views: 4321

Array has too many omitted index - Compile Time Error

HDFTACTGRP(*no) D data1 S 1000 inz('^test^^testing^letstest') D delimiter1 S 1 inz('^') D ArrData S 50 dim(50) inz /Free ArrData = pssplitd1(data1:delimiter1); dsply arrdata; *inlr = *on; /End-Free Ppssplitd1 b Dpssplitd1 pi 50 dim(50) D data 1000 D delimiter 1 * D returnArray s 50 dim(50) inz D st...
by kathan.p@gmail.com
Tue Dec 28, 2021 6:07 pm
Forum: RPG IV
Topic: EXTFILE Use
Replies: 4
Views: 4564

EXTFILE Use

Hi, I am working on a program and it goes like below:- 1) It will read a definition file which have library name/file name in it ( around 50 different files) 2) Now based on the data received from external application i have to populate one of the file from step 1) 3) Now once i figure out which fil...
by kathan.p@gmail.com
Fri Dec 03, 2021 8:48 pm
Forum: YAJL-ILE
Topic: DATA-GEN (trim all option for string variable)
Replies: 5
Views: 12638

Re: DATA-GEN (trim all option for string variable)

it is resolved now! It seems passing the parameter from command line was causing the issue but when i called it using program and pass the parameter it is working as expected.

Thank you
by kathan.p@gmail.com
Tue Nov 30, 2021 6:54 pm
Forum: YAJL-ILE
Topic: DATA-GEN (trim all option for string variable)
Replies: 5
Views: 12638

Re: DATA-GEN (trim all option for string variable)

I am receiving this parameter from other program and it's length is 2000 same as declared in above DS i am passing "TEST" as value and when it moves into DS it is going as JSONDOC.MESSAGE = ....5...10...15...20...25...30...35...40...45...50...55...60 1 'TESTT ' 61 ' NE ?*NONE ' 121 ' ' 181...
by kathan.p@gmail.com
Tue Nov 30, 2021 6:30 pm
Forum: YAJL-ILE
Topic: DATA-GEN (trim all option for string variable)
Replies: 5
Views: 12638

DATA-GEN (trim all option for string variable)

dcl-ds jsonDoc qualified; dcl-ds conversation; dcl-subf subject varchar(1) inz(' '); dcl-subf external_id varchar(1) inz(' '); dcl-subf is_group_chat ind inz('0'); dcl-subf read_only ind inz('0'); end-ds; dcl-subf message varchar(2000); dcl-subf priority varchar(6) inz('normal'); dcl-subf fleet ind...
by kathan.p@gmail.com
Tue Nov 30, 2021 6:27 pm
Forum: HTTPAPI
Topic: 401 - Bad Request on DELETE
Replies: 2
Views: 20421

Re: 401 - Bad Request on DELETE

This was resolved, it was an issue while doing handshake ... thank you