Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
JSON parser in z/os

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Testing & Performance analysis
View previous topic :: :: View next topic  
Author Message
beikircherw

New User


Joined: 18 May 2020
Posts: 7
Location: Italy

PostPosted: Tue May 19, 2020 11:34 am    Post subject: JSON parser in z/os
Reply with quote

Hi there,

we are trying to establish a new structure in our communication through MQ. At the moment we simply put a pure byte stream on the client in the MQ message. On mainframe, we read the message in a COBOL program an elaborate this further.

Big disadvantage: when I have to add an additional field in the message.

So we thought to change the structure of the message and put the message in JSON format on MQ. Then use the JSON parser on z/os to parse it an get the structure.

We knew, that the parsing takes time but we hoped it would be completely on ziip. But this is not.

Does anybody know if there are other ways to deal with JSON? Or maybe there is an PTF for z/os that moves the JSON parser to ziip and we havn't installed it. icon_smile.gif

Unfortunately we have only the COBOL compile 4.2 in place. So we can not use the JSON parsing capability of version 6. And we don't have this communication server (don't remember the name) in place which does us the parsing...
Back to top
View user's profile Send private message

enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10696
Location: italy

PostPosted: Tue May 19, 2020 2:23 pm    Post subject: Reply to: JSON parser in z/os
Reply with quote

what zOS version are You running ?

https://community.ibm.com/community/user/ibmz-and-linuxone/blogs/dan-zhang1/2020/04/02/cobol-42-51-amp-52-abo-12-end-of-service-dates
Back to top
View user's profile Send private message
beikircherw

New User


Joined: 18 May 2020
Posts: 7
Location: Italy

PostPosted: Tue May 19, 2020 3:17 pm    Post subject:
Reply with quote

Actually we are running on z/OS 2.2.

Shortly, within the summer, we are moving forward to 2.4.

We are also preparing to do the migration to COBOL V6. But for that we have to bring our software at least at V4.2. At the moment we have modules running compile on VSE cobol.

I think, for the installation of COBOL V6 we will see 2021
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10696
Location: italy

PostPosted: Tue May 19, 2020 4:02 pm    Post subject: Reply to: JSON parser in z/os
Reply with quote

look at

https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.ieac100/ieac1-cwe-json.htm

https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.ieac100/ieac1-cwe-json-avail.htm

Quote:
the z/OSĀ® JSON parser contained the z/OS client web enablement toolkit is available to virtually any address space. The toolkit is enabled as part of z/OS initialization during IPL time. A message is written to the syslog, which regards the status of the toolkit. Success or failure of toolkit initialization can be found by locating any HWT-prefixed syslog messages, which are issued during IPL.
Back to top
View user's profile Send private message
beikircherw

New User


Joined: 18 May 2020
Posts: 7
Location: Italy

PostPosted: Tue May 19, 2020 5:26 pm    Post subject:
Reply with quote

As described in my first post, we are actually using this z/OS JSON parser. Unfortunately is using only the main CPU. At least, it seems.

Therefore the question if there are other possibilities for JSON. Or maybe somebody knows if there is a PTF that is not installed at our site to outsource the processing of the JSON structure to the zIIP....
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8553
Location: Dubuque, Iowa, USA

PostPosted: Tue May 19, 2020 6:32 pm    Post subject: Reply to: JSON parser in z/os
Reply with quote

Quote:
We knew, that the parsing takes time but we hoped it would be completely on ziip. But this is not.
There is some CP time for CPU even for Java -- the Redbook IBM CICS Performance Series: CICS TS for z/OS V5 Performance Report shows in 7.12.3 that 20 to 40% of the CPU time for parsing (native and Java) is NOT eligible for zIIP processing. So your hope for complete zIIP processing is hopeless.
Back to top
View user's profile Send private message
beikircherw

New User


Joined: 18 May 2020
Posts: 7
Location: Italy

PostPosted: Tue May 19, 2020 7:42 pm    Post subject:
Reply with quote

Okay, I didn't know that.

But we even didn't recognize ANY offload to the zIIP. We looked at the SMF30 and there was no time for zIIP offload.

Seems that IBM offers some zIIP offload in certain products (CICS, DB2 ecc.) but not in this case. Maybe we get some gains with version 2.4
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8553
Location: Dubuque, Iowa, USA

PostPosted: Tue May 19, 2020 8:05 pm    Post subject: Reply to: JSON parser in z/os
Reply with quote

Quote:
Maybe we get some gains with version 2.4
Generally, if you have a zIIP processor active, the CP will direct zIIP-eligible work to it without having to do anything else (although, as always, there are exceptions -- we use a database product that is not DB2 that requires special code to use the zIIP). The z/OS version doesn't really play into this -- if you're not getting zIIP usage now, going to 2.4 will not magically get you zIIP time.

Look at the SMF 30 field SMF30_TIME_ZIIP_ON_CP which is in the Processor Accounting section of the SMF record type 30. This tells you the amount of zIIP-eligible CPU time that was actually executed on the CP (instead of on the zIIP). Which tells you how much CPU time can be offloaded to the zIIP for what you're doing. You may need to discuss your situation with your site's system programmer(s) to verify that the zIIP engine(s) are available to the LPAR you're using; if not, it doesn't matter what you do because you won't get any zIIP CPU time.
Back to top
View user's profile Send private message
beikircherw

New User


Joined: 18 May 2020
Posts: 7
Location: Italy

PostPosted: Wed May 20, 2020 12:00 pm    Post subject:
Reply with quote

Exactly. We check the SMF 30 field SMF30_TIME_ZIIP_ON_CP but there was no value. No, wrong. There was '0' (zero) as a value. icon_smile.gif

My hope was that IBM adds more and more 'zIIP eligible workload' during the versions. As seen for DB2 or for CICS.

But honestly, I didn't checked the tecnical documentation of version 2.4.

Anyway, thanks for Your support.
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 -> Testing & Performance analysis All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JSON in cobol 6.1 srikant314 COBOL Programming 1 Wed Jan 22, 2020 5:39 pm
No new posts Converting a copybook value into Json... srikant314 COBOL Programming 1 Mon Jun 03, 2019 11:17 am
No new posts Unexpected token parsing JSON value u... mtv.sbo PL/I & Assembler 3 Fri May 24, 2019 8:29 pm
No new posts COBOL - JSON GENERATE husni1972 COBOL Programming 1 Fri Aug 17, 2018 3:29 am
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm

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