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
 

 

Usage & functioning of the utility ?IEFCOPY? in cobol

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

New User


Joined: 22 Mar 2005
Posts: 15
Location: Chennai

PostPosted: Wed Mar 14, 2007 12:12 pm    Post subject: Usage & functioning of the utility ?IEFCOPY? in cobol
Reply with quote

Can anyone help me out on the usage & functioning of the utility ?IEFCOPY? in cobol program?
Back to top
View user's profile Send private message

agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 685
Location: Earth

PostPosted: Wed Mar 14, 2007 2:41 pm    Post subject:
Reply with quote

Quote:

?IEFCOPY? in cobol program?

Not quiet sure what you exactly want. Please elaborate. icon_smile.gif
Back to top
View user's profile Send private message
Shobana

New User


Joined: 22 Mar 2005
Posts: 15
Location: Chennai

PostPosted: Wed Mar 14, 2007 2:44 pm    Post subject:
Reply with quote

The syntax used in our COBOL programs is like:

Case 1: IEFCOPY KAT000.WK_SERV_PRVDR_ID FLDLVL=10, PREFIX=H.

The above statement is replaced in the compile listing as:
10 H000-WK-SERV-PRVDR-ID PIC X(4).

(KAT000 is a DB2 table, FLDLVL specifies at which level it has to be copied & prefix specifies the first character of the variable to be start).

Case 2: IEFCOPY KAT009 PREFIX=L.

The above statement is replaced with the entire structure the KAT009 table as below in the compile listing?

05 L009-AFFILIATE-ID PIC X(1).
05 L009-ADJUSTMENT-LEVEL PIC X(1).
05 L009-ADJ-ACTIVITY-CODE PIC X(1).
05 L009-ADJUSTMENT-ID PIC X(5).
05 L009-ADJUSTMENT-DATA PIC X(15).

Pls let me know if you have any information on the funcationality of IEFCOPY here in the cobol program.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 685
Location: Earth

PostPosted: Wed Mar 14, 2007 3:19 pm    Post subject:
Reply with quote

From your posts I can figure out that IEFCOPY is not an IBM utility program.
(First I thought you wanted to know IEBCOPY icon_smile.gif and you made a spelling mistake icon_biggrin.gif .. ) It may be some home made utility program for use on your site.
Check your compiler JCL, before the compiler step, there should be some program which preprocesses IEFCOPY statements and replaces it with the VARIABLE declarations as you have posted.
Good luck. icon_smile.gif
Back to top
View user's profile Send private message
Shobana

New User


Joined: 22 Mar 2005
Posts: 15
Location: Chennai

PostPosted: Wed Mar 14, 2007 3:31 pm    Post subject:
Reply with quote

Thanks a lot Abhijit. icon_smile.gif
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 685
Location: Earth

PostPosted: Wed Mar 14, 2007 3:40 pm    Post subject:
Reply with quote

You are welcome icon_smile.gif
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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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