If you are trying to do this for a specific program that only understands
Unix files, then you could create a named pipe file (aka "fifo") and then
fork a process to copy from it to your GDG(+1).

The "todsn" command in the free Co:Z Toolkit makes this pretty simple.
For example:

mkfifo myfifo
todsn -x 'lrecl(1028) recfm(vb)' '//HLQ.MY.GDG(+1)' < myfifo &
my_program -f myfifo

Of course, if your program supports writing to stdout, then you wouldn't
need a named pipe:

my_program |
  todsn -x 'lrecl(1028) recfm(vb)' '//HLQ.MY.GDG(+1)'

Kirk Wolf
Dovetailed Technologies
http://dovetail.com


2010/11/16 ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) <[email protected]>

> Hi,
> I have a requirement to have a USS file that is an external link to a MVS
> dataset. The MVS dataset is supposed to be a +1 GDG generation. For this, I
> would have to use ln command with the -e switch. Now, I did read the manual
> (USS Command Reference 1) but, I have not been able to get it done. The
> manual seems to refer to PDS members.
>
> Has anyone tried this ? Can you please guide me how to get this done ?
>
> 1
>
> http://publib.boulder.ibm.com/infocenter/zos/v1r10/topic/com.ibm.zos.r10.bpxa500/ln.htm#ln
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to