vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
Asked Chat GPT AI to write some DFSORT control cards thinking it might not even know what DFSORT is.
"write dfsort cards to include records"
Although not exactly correct, but very impressive. It was able to write REXX, example creating ascii art of a cat etc...
Code: |
//SORTJOB JOB (ACCT),'SORT EXAMPLE',MSGCLASS=H
//SORTIN DD DSN=input-file,DISP=SHR
//SORTOUT DD DSN=output-file,DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(50,50)),UNIT=SYSDA
//SYSIN DD *
SORT FIELDS=(1,5,CH,A)
INCLUDE COND=(1,EQ,C'ABC',AND,2,GT,100)
INCLUDE COND=(3,EQ,C'XYZ',AND,4,EQ,C'123')
OUTFIL REMOVECC,NODETAIL,
TRAILER1=(COUNT=(M11,LENGTH=8)),
BUILD=(1,5,6:1,5) |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
The Bot should obey the sequence of statements, and try to avoid duplicate includes. Otherwise some of us will complain.
Code: |
INCLUDE COND=(1,1,CH,EQ,C'A)
ICE007A 0 SYNTAX ERROR
INCLUDE COND=(1,1,CH,EQ,C'B)
ICE002I 0 DUPLICATE OR CONFLICTING INCLUDE STATEMENT |
|
|