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: 241
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: 241
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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