Open Statement



High Level Assembler(HLASM) for MVS & VM & VSE

Open Statement

Postby RISCCISCInstSet » Sun Oct 30, 2011 3:27 am

Can you give me a quick and dirty explanation of the open statement, and how/how not to use it?

Keep posts polite please.

Thanks
RISCCISCInstSet
User avatar
RISCCISCInstSet
 
Posts: 121
Joined: Mon Oct 17, 2011 1:46 pm
Has thanked: 146 times
Been thanked: 0 time

Re: Open Statement

 

Re: Open Statement

Postby BillyBoyo » Sun Oct 30, 2011 3:37 am

I googled with this: "open macro" 370 assembler

Read, digest, check in manual. Any points you are then not clear about, come back and explain.

These users thanked the author BillyBoyo for the post:
RISCCISCInstSet (Mon Nov 12, 2012 4:58 am)
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: Open Statement

Postby dick scherrer » Sun Oct 30, 2011 3:41 am

Hello,

Do you know anyting about COBOL?

An open in Assembler occomplishes basically the same thing in Assembler. The "quick and dirty" is that the OPEN gets things ready for the "program" to use the file. If your question is about CICS, files are centrally used (typically) and not OPENed by the program.

Keep posts polite please.
If you believe this is necessary, you probably also know the post is lacking. . . ;)

Generic, "why is there air" type-questions often draw undesirable replies. If you ask something more specific, you might have less concern about the reply style. . .
Hope this helps,
d.sch.

These users thanked the author dick scherrer for the post:
RISCCISCInstSet (Mon Nov 12, 2012 4:58 am)
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Open Statement

Postby enrico-sorichetti » Sun Oct 30, 2011 4:19 am

You were already given a reply with the link to the manual here ...
assembler/topic6480.html
come back for help only after You have read it ( the manual ) , quoting the sentences You did not understand
and somebody will be glad to help, but only after You have shown of having done a bit of homework Yourself !
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort

These users thanked the author enrico-sorichetti for the post:
RISCCISCInstSet (Mon Nov 12, 2012 4:58 am)
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Open Statement

Postby RISCCISCInstSet » Sun Oct 30, 2011 5:31 am

I've taken a look...

I've apparrently gotten the error "missing macro = OPEN."

How does open not exist in a given situation?
RISCCISCInstSet
User avatar
RISCCISCInstSet
 
Posts: 121
Joined: Mon Oct 17, 2011 1:46 pm
Has thanked: 146 times
Been thanked: 0 time

Re: Open Statement

Postby Robert Sample » Sun Oct 30, 2011 6:45 am

How does open not exist in a given situation?
If your assembly JCL does not contain a library reference (usually SYSLIB) that points to the library containing the OPEN macro, it will not be resolved. Macros, unlike instructions, must be found in a library (unless part of your source program) and included into the code.

These users thanked the author Robert Sample for the post:
RISCCISCInstSet (Mon Nov 12, 2012 4:58 am)
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: Open Statement

Postby dick scherrer » Sun Oct 30, 2011 9:51 am

Hello,

I've apparrently gotten the error "missing macro = OPEN."

How does open not exist in a given situation?
Either the assembly process is not set up properly on your system, or one or more libraries is missing components. If the code could not even compile, why would you even run it (as in posting that the opens were successful).

It appears that you can use the language reference manuals from the mainframe, but the "system stuff" (assembly, compile, link, etc) may be quite different. . . Or it is similar and you do not have it configured properly.

All along you continue to miss a most important consideration with your z390-based questions. . . They will probably not all have the same answers as similar issues on the mainframe, so many of our correct answers will not necessarily work for you.

You do really need to find some place to specifically ask z390 questions - these topics are just a waste of your time and ours here . . .

d

These users thanked the author dick scherrer for the post:
RISCCISCInstSet (Mon Nov 12, 2012 4:58 am)
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Open Statement

Postby enrico-sorichetti » Sun Oct 30, 2011 12:35 pm

Keep posts polite please.

given Your attitude and the unwillingness to read and understand the replies You receive
the the replies tone is much more polite than what You deserve ...

I've apparrently gotten the error "missing macro = OPEN."
How does open not exist in a given situation?

