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
 

 

How can we decalre 1000 Variable records in File Section

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

New User


Joined: 16 Jun 2005
Posts: 9

PostPosted: Fri Jul 22, 2005 9:14 am    Post subject: How can we decalre 1000 Variable records in File Section
Reply with quote

Hi all,

I have 1000 variable records in my file. Can any tell me that, how can we decalre in File Section.

Please give me some detail explanation with example...

Thanks&Regards,
Mutthu.
Back to top
View user's profile Send private message

shobam

New User


Joined: 18 Jul 2005
Posts: 34
Location: CN

PostPosted: Fri Jul 22, 2005 10:39 am    Post subject:
Reply with quote

I guess the following link will answer your query.

http://publib.boulder.ibm.com/infocenter/pdthelp/index.jsp?topic=/com.ibm.entcobol3.doc/tpqsm28.htm
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 239
Location: Cincinnati OH USA

PostPosted: Fri Jul 22, 2005 8:14 pm    Post subject:
Reply with quote

Is '1000' the record count or are you saying that the file contains records with '1000' different combinations of varying fields in the reocrd layout?

Dave
Back to top
View user's profile Send private message
Mutthu_talluri

New User


Joined: 16 Jun 2005
Posts: 9

PostPosted: Fri Jul 22, 2005 8:18 pm    Post subject:
Reply with quote

1000 different combinations.....

Regards
Mutthu
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 239
Location: Cincinnati OH USA

PostPosted: Fri Jul 22, 2005 8:28 pm    Post subject:
Reply with quote

shobam's msg above will point you in the right direction

you may also create the layouts in working storage and use REDEFINES at the 01 level or some sublevel after the common fields are defined (if there are indeed a string of common fields).

In any case, some method of record identification must be in a field or combination of fields in order to know which fields get referenced for each record type.


Dave
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Fri Jul 22, 2005 8:35 pm    Post subject:
Reply with quote

you can redifines each record

for exam ple my file has two different combinations
fd filename
o1 frec1.

02 empno pic s9(4).
02 empname pic x(20).


01 frec2 redefines frec1.

02 deptn pic 9(4).
02 deptname pic x(15).
02 sal pic 9(6).

thanooz
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jul 23, 2005 3:37 am    Post subject:
Reply with quote

Do not use redefines in the FD at the 01 level. It's not allowed. Just code multiple 01 entries with different defs.

BTW, how will you determine which of the 1000 types you just read?
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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