Hi,
Is there a reason that Level 49 is used only for DB2? Why can't we use it for anything else? Is there a reason?
Thanks for any answers and literature about it.
Level 49 and VARCHAR?
- Robert Sample
- Global Moderator
- Posts: 1895
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Level 49 and VARCHAR?
Whoever told you that level 49 is exclusively for DB2 -- you need to stop listening to that person and find an actual COBOL expert. Level 49 can be used by any program:gives results of So your question about why you can't use it for anything else is based on a false premise and hence makes no sense.
Code: Select all
000001 000100 IDENTIFICATION DIVISION.
000002 000200 PROGRAM-ID. MF0063.
000003 000300 ENVIRONMENT DIVISION.
000004 000400 CONFIGURATION SECTION.
000005 000500 OBJECT-COMPUTER. IBM-370.
000006 000600 SOURCE-COMPUTER. IBM-370.
000007 000700 DATA DIVISION.
000008 000800 WORKING-STORAGE SECTION.
000009 000900 01 WS-AREA. 000000000 0CL9
000010 001000 49 WS-49-LEVEL PIC 9(09) VALUE ZERO. 000000000 9C
IMP
000011 001800 PROCEDURE DIVISION.
000012 002000 DISPLAY '>' WS-49-LEVEL '<'. 10
000013 002400 STOP RUN.
P 5655-EC6 IBM Enterprise COBOL for z/OS 6.3.0 P211108 MF0063 Date 01/16/2023 Time 13:08:23 Page 4
n "M" preceding a data-name reference indicates that the data-name is modified by this reference.
Code: Select all
***********
>000000000<
***********
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