Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to allocate an HFS file from MVS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
cigarman

New User


Joined: 19 May 2007
Posts: 25
Location: Chicago

PostPosted: Sat Jan 26, 2008 12:23 am    Post subject: How to allocate an HFS file from MVS
Reply with quote

Can anyone tell me how to allocate an HFS file from MVS.

This is how I allocate a PDSE

SIGNAL ON HALT
DSNIN = 'SYS1.PDSE.DATA(USERINFO)'
'ALLOCATE DA('DSNIN') FILE(INFILE) SHR'
ADDRESS MVS 'EXECIO * DISKR INFILE ( STEM 'USERS.' FINIS )'
'FREE FILE(INFILE)'

I'd like to use the same format to read a sequential file on LPARNAME\var\log\syslog.log

Any suggestions?

Thanks in advance

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

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Sat Jan 26, 2008 12:45 am    Post subject: Reply to: allocate hfs sequential file
Reply with quote

Read the manuals
starting from.....
http://www-03.ibm.com/servers/eserver/zseries/zos/bkserv/index.html#other_pubs

chose Your os/390 ... z/os release

here is the sequence for os/390 2.9 ( the others follow the same logic )
http://www-03.ibm.com/servers/s390/os390/bkserv/v2r9books.html
http://www-03.ibm.com/servers/s390/os390/bkserv/shelves9.html
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/BPXSH0A0

...and finally land to
OS/390 V2R9.0 Using REXX and OS/390 UNIX System Services
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXB6050/CCONTENTS?SHELF=BPXSH0A0&DN=SC28-1905-05&DT=20000110115930
Back to top
View user's profile Send private message
cigarman

New User


Joined: 19 May 2007
Posts: 25
Location: Chicago

PostPosted: Sat Jan 26, 2008 2:16 am    Post subject:
Reply with quote

I understand RTFM sir.

My ask was for any suggestions. This being an information exchange forum. I was hoping for someone to say "I've done it this way", watch out for this etc....
Back to top
View user's profile Send private message
cigarman

New User


Joined: 19 May 2007
Posts: 25
Location: Chicago

PostPosted: Sat Jan 26, 2008 2:47 am    Post subject:
Reply with quote

Ok, that didn't come out right...

Thanks for the url's I have them all.

I'm a sys prog, but on the comms side.

Just looking for best practice

thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Sat Jan 26, 2008 3:14 am    Post subject: Reply to: allocate hfs sequential file
Reply with quote

When accessing HFS files You should consider whether their organization is
MVS-like/record-oriented or UNIX-like/stream-oriented...

in the first case EXECIO can be used ...
the ALLOC must be written as..
Address TSO "ALLOC FI(mydd) PATH(mypath)... " ,
"other USS dependent parameters"


for UNIX-like like files EXECIO will not work,
consider using the "REXX stream I/O function package"

doc URL :
http://wwwi.wu-wien.ac.at/rgf/rexx/tmp/Streamio.pdf
download URL :
http://www-1.ibm.com/support/docview.wss?rs=0&q1=rexx+stream+i%2fo&uid=swg24001170&loc=en_US&cs=utf-8&cc=us&lang=en
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: Sat Jan 26, 2008 3:15 am    Post subject: Reply to: allocate hfs sequential file
Reply with quote

Hello CM,

When you get one working, we'll be most happy to have it here for the next person who wants to do the same icon_smile.gif

d
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us