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 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: 10234
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: 10234
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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