Can we use SORTIN DD as Dummy?
Can we use SORTIN DD as Dummy?
Hi,
I am using DFSORT to create file with system date and time. I have coded OUTREC parameters to do this but SORT gives an error with SORTIN as DUMMY. I don't want to use any input file so what can I do or in other words, is there a way out to achieve this without using any real SORTIN file?
I am using DFSORT to create file with system date and time. I have coded OUTREC parameters to do this but SORT gives an error with SORTIN as DUMMY. I don't want to use any input file so what can I do or in other words, is there a way out to achieve this without using any real SORTIN file?
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
Re: Can we use SORTIN DD as Dummy?
//SORTIN DD * with no data following it will give you want you want.
When you say you've coded OUTREC, do you mean OUTREC or OUTFIL OUTREC?
Either way, with no input data, neither OUTREC would have anything to process.
You will need to use OUTFIL reporting features, HEADER1 or TRAILER1, and to remove the printer control codes from the output.
When you say you've coded OUTREC, do you mean OUTREC or OUTFIL OUTREC?
Either way, with no input data, neither OUTREC would have anything to process.
You will need to use OUTFIL reporting features, HEADER1 or TRAILER1, and to remove the printer control codes from the output.
Re: Can we use SORTIN DD as Dummy?
Thanks William.
Actually I want to avoid in-stream data. I'm using OUTFIL OUTREC.
Actually I want to avoid in-stream data. I'm using OUTFIL OUTREC.
-
- Former Team Member
- Posts: 62
- Joined: Wed Aug 07, 2013 6:43 pm
-
- Former Team Member
- Posts: 62
- Joined: Wed Aug 07, 2013 6:43 pm
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
Re: Can we use SORTIN DD as Dummy?
Can you post your code? I'm curious as to how you got it to work.
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Can we use SORTIN DD as Dummy?
Also please post the complete sysout messages within code tags
zprogrammer
Re: Can we use SORTIN DD as Dummy?
William - I got it working with following two ways. I'm making use of first method:
I had not used RECFM=FB,LRECL=n,BLKSIZE=n and was thinking that DUMMY won't require it.
Code: Select all
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DUMMY,RECFM=FB,LRECL=n,BLKSIZE=n
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,NODETAIL,HEADER1=(date)
/*
Code: Select all
//S2 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
DUMMY
/*
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
OUTREC FIELDS=(date)
/*
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Can we use SORTIN DD as Dummy?
Bob,
For many of us here
SORTIN as DUMMY mean
All you need is just a blank record
For many of us here
SORTIN as DUMMY mean
Code: Select all
SORTIN DD DUMMY
zprogrammer
Re: Can we use SORTIN DD as Dummy?
I'm sorry but I don't think that I follow you. I've used DD DUMMY as shown in my first job. Second job is other example which worked for me.
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Can we use SORTIN DD as Dummy?
Hi Bob,
When ever you are using SORTIN as DUMMY you need to use LRECL and RECFM
so this should work for you as well
When ever you are using SORTIN as DUMMY you need to use LRECL and RECFM
Code: Select all
//STEP01 EXEC PGM=SORT
//SORTIN DD DUMMY,RECFM=FB,LRECL=80
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,NODETAIL,HEADER1=(DATE)
zprogrammer
Re: Can we use SORTIN DD as Dummy?
- are you single threaded Pandora? This is what I show that I've used!
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Can we use SORTIN DD as Dummy?
Bob,
I was trying to emphasize DD DUMMY needs RECFM and LRECL after testing it
I was trying to emphasize DD DUMMY needs RECFM and LRECL after testing it
zprogrammer
-
- Former Team Member
- Posts: 62
- Joined: Wed Aug 07, 2013 6:43 pm
Re: Can we use SORTIN DD as Dummy?
I suppose you believed this was appropriate . . .are you single threaded Pandora?
IMHO, it was not.
Please keep in mind that the people here are trying to help you.
Hope this helps,
d
d
- Anuj Dhawan
- Founder
- Posts: 2803
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Can we use SORTIN DD as Dummy?
Hi Dick,
I did not mean to be rude though I was confused with the reply from PB. All is well here.
I did not mean to be rude though I was confused with the reply from PB. All is well here.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- Anuj Dhawan
- Founder
- Posts: 2803
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Can we use SORTIN DD as Dummy?
Hi Dick,
I did not mean to be rude though I was confused with the replies from PB.
All is well here and hope there too.
I did not mean to be rude though I was confused with the replies from PB.
All is well here and hope there too.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
-
- Former Team Member
- Posts: 62
- Joined: Wed Aug 07, 2013 6:43 pm
Re: Can we use SORTIN DD as Dummy?
Hi Anuj,
If you're good, i'm good
I just didn't want to have this get out of hand . . .
d
If you're good, i'm good
I just didn't want to have this get out of hand . . .
d
- Anuj Dhawan
- Founder
- Posts: 2803
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Can we use SORTIN DD as Dummy?
Hi Dick,
An edit went wrong -- sorry that was a reply from Bob...
An edit went wrong -- sorry that was a reply from Bob...
BobThomas wrote:Hi Dick,
I did not mean to be rude though I was confused with the reply from PB. All is well here.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Re: Can we use SORTIN DD as Dummy?
Hi Dick,
I did not mean to be inappropriate, but it was confusing to follow PB.
All is well here and hope there too.
I did not mean to be inappropriate, but it was confusing to follow PB.
All is well here and hope there too.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute