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
 

 

Dynamic file allocation

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
rashmi123

New User


Joined: 04 Jun 2007
Posts: 25
Location: Pune

PostPosted: Tue Feb 24, 2009 2:48 am    Post subject: Dynamic file allocation
Reply with quote

Hi all,

I am using the "setenv" function in my cobol program to dynamically allocate files.
I read on one of the sites that to use setenv() we need to compile the program using option PGMNAME(LONGMIXED).

I did so, but I am getting the following error:

IGYDS1046-E A user-defined word was found as a "PROGRAM-ID" name under the "PGMNAME(LONGMIXED)" compiler option. When "PGMNAME(LONGMIXED)" is in effect, a literal is expected for the "PROGRAM-ID" name. The name was accepted in its uppercased format.


Please advise.

Thanks
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Feb 24, 2009 3:39 am    Post subject:
Reply with quote

Hello,

Please post the first part of your program - from the beginning to the just before the ENVIRONMENT DIVISION.
Back to top
View user's profile Send private message
rashmi123

New User


Joined: 04 Jun 2007
Posts: 25
Location: Pune

PostPosted: Tue Feb 24, 2009 3:43 am    Post subject: Reply to: Dynamic file allocation
Reply with quote

Here u go:

IDENTIFICATION DIVISION.
PROGRAM-ID. DW3FMTPG.
DATE-WRITTEN. NOVEMBER 2005.
DATE-COMPILED. NOVEMBER 2005.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Feb 24, 2009 4:11 am    Post subject:
Reply with quote

Hello,

You might try:
Code:
PROGRAM-ID. 'DW3FMTPG'.
Which compiler are you using?
Back to top
View user's profile Send private message
rashmi123

New User


Joined: 04 Jun 2007
Posts: 25
Location: Pune

PostPosted: Tue Feb 24, 2009 9:32 am    Post subject: Reply to: Dynamic file allocation
Reply with quote

I put the program name in quotes as suggested. It is still not compiling but the error went away. There now seems to be some problem during linking.

My COBOL is IBM Enterprise COBOL for z/OS 4.1.0.

The error message is:

z/OS V1 R9 BINDER 21:45:11 MONDAY FEBRUARY 23, 2009
BATCH EMULATOR JOB(NBK6BIWC) STEP(LINKLOD ) PGM= IEWL
IEW2278I B352 INVOCATION PARAMETERS - LIST,XREF,MAP,

IEW2322I 1220 1 SETSSI 5C731059
IEW2322I 1220 2 IDENTIFY DW3FMTPG('DW3FMTPG/5C731059/DW30000959')
IEW2322I 1220 3 NAME DW3FMTPG(R)
IEW2606S 4B39 MODULE INCORPORATES VERSION 3 PROGRAM OBJECT FEATURES AND CANNOT BE SAVED IN LOAD MODULE FORMAT.

Any clue??
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Feb 24, 2009 9:56 am    Post subject:
Reply with quote

Hello,

Backing up a bit. . .
Quote:
I read on one of the sites that to use setenv() we need to compile the program using option PGMNAME(LONGMIXED).
Are you certain this is true? Have you tried without this?

This was the solution to the IEW2606S 4B39
Quote:
SOLUTION:
The program object has been compiled with the NOLONGNAME
option.


It may be worth a try - "MODULE INCORPORATES VERSION 3 PROGRAM OBJECT FEATURES AND CANNOT BE SAVED IN LOAD MODULE FORMAT." looks kind of final. . .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    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. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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