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
 
Converting a copybook value into Json Format.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
srikant314

New User


Joined: 26 Oct 2016
Posts: 3
Location: INDIA

PostPosted: Mon Jun 03, 2019 11:17 am    Post subject: Converting a copybook value into Json Format.
Reply with quote

Hello Everyone,
I have tried to convert a copybook into JSON Format in Cobol but was unable to do as the Z/OS version 4.1 does not support JSON generator.
Then I tried to run a JCL which a selcopy utility. This worked fine and I was able to get the JSON format. But due to my copybook using redefine clause I am unable to get the required format. Can anyone help me with any idea how Json file format can be achieved ? My file has 3or 4 rows for a particular request and hence redefine clause is very essential and due to this I am facing problem while conversion using Selcopy utility.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


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

PostPosted: Mon Jun 03, 2019 6:17 pm    Post subject: Reply to: Converting a copybook value into Json Format.
Reply with quote

The Enterprise COBOL Language Reference manual for version 6.2 states that JSON GENERATE does not support REDEFINES. The CICS Transaction Server 5.2 Configuring manual indicates that the DFHLS2JS utility does not support REDEFINES. So even if you were using a version of COBOL that supported JSON GENERATE, you would not be able to use the REDEFINES.

You need to think of another way to get what you want rather than just focusing on what cannot work. Perhaps a hand-coded REDEFINES would accomplish your goal? If not, you may just have to accept that it is not possible to do what you want and move on to more feasible objectives.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 converting bytes and megabytes to kil... knobi SYNCSORT 4 Fri Apr 12, 2019 8:05 pm
No new posts How to convert hex to Displayable for... Log Thangavel DFSORT/ICETOOL 11 Fri Feb 22, 2019 9:33 am
No new posts File format conversion prino DFSORT/ICETOOL 22 Thu Feb 21, 2019 11:32 am
No new posts Regression testing of date format con... prino CLIST & REXX 0 Fri Jan 11, 2019 5:39 am

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