IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to allocate an HFS file from MVS


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Jan 26, 2008 12:45 am
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Jan 26, 2008 3:14 am
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

Moderator Emeritus


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

PostPosted: Sat Jan 26, 2008 3:15 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top