Perform varying and 88 level

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
User avatar
Helenvel959
New Member
Posts: 2
Joined: Mon Nov 19, 2018 10:35 pm

Perform varying and 88 level

Post by Helenvel959 »

Hi everyone!
I need a help with Cobol code. Perform varying should read copybook with 88-level fields. Does anyone know - how to do this?
Thank you in advance.
Helen
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1896
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Perform varying and 88 level

Post by Robert Sample »

Perform varying should read copybook with 88-level fields. Does anyone know - how to do this?
As stated, your question makes no sense. A copybook is SOURCE code and as such is used during the compile process. PERFORM VARYING is executed code and hence will NEVER, under any circumstances, be reading a copybook -- compile time and execution time are completely different (and may be separated by anything from a few seconds to many years). You either need to explain more about what you're doing, or accept that copybooks are not used during program execution and find a more realistic problem to spend your time on.
User avatar
Helenvel959
New Member
Posts: 2
Joined: Mon Nov 19, 2018 10:35 pm

Re: Perform varying and 88 level

Post by Helenvel959 »

Thank you for the response. You're right, I am still confused about details. I need to clarify it in my head and create a better explanation. Thank you again.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1896
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Perform varying and 88 level

Post by Robert Sample »

If you can figure out what you want to know and post your question, we should be able to answer it. There is plenty of COBOL experience on this forum.
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.”