I cannot do nothing than remark again Your lacking of reading and understanding skills :evil:

also for this issue You were already given a reply in my last answer to Your post here
assembler/topic6480.html
I will requote to make it easier for You to read it
the z390 assembler suite will assemble and run correctly any properly written zOS assembler program. as far as
- input format
- macros used
- macro availability

- there might be some differences about the parms used but pretty simple to understand

- the only thing to <beware> is how to get hold of the zOS macros,
- both from a legal/copyright point of view and where to get them


- the <older> MVS 3.8 macros are freely available and work well

all is explained clearly in the z390 documentation
what happened when You tried to run the z390 samples ???


also looks like You are trying to use something without having read the basics about it ...

starting from
http://www.z390.org" onclick="window.open(this.href);return false;
and proceeding to ( for example )
http://www.z390.org/z390_Frequently_Asked_Questions.htm" onclick="window.open(this.href);return false;
and ...
http://www.z390.org/z390_Getting_Started.htm" onclick="window.open(this.href);return false;
and
http://www.z390.org/index.html#Download_Links" onclick="window.open(this.href);return false;
Download Links

z390 Downloads
Latest z390 Release Download File Links (Also available from z390 sourceforge project mirrored download servers - click on "Downloads", "Browse all files")
Verify that J2SE 1.6+ runtime pre-requisite is installed
Latest release built using J2SE 1.6.0_26:
z390 v1505 setup.zip - InstallShield for z390 full release on Windows
z390 v1505a ptf.zip - InstallShield PTF update for z390 full release v1.5.05
z390 v1505 files.zip - Image of installed z390 full release files for Linux
See Linux support here - regression testing on Ubuntu 10 LTS
z390_v1505_rt.zip - Optional install files for z390 regression tests
z390_v1505 mvs.zip - Optional install files for MVS 3.8 maro library
z390_v1505_webdoc_z390.zip - Optional download of http://www.z390.org" onclick="window.open(this.href);return false; docs
z390_v1505_webdoc_zcobol.zip - Optional download of http://www.zcobol.org" onclick="window.open(this.href);return false; docs
Previous Release built using J2SE 1.6.0_21 and Linux 8.04
z390 v1504 setup.zip - InstallShield for z390 full release on Windows
z390 v1504 files.zip - Image of installed z390 full release files for Linux
See Linux support here - regression testing on Ubuntu 9.04 LTS
z390_v1504_rt.zip - Optional install files for z390 regression tests
z390_v1504 mvs.zip - Optional install files for MVS 3.8 macro library
z390_v1504_webdoc_z390.zip - Optional download of http://www.z390.org" onclick="window.open(this.href);return false; docs
z390_v1504_webdoc_zcobol.zip - Optional download

since You did not f***** care to do a bit of homework, You should not whine about getting rude replies ,
because that' just what You deserve for making people trying to help You waste their time

to make the most out of the questions You ask and .. forecast the comments You might receive
it would be wise for You to read and meditate on
How To Ask Questions The Smart Way available here http://catb.org/~esr/faqs/smart-questions.html" onclick="window.open(this.href);return false;
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort

These users thanked the author enrico-sorichetti for the post:
RISCCISCInstSet (Mon Nov 12, 2012 4:58 am)
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Open Statement

Postby enrico-sorichetti » Sun Oct 30, 2011 1:16 pm

follow on... in my previous reply I did not cleanup the quote from the z390 web page...
disregard the previous release stuff ...
it is
z390_v1505 mvs.zip - Optional install files for MVS 3.8 macro library
that should have been highlighted
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort

These users thanked the author enrico-sorichetti for the post:
RISCCISCInstSet (Mon Nov 12, 2012 4:58 am)
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Open Statement

Postby RISCCISCInstSet » Thu Nov 10, 2011 1:28 am

Thanks everyone for your help.
RISCCISCInstSet
User avatar
RISCCISCInstSet
 
Posts: 121
Joined: Mon Oct 17, 2011 1:46 pm
Has thanked: 146 times
Been thanked: 0 time

Next

Return to Assembler

 


  • Related topics
    Replies
    Views
    Last post