IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Converting SYSPUNCH into a COBOL copy-book


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rishi Khare

New User


Joined: 13 Aug 2007
Posts: 16
Location: Mumbai

PostPosted: Tue Nov 03, 2009 2:06 pm
Reply with quote

How to convert a SYSPUNCH (specified dataview) of a table into a COBOL copybook?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Nov 03, 2009 8:31 pm
Reply with quote

Hello,

What is in the SYSPUNCH? Please show some of the content.
Back to top
View user's profile Send private message
Rishi Khare

New User


Joined: 13 Aug 2007
Posts: 16
Location: Mumbai

PostPosted: Wed Nov 04, 2009 10:19 am
Reply with quote

Code:

  LOAD DATA LOG NO INDDN SYSREC00 INTO TABLE                                   
      AAAAAAA.TABLE                                                           
   (                                                                           
   XXXXXXXX                              POSITION(       1:       2)           
   DECIMAL                       ,                                             
   YYYYYYYY                              POSITION(       3:       3)           
   DECIMAL                       ,                                             
   ZZZZZZZZ                              POSITION(       9         )           
   DATE EXTERNAL(            10) ,                                             
   QQQQQQQ                               POSITION(      19:      19)           
   DECIMAL                                                                     
        NULLIF(      20)='?',                                                   
                                             
   )                                                                           


This is how the SYSPUNCH looks like
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Nov 05, 2009 3:16 am
Reply with quote

I do not know of any vendor tools to accomplish this (which doesn't mean that there aren't any, just that I don't know of any). However, I have a Rexx script that will convert a load control card deck (as written to SYSPUNCH) to a PL/I copybook. IM me, and I will send it to you.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Nov 05, 2009 6:21 pm
Reply with quote

Akatsukami wrote:
IM me, and I will send it to you.
here they call it PM...icon_biggrin.gif
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Nov 05, 2009 7:42 pm
Reply with quote

Anuj Dhawan wrote:
Akatsukami wrote:
IM me, and I will send it to you.
here they call it PM...icon_biggrin.gif

As long as it doesn't involve calling me late for lunch... icon_biggrin.gif
Back to top
View user's profile Send private message
Hariprasad_Pargunan

New User


Joined: 08 Jan 2009
Posts: 20
Location: Chennai

PostPosted: Fri Dec 10, 2010 7:04 pm
Reply with quote

Can you send me the code?
Back to top
View user's profile Send private message
surya4ug

New User


Joined: 08 Jul 2008
Posts: 62
Location: chennai

PostPosted: Wed Jan 26, 2011 10:12 pm
Reply with quote

Could you post the code here please. I'm in need of a similar piece of code as well.

Thanks in advance.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Jan 26, 2011 10:48 pm
Reply with quote

Quote:
I'm in need of a similar piece of code
Similar? You need to explain clearly what you are looking for.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top