View previous topic :: View next topic
|
Author |
Message |
anandkumarrn
New User
Joined: 06 Feb 2009 Posts: 23 Location: India
|
|
|
|
Hi,
Is there any utility to copy the values given in the SYSIN statement into a flat file in the same step.
Like ,
//data1 dd dsn=bcil.sample.test // File to be copied
//sysin dd *
123
2345
32323
and the output for bcil.sample.test. will be
123
2345
32323
Regards,
Anand |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
IEBGENER ??
I am in a very good mood today
Code: |
//ieb exec pgm=iebgener
//sysin dd dummy
//sysprint dd sysout=*
//sysut1 dd *,dcb=lrecl=80
1
2
3
4
5
//sysut2 dd .......
// dcb=(recfm=fb,lrecl=80)
|
|
|
Back to top |
|
|
anandkumarrn
New User
Joined: 06 Feb 2009 Posts: 23 Location: India
|
|
|
|
Hi,
thanks for the information.
But my requirement is like, i will be giving my input data in the SYSIN and not in the SYSUT1 as u have mentioned.
some thing like this..
//DD1 DD DSN=SAMPLE.TEST.OUTPUT // flat file
//SYSIN DD *
123
3546
288
And the output of my SAMPLE.TEST.OUTPUT will be
123
3546
288
Thanks,
Anand.
enrico-sorichetti wrote: |
IEBGENER ??
I am in a very good mood today
Code: |
//ieb exec pgm=iebgener
//sysin dd dummy
//sysprint dd sysout=*
//sysut1 dd *,dcb=lrecl=80
1
2
3
4
5
//sysut2 dd .......
// dcb=(recfm=fb,lrecl=80)
|
|
|
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
enrico was trying to say that there is no way to know what SYSIN can do if you don't know what program is being used. Lots of programs use SYSIN. In fact, most programs use SYSIN. You need to tell us more than just a dd name. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
But my requirement is like, i will be giving my input data in the SYSIN |
do You have doctor' s prescription for that??
utilities use sysin for control cards, data is read on a different dd.
if You want data on the sysin You will have to write Your own program |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
Without writing your own program, the closest I can think of using SYSIN to create your output data is the following:
Code: |
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTOUT DD DSN=OUTPUT.FILE
//SORTIN DD *
A
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL REMOVECC,
BUILD=(C'123',/,
C'3546',/,
C'288')
/* |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
But my requirement is like, i will be giving my input data in the SYSIN |
How did this "requirement" originate?
What is the business or technical reason for this?
Did someone dictate you had to do this or is this your choice? |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
I think that SYSIN is being used very generically for any instream data. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hi Craig,
Quote: |
I think that SYSIN is being used very generically for any instream data. |
One would surely hope. . . But with the following posted. . .
Quote: |
But my requirement is like, i will be giving my input data in the SYSIN and not in the SYSUT1 as u have mentioned. |
One thing that does make me curious is how the data got into the sysin. . . |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Maybe some is sending punched cards with jcl included? I hope there is an operator that knows how to use a card reader, I hope there is a card reader available. The last time I had any card input I had to go to the data center myself because the operators on duty didn't know how. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1248 Location: Richfield, MN, USA
|
|
|
|
EVERYONE knows that the card reader is between the sorter and interpreter and behind the collator and reproducer! |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Terry Heinze wrote: |
EVERYONE knows that the card reader is between the sorter and interpreter and behind the collator and reproducer! |
I'm not sure, the last 2540 I used was right next to the console (1052?)..... |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
Don't the compilers and/or assembler use SYSIN for data? The linkage editor allows a mix pf control cards and object deck data.... Could be SYSLIN I'm thinking about though (too lazy to check) |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Did the original poster switch to a different profession? |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1248 Location: Richfield, MN, USA
|
|
|
|
Either that, or as all too frequently happens on these bulletin boards, the OP has "taken the info and run" without providing any kind of feedback. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
Craq Giegerich wrote: |
Did the original poster switch to a different profession? |
We may hope. |
|
Back to top |
|
|
|