Seeing VSAM file data.

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
User avatar
Md.Imtiaz
Registered Member
Posts: 25
Joined: Tue Aug 05, 2014 9:59 am

Seeing VSAM file data.

Post by Md.Imtiaz »

Hi,

I have a VSAM KSDS file with data like this:

Code: Select all

1111    abcd   Delhi
2222    efgh    Mumbai


They have used cobol program to write data into file using a copybook. Now we don't have the source code and only load module of that programme available. If I want see the fileds of the file, how I can do that as I can not know the copybook name now.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Seeing VSAM file data.

Post by enrico-sorichetti »

so You are telling that Your Organisation spends money in creating a file
with unknown content that nobody reads :shock:

hoping that You just expressed Yourself in a bad way,
ask around what programs read the file, and certainly looking at those programs you will find something useful
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 8-)
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Seeing VSAM file data.

Post by nicc »

DDnames in the JCL?
Regards
Nic
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Seeing VSAM file data.

Post by Robert Sample »

Be aware that to some degree, it is not possible to determine data characteristics without a copy book or other source code. Packed decimal or binary data may be interpreted as character data (depending upon the value). X'0097994D' could be a -97994 packed decimal value, or a binary full word value of 9935181 or as the characters 'pr(' with a leading LOW-VALUE -- which way you interpret those hexadecimal digits depends upon what you treat the bytes as.
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Seeing VSAM file data.

Post by nicc »

OK, re-reading and re-interpreting - perhaps 'fileds' should read as 'fields' in which case the DDNAME will only tell you the dataset name not the record layout which is perhaps what you are wanting but failed to say in a clear manner.
Regards
Nic
User avatar
Md.Imtiaz
Registered Member
Posts: 25
Joined: Tue Aug 05, 2014 9:59 am

Re: Seeing VSAM file data.

Post by Md.Imtiaz »

OK, re-reading and re-interpreting - perhaps 'fileds' should read as 'fields' in which case the DDNAME will only tell you the dataset name not the record layout which is perhaps what you are wanting but failed to say in a clear manner.
Yes this is what I mean. If you tell me how could I have written it I'll consider that as an example for my future posts, can you?

But now I have given up on this idea to get the copy book for this file...
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”