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
 
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: 8500
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 Convert mainframe data to .csv format... karan_reddy DFSORT/ICETOOL 10 Sat Nov 02, 2019 2:09 am
No new posts Parsing single liner XML into readabl... rohanthengal COBOL Programming 1 Fri Oct 18, 2019 8:41 pm
No new posts Converting spaces to zeroes A_programmers DFSORT/ICETOOL 7 Tue Oct 01, 2019 12:41 am
No new posts Convert string to packed format ajaydwivedi4u COBOL Programming 6 Sat Sep 21, 2019 5:01 pm
No new posts COBOL copybook to Focus anandgbe COBOL Programming 7 Wed Jul 31, 2019 11:52 am

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