TRANSFORM COPYBOOK TO DATA



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: TRANSFORM COPYBOOK TO DATA

Postby enrico-sorichetti » Wed Sep 10, 2014 3:13 pm

i don't want to do my processing in jcl but in COBOL.

looks like You did not care to try to understand my post ...

never said to process anything with sort, nor REXX
I just told to follow the same approach...
compile Your copybook and after that extract the info You want using a COBOL program instead of a REXX script
from the map You can infer for each field - the name, the format, the position, the length
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Re: TRANSFORM COPYBOOK TO DATA

 

Re: TRANSFORM COPYBOOK TO DATA

Postby NicC » Thu Sep 11, 2014 12:55 am

i don't want to do my processing in jcl but in COBOL.

You cannot do it in JCL anyway because JCL does not manipulate data. But you will, most likely, need JCL to run your COBOL program.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: TRANSFORM COPYBOOK TO DATA

Postby abki » Fri Sep 12, 2014 6:37 pm

Not sure of why u want to convert copybook.
A copybook is a description of data in a file or part of it. Its only to use fieldname and u get the value in the field for the post in the file.

If u want to know number of digits for integer part and fraction part and number of character in text-field its better to go in the map from compilation of a program using tha copybook.
abki
 
Posts: 3
Joined: Fri Sep 12, 2014 6:18 pm
Has thanked: 0 time
Been thanked: 0 time

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post