Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

which one advanage 01 level or77 for declare elementary data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
veera
Warnings : 1

New User


Joined: 24 Nov 2004
Posts: 20
Location: chennai

PostPosted: Sun Nov 28, 2004 6:36 pm    Post subject: which one advanage 01 level or77 for declare elementary data
Reply with quote

HELLO,
ANY ONE PLSE TELL ME
1. WHICH ONE IS ADVANTAGE FOR DECLARATION OF ELEMENTARYDATA ITEMS.

2. WHY U R DECLARE VAR CHAR IN 49 LEVEL ONLY.
Back to top
View user's profile Send private message

jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Mon Nov 29, 2004 3:11 am    Post subject:
Reply with quote

Veera,

reg level 77 & 01.
This has no diff in MVS COBOL, VS COBOL II.

Inearlier versions of cobol.

if you declare an elimentary data item at level 01

01 ws-rec pic x(01).
01 ws-rec2 pic x(02).

in memory
xyyyyyyyyyyyyyyyyyyyyy (here y is blank nothing is stored in that).
xyyyyyyyyyyyyyyyyyyyyy

where as if its at level 77
77 ws-rec pic x(01)
77 ws-rec 2 pic x(01)
in memory
XX

you can observe that memory is being saved.

however there is no diff in MVS Cobol or VS Cobol II
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Mon Nov 29, 2004 3:12 am    Post subject: Re: which one advanage 01 level or77 for declare elementary
Reply with quote

veera wrote:
HELLO,
2. WHY U R DECLARE VAR CHAR IN 49 LEVEL ONLY.


I have ansered this earlier check db2 forum for this.

good day.
Back to top
View user's profile Send private message
veera
Warnings : 1

New User


Joined: 24 Nov 2004
Posts: 20
Location: chennai

PostPosted: Wed Dec 01, 2004 12:05 pm    Post subject: Re: which one advanage 01 level or77 for declare elementary
Reply with quote

[quote="jz1b0c"][quote="veera"]HELLO,
2. WHY U R DECLARE VAR CHAR IN 49 LEVEL ONLY.[/quote]

I have ansered this earlier check db2 forum for this.

good day.[/quote]

hello,
i am not cleared WHY U R DECLARE VAR CHAR IN 49 LEVEL ONLY
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